[Nagiosplug-help] Question with using the Check_Disk plugin on /var partition
Lars Stavholm
stava at telcotec.se
Wed Feb 14 20:23:15 CET 2007
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=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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