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

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
Plugins4394Themes and Skins11Add-ons745Documentation283Graphics 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
Databases check_mongodb_write.pl (Advanced Nagios Plugins Collection)
0.0 (0)
27.9K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)Yoann LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)Nitatemic (1)
See More

Copyright © 2009-2025 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 12 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-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile