check_disk command
Dennis Hünseler
dennis at huenseler.net
Mon Oct 1 16:54:03 CEST 2007
Hi Stephen,
i think yoou should use check_disk 90 95 /hondata/subfolder as check
parameter. This returns an error if it doesn't exist. Otherwise the new
version of check_disc returns the value of the root partition.
Kind regards,
Dennis
On Mon, 1 Oct 2007 15:46:20 +0100, "stephen wing" wrote:
Hi All
I have a query regarding the check_disk command running
on an AIX machine via the nrpe daemon.
I have defined the following commands on my client in the nrpe.cfg
file :-
command[check_root]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd4
command[check_usr]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd2
command[check_home]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd1
command[check_var]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd9var
command[check_tmp]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd3
command[check_opt]=/usr/local/nagios/libexec/check_disk 90 95
/dev/hd10opt
command[check_hcndata]=/usr/local/nagios/libexec/check_disk 90 95
/dev/fslv01
These commands work fine and give me the free disk space in the
filesystems. My problem is that I unmounted the filesystem /hcndata
which has a device name of /dev/fslv01. When this happens I would
expect nagios to report that /hcndata filesystem was unavailable.
Instead the service reports filesystem OK, but it is giving me the
statistics from the / filesystem as checked by the first command, ie
check_root.
Has anybody else seen this and if so how do I resolve the issue ?
I am running nagios 2.9 and nrpe 1.4.9
Regards
Stephen
---------------------------------------
Stephen Wing
Steria Limited
Senior Technical Consultant
Telephone 02890393605
Mobile 07966823605
*****************************************************************
This email originates from Steria Limited, registered office: Three
Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH; Registered
in England and Wales, number 2706218; www.steria.co.uk. This email
and any attachments may contain confidential information and may be
subject to copyright or other intellectual property rights. It is
only for the use of the addressee(s). You are prohibited from copying,
forwarding, disclosing, saving or otherwise using it in any way if you
are not the addressee(s) or responsible for delivery. If you receive
this email by mistake, please advise the sender and cancel it
immediately. Steria may monitor the content of emails within its
network to ensure compliance with its policies and procedures. Any
email is susceptible to alteration and its integrity cannot be
assured. Steria shall not be liable if the message is altered,
modified, falsified, or edited.
kind regards, Dennis H?nseler
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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