[Nagiosplug-help] Question with using the Check_Disk plugin on /var partition
Medaugh, Scott
Scott.Medaugh at turner.com
Wed Feb 14 19:45:13 CET 2007
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.
Code:
define command{
command_name check_remote_disk
command_line $USER1$/check_by_ssh -l nagios -H $HOSTADDRESS$
-C "$USER1$/check_disk -p $ARG1$ -c $ARG2$ -w $ARG3$"
Called by:
service_description DISK - /var
check_command check_remote_disk!/var!10!25
Code:
ssh -l nagios nst-scriptsource-2 /usr/local/nagios/libexec/check_disk -p
/var -w 30 -c 35
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.
Code:
DISK - ROOT DISK OK - free space: / 385903 MB (94%):
DISK - /var DISK OK - free space: /var 914360 MB (94%):
Scott Medaugh
CNN News Systems
* scott.medaugh at cnn.com
* 404-827-1802 *404-433-9624
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070214/e308d3a1/attachment.html>
More information about the Help
mailing list