Checking remote disk space with check_disk.
Russell Scibetti
russell at quadrix.com
Sun Mar 2 17:07:46 CET 2003
check_disk only checks the local machine it is run on. You need to use
either check_by_ssh or nrpe if you want to use check_disk to check
remote machines. You could also get disk data via check_snmp if you
have ucd-snmp running.
Russell
Michael Warner wrote:
> I am setting up Nagios for the first time, and am having some problems
> getting disk usage stats from a remote hosts (capra). I am getting
> disk stats on Nagios, but they appear to be coming from the machine
> Nagios is running on (marlin). Is there anything special I need to to
> to get the command to execute remotely? My .cfg syntax is as follows:
>
> services.cfg:
>
> # Service definition for Linux local disk free space /dev/hda3
> define service{
> use generic-service ; Name of service template to use
> host_name capra
> service_description /dev/hda3 Disk Space
> is_volatile 0
> check_period 24x7
> contact_groups sys
> notification_options w,u,c,r
> check_command check_local_disk!"/dev/hda3"
> }
>
> checkcommands.cfg
> # 'check_local_disk' command definition
> define command{
> command_name check_local_disk
> command_line /usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p $ARG1$ -v
> }
>
> Thanks!
>
> Mike Warner
>
>
>
>
>
>
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
>
>
--
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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