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
VMWare check_vmfs_https.sh – Check vmfs datastores through https
0.0 (0)
33.9K
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 > 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-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile