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

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4406Themes and Skins13Add-ons760Graphics 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
IBM San Volume Controller IBM Storwize and FlashSystem Monitoring plugin
0.0 (0)
664
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Davide Lemma (3)Sam N (2)
See More
Newest Contributors
pawal (1)matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Murilo
M

Murilo

@murilobaliego

User Stats

Member Since: March 4, 2017

Favorites0

Views

Projects0

No Projects Found
check_nagiostats

servicecount warning/critical

Hi, thanks for this pluging, as was searching for a pluging as I'm using one Nagios server to monitor other Nagios Servers. I just changed the subroutine check_s_count() to show warning if any service is warning, same idea to critical services. sub check_s_count(){ my $line; my $counter_service_checks=0; my $counter_warning=0; my $counter_critical=0; open (FILE, $file) or die $!; $/ = ""; foreach $line(){ if($line=~/servicestatus/){ $counter_service_checks++; } if($line=~/plugin_output/){ if($line=~/WARNING/){ $counter_warning++; } } if($line=~/plugin_output/){ if($line=~/CRITICAL/){ $counter_critical++; } } } close (FILE); # filling vars for print $text=("Service Checks: $counter_service_checks - Service Warning: $counter_warning - Service Critial: $counter_critical"); $perfdat=("count=$counter_service_checks"); # this ugly thing is needed to return OK: $warning=2; $critical=3; $value=1; if($counter_warning>0){ $value=$warning; } if($counter_critical>0){ $value=$critical; } }

Reviewed 9 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile