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
Plugins4387Themes and Skins11Add-ons734Documentation283Graphics 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
Windows NRPE Symantec Backup Exec Number of Job Error Check
5.0 (2)
151K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Kevin Bowman
KB

Kevin Bowman

@[email protected]

User Stats

Member Since: September 11, 2015

Favorites0

Views

Projects0

No Projects Found
check_linux_stats

major faults

Nice plugin. I added a check to paging statistics to check for major faults. diff follows. --- check_linux_stats.pl 2015-09-11 12:22:42.977785368 -0500 +++ check_linux_stats.pl.orig 2015-08-21 09:11:02.000000000 -0500 @@ -533,22 +533,21 @@ if(defined($stat->pgswstats)) { $status = "OK"; my $page = $stat->pgswstats; - my ($warn_in,$warn_out,$warn_flt) = split(/,/,$o_warning); - my ($crit_in,$crit_out,$crit_flt) = split(/,/,$o_critical); - if((($page->{pgpgin}>=$crit_in)&&($page->{pgpgout}>=$crit_out))||($page->{pgmajfault}>=$crit_flt)) { + my ($warn_in,$warn_out) = split(/,/,$o_warning); + my ($crit_in,$crit_out) = split(/,/,$o_critical); + if(($page->{pgpgin}>=$crit_in)||($page->{pgpgout}>=$crit_out)) { $status = "CRITICAL"; } - elsif((($page->{pgpgin}>=$warn_in)&&($page->{pgpgout}>=$warn_out))||($page->{pgmajfault}>=$warn_flt)) { + elsif(($page->{pgpgin}>=$warn_in)||($page->{pgpgout}>=$warn_out)) { $status = "WARNING"; } my $perfdata = "|" ."pgpgin=$page->{pgpgin};$warn_in;$crit_in;0 " ."pgpgout=$page->{pgpgout};$warn_out;$crit_out;0 " - ."pgmajfault=$page->{pgmajfault};$warn_flt;$crit_flt;0 " ."pswpin=$page->{pswpin} pswpout=$page->{pswpout}"; - print "Paging $status : in:$page->{pgpgin},out:$page->{pgpgout},flt:$page->{pgmajfault} $perfdata"; + print "Paging $status : in:$page->{pgpgin},out:$page->{pgpgout} $perfdata"; } else { print "No data"; @@ -627,7 +626,7 @@ Cpu usage : perl check_linux_stats.pl -C -w 90 -c 95 -s 5 Disk usage : perl check_linux_stats.pl -D -w 95 -c 100 -u % -p /tmp,/usr,/var Load average : perl check_linux_stats.pl -L -w 10,8,5 -c 20,18,15 - Paging statistics : perl check_linux_stats.pl -W -w 10,1000,1 -c 20,2000,20 -s 3 + Paging statistics : perl check_linux_stats.pl -W -w 10,1000 -c 20,2000 -s 3 Process statistics : perl check_linux_stats.pl -P -w 100 -c 200 I/O statistics on disk device : perl check_linux_stats.pl -I -w 10 -c 5 -p sda1,sda4,sda5,sda6 Network usage : perl check_linux_stats.pl -N -w 10000 -c 100000000 -p eth0

Reviewed 10 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile