Ah, thanks for the clarification, Steve. And now I've found the problem,
too. I'll document here so that others may learn from my goofiness.

So, running the check by hand:
/usr/lib/nagios/plugins/check_by_ssh -q -H db1.xxx.com -i
/etc/nagios/nagios_private/id_rsa -l cacti -n lh -s c1 -C
'/usr/lib/nagios/plugins/check_disk *-w 80 -c 95* -p /mnt/Backup'
DISK OK - free space: /mnt/Backup 13470 MB (18% inode=99%);|
/mnt/Backup=58284MB;75515;75500;0;75595

It seem to be telling me that the disk is OK, however df on the server
shows:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/SysVolGroup-lvBackup
74G 57G 14G 82% /mnt/Backup
In reality, then, 82% of the partition is used and the check was set to warn
at 80 and critical at 95 -- why did the check not trigger?

Because the specification to check_disk, if using %-ages of use, should have
a % sign after the thresholds, as in:
usr/lib/nagios/plugins/check_by_ssh -q -H db1.xxx.com -i
/etc/nagios/nagios_private/id_rsa -l cacti -n lh -s c1 -C
'/usr/lib/nagios/plugins/check_disk *-w 80% -c 95%* -p /mnt/Backup'

Best,
Mark

Mark

On Mon, Dec 20, 2010 at 12:13 PM, steve f <[email protected]> wrote:

>  Mark,
>
> I think Salvatore means run the check manually from the command line , make
> sure you run it as the nagios user and try setting tha warning & critical
> values to something that will make it fail also:
>
> /usr/local/nagios/libexec > ./check_disk -w 50 -c 70 -p /home
> DISK OK - free space: /home 440 MB (95% inode=99%);|
> /home=20MB;436;416;0;486
>
> The -p just checks a specific path.  ( FYI )
>
> Steve
>
>
>
>
> ------------------------------
> Date: Mon, 20 Dec 2010 11:50:14 -0500
> From: [email protected]
>
> To: [email protected]
> Subject: Re: [Nagios-users] tracing nagios actions
>
>
> Hi Salvatore,
>
> They're all Unix (Redhat) servers. By check command do you mean nagios -v?
> I've done that and I do not get an errors.
>
> Thanks,
> Mark
>
> On Mon, Dec 20, 2010 at 11:35 AM, Polifemo, Salvatore <
> [email protected]> wrote:
>
>  Are these Windows or *nix server?
>
>
>
> Either wau run the check command manually from a console and see what the
> results are.
>
>
>
>
>
>
>
> *Salvatore Polifemo*
>
> *Sr. Systems Security Specialist*
>
> *ConEdison Solutions*
>
> *100 Summit Lake Drive*
>
> *Valhalla, NY 10595*
>
>
>
> *From:* mark bradley [mailto:[email protected]]
> *Sent:* Monday, December 20, 2010 11:14 AM
> *To:* [email protected]
> *Subject:* [Nagios-users] tracing nagios actions
>
>
>
> Hi,
>
>
>
> I have a small-ish number of servers and I've tried to configure Nagios to
> warn me about disk-space running low. The problem is that, although disk
> space is above both warning and critical levels I'm not getting any
> notifications.
>
>
>
> The nagios.log file is silent on the topic and nagios -v does not produce
> any errors or warnings.
>
>
>
> Is there a way to trace what actions nagios is considering (much like make
> -n) in order to debug this problem? Is there a debugging methodology defined
> somewhere? If it's in your head can you share?
>
>
>
> Thanks,
>
> Mark
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect
> the dots, take your collaborative environment to the next level, and enter
> the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d
>
> _______________________________________________ Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please
> include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to