nagios-plugins icon indicating copy to clipboard operation
nagios-plugins copied to clipboard

A collection of Nagios Plugins I've written

Results 25 nagios-plugins issues
Sort by recently updated
recently updated
newest added

Get the EXIT_CODE form the real command not grep

HI! According to the code snippet: STATUS_MSG=$(eval "$SERVICETOOL" 2>&1) EXIT_CODE=$? The variable EXIT_CODE will obtain the exit code of eval, not of the command that is implicit in SERVICETOOL, that...

- Remove color codes from STATUS_MSG - Use STATUS_MSG in lower case in switch statement

The grep pipe was making the exit status of "systemctl status ..." always 0, returning OK to nagios when the service was not running.

When a service is down, the plugin is still returning status code of OKAY (zero). ``` root@vps3:~/icinga/nagios-plugins-master# /usr/lib/nagios/plugins/check_service.sh -s postfix -o linux Active: inactive (dead) since Thu 2018-05-24 12:46:25 BST;...

- Finding is in service not running in state "Active: active (exited)" and the actual version of script returns "exit 0". So is not detecting a real service down and...

TOTAL value is taking all the header counts which is incorrect and misleading

Hi! The first thing is thanks for this great work with the plugins. Using the check_services to monitor nfs service on CentOS 6.5, this only show one service, when if...

Two problems: * "status $foo" doesn't seem to work, but the check_service.sh-script relies on it. * "service $foo status" yields the output "$foo is NOT running" (and exit code 0,...

Hello, so I was testing out your check_service.sh script and i noticed a bug where service would have "not" in it's name. I'm running this on Ubuntu server 16.04, services...