[Nagiosplug-help] Question with using the Check_Disk plugin on /var partition
Medaugh, Scott
Scott.Medaugh at turner.com
Wed Feb 14 22:07:34 CET 2007
In Code section 2, I ran the command (not through Nagios) with the "-p
/var" setting in the first position and it returned the correct
information. Also, I tried my Nagios command with the -p as the last
parameter and come up with the same incorrect result. If it was run
outside of Nagios with the -p option as the last option, it returned the
correct information as well.
Scott Medaugh
CNN News Systems
mailto:scott.medaugh at cnn.com
Office: 404-827-1802
Mobile: 404-433-9624
-----Original Message-----
From: Lars Stavholm [mailto:stava at telcotec.se]
Sent: Wednesday, February 14, 2007 2:23 PM
To: Medaugh, Scott
Cc: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] Question with using the Check_Disk plugin
on /var partition
Medaugh, Scott wrote:
> 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.
As suggested in a previous thread today, you have to have
the -w/-c options *before* the -p option.
/Lars
> 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
>
>
>
>
>
>
>
------------------------------------------------------------------------
>
>
------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any
issue.
> ::: Messages without supporting info will risk being sent to /dev/null
More information about the Help
mailing list