Discussion:
[Nagios-users] Check disk
Jacques FAN
2007-10-30 07:23:28 UTC
Permalink
Hi All,

I always monitore the HDD of computer which are running with Windows, now I
want to monitore the HDD of some server which are running on linux plate
form. So I'm looking for how to write the commande, I know that I've to use
"check_disk"
Some body can tell me how

Thanks
--
JFK
"In God we trust, the rest we monitore"
Dennis Hünseler
2007-10-30 08:09:56 UTC
Permalink
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

kind regards,

Dennis
Post by Jacques FAN
Hi All,
I always monitore the HDD of computer which are running with Windows, now I
want to monitore the HDD of some server which are running on linux plate
form. So I'm looking for how to write the commande, I know that I've to use
"check_disk"
Some body can tell me how
Thanks
--
JFK
"In God we trust, the rest we monitore"
-------------------------------------------------------------------------
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
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
Thomas Guyot-Sionnest
2007-11-03 02:43:53 UTC
Permalink
Post by Dennis Hünseler
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
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
Thomas Guyot-Sionnest
2007-11-04 17:23:39 UTC
Permalink
Thanks Thomas,
If I understanding your answer, so I must install nagios plugin as I did
for Windows computer?
There's no Nagios-plugins for Windows (maybe you were talking about
NRPE-NT, NSClient or NC_Net...).

You should have check_nrpe on the Nagios server and NRPE running on the
remote computer. The NRPE config on remote side has nrpe commands
associated to real system commands so that when you do:

$ ./check_nrpe -H remote_server -c command_name

the system command associated to "command_name" on the remote_server is
run and returns back to check_nrpe.

The Nagios-plugins usually have to be be installed on the remote server
as well so you can have a basic set of monitoring command to run.

There's certainly some documentation about it on the Nagios web site.

Thomas

Loading...