Check disk

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Nov 3 03:43:53 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/10/07 04:09 AM, Dennis Hünseler wrote:
> Hi,
> 
> in nagios 3.0 for example use a service-definition like
> 
>  check_command                   check_local_disk!20!10!/var
> 
> where
> 20 stands for the warning level of 20 % free
> 10 stands for the critical level of 10 % free
> /var gives the script the system-path to check
> 
> this will make a check like:
> check_disk -w 20 -c 10 -p /var
> DISK OK - free space: /var 10538 MB (56% inode=99%);|
> /var=8147MB;19665;19675;0;19685

You won't go very far by monitoring only local disks.

You should install Nagios-plugins and nrpe on the remote Linux hosts,
then set up check_nrpe to check the remote hosts. Unless you want to go
the totally unsafe way the disk arguments will be set up on the remote
server's NRPE config. This makes systems-wide change taking longer (you
have to change the config on each server) but OTOH it can allow fine
tuning the disk (and other) checks on servers while keeping a very
simple Nagios config (ex. one disk check for all linux-based hostgroups).

For simplicity I even check the local host trough NRPE as it avoid
having a separate configuration for local checks.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHK+Bp6dZ+Kt5BchYRAnXiAJ4zislaSUN/boM4d6yii22EFMHfeQCg2Beq
AGK/uSLmyK8t789oMa/ZE4Q=
=QS7L
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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