Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4417Themes and Skins13Add-ons769Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
2012 Nagios World Conference Presentations Nagios Conference 2012 – Nathan Vonnahme – Monitoring the User Experience
0.0 (0)
47.1K
RSS Feed
Newest Listings Updated Listings
Top Contributors
John Shorey (5)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)Sam N (2)
See More
Newest Contributors
hsh-tro (1)Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > oerli
o

oerli

@oerli

User Stats

Member Since: May 10, 2010

Favorites0

Views

Projects0

No Projects Found
check_apc.pl

Didn't worked with the Embedded Perl Compiler

Changed the following to get it to work and Date check if it's unknown. --- /home/rmu/check_apc.pl 2013-07-31 13:29:08.893074154 +0200 +++ check_apc.pl 2013-08-02 10:06:06.328270476 +0200 @@ -1,4 +1,6 @@ #!/usr/bin/perl -w +# This Script doesn't work with the Embedded Perl from icinga, disable it: +# icinga: -epn # # check_apc.pl v1.0 # @@ -174,6 +176,10 @@ # If Okay, then check the date of the last self test before returning result of check # First the returned date is converted to epoch for simplified date math # UPS returns date as mm/dd/yyyy + if (lc($diag_date) eq "unknown"){ + print "WARNING: Unknown when self test run last timen"; + exit $WARNING; + }else{ my @diagdate_split = split(///,$diag_date); my $diagdate_epoch = timelocal(0,0,12,$diagdate_split[1],$diagdate_split[0] - 1,$diagdate_split[2]); my $diag_daysago = int((time - $diagdate_epoch) / 86400 + 0.5); # How many days since last self test @@ -188,6 +194,7 @@ print "OK: Self test passed on $diag_date ($diag_daysago days ago)n"; exit $OKAY; } + } } } case m/^load$|^load:d{2,5}$/{

Reviewed 13 years ago

check_amavis

result change + return code

I needed to change the result from 2.7.1 to 2.7.0 and I added the exit 1; otherwise the state won't change in nagios. thanks for this script! if ($result =~/2.7.0 Ok, discarded/) { print "OK - All finen" } else { print "CRITICAL - amavisd-new returned $result"; exit 1; }

Reviewed 16 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile