I am getting some strange results from the check_disk plugin in Nagios.
The first code section contains my command as set in Nagios. If I run
the command independent of Nagios, I get what appears to be the
correct info (see second code section). If the plugin is run in
Nagios, I get the result with the partition name but the numbers are
not correct for the space (see third code section).
If anyone has any suggestions, they would be greatly appreciated.
command_line $USER1$/check_by_ssh -l nagios -H $HOSTADDRESS$ -C "$USER1$/check_disk -c $ARG3$ -w $ARG2$ -p $ARG1$ "
This is called by:
service_description DISK - /var
ssh -l nagios nst-scriptsource-2 /usr/local/nagios/libexec/check_disk -w 30 -c 35 -p /var
DISK OK - free space: /var 680182 MB (70%);| /var=288499MB;968651;968646;0;968681
The below is taken from my grapher log and matches what appears on my
webpage for space.
DISK - ROOT DISK OK - free space: / 385903 MB (94%):
DISK - /var DISK OK - free space: /var 914360 MB (94%):