Nagios behaviour problem
Lien, Mitch
mitch.lien at medtronic.com
Tue Mar 29 23:34:47 CEST 2005
Hi Ed.
I had a similar problem.
The problem I was having had to do with the "df" output.
For example, a normal "df -k" would look something like this:
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/rootvol 4133838 2533134 1559366 62% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/vx/dsk/var 4133838 103354 3989146 3% /var
swap 21524984 32 21524952 1% /var/run
swap 2097152 49800 2047352 3% /tmp
/dev/vx/dsk/home 54020703 34159356 19321140 64% /export/home
The issue I had was when a portion of the "df -k" output was different than what the check_disk program was expecting. Shown below, the /u01 and /software filesystems were returning "no output".
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/rootvol 4129290 1904935 2183063 47% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/vx/dsk/var 492872 235991 207594 54% /var
swap 8853128 32 8853096 1% /var/run
swap 8853216 120 8853096 1% /tmp
/dev/vx/dsk/opt 1016122 436412 518743 46% /opt
/dev/vx/dsk/appdg/u01
15482880 5417160 9908496 36% /u01
/dev/vx/dsk/home 25190412 23216228 1722280 94% /export/home
avesun1:/export/home 11856107 7348299 4389247 63% /software
I eventually had to use the "GNU di" program as my "df" program. This allowed me modify the "df -k" output and check_disk accepted it.
I hope this helps.
Mitch
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ed Smith
Sent: Tuesday, March 29, 2005 3:07 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios behaviour problem
Hello,
Since I can't find a way to use check_disk to ignore nfs mounted file systems, I have written my own perl script to do so, and it is quite useful. However, when I try to use it with nagios, nagios always comes back with (no output!). It works fine on the command line as the nagios user. Any ideas what could be causing this and what I could do to fix it? I have the path fully qualfied. Any help is appreciated.
Ed
------------------------
Edward Smith
Systems Application Engineer
Demandtec, Inc
esmith at demandtec.com
650-226-4609
<html>
<body>
<span style="font-size:8.0pt;font-family:Arial">---------------------------------------------------------------------------------------------------------------------------------------------</span>
<span style="font-size:8.0pt;font-family:Arial">DEMANDTEC EMAIL NOTICE:</span>
<p><span style="font-size:8.0pt;font-family:Arial">NOTICE: This email transmission and all attached files contain information intended for the designated individual or entity to whom it is addressed and may contain information that is proprietary, privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this email or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately by replying to this message and please delete the original message without making any copies.</span>
<p><span style="font-size:8.0pt;font-family:Arial">WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Although we have taken reasonable precautions to ensure that this email and all attachments are free from viruses, we accept no liability for any loss or damage arising from the use of this email or its attachments.</span>
</body>
</html>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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
More information about the Users
mailing list