Question with using the Check_Disk plugin on /var partition


#1

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.

define command{
         command_name    check_remote_disk
         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
check_command check_remote_disk!/var!10!25

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%):

#2

If you compare those answers to a df output which one is correct?


#3

The df command matches the manual run of the check_disk plugin.