checking unix load/disk space

HP Geeza getbacktome3 at hotmail.com
Wed May 4 18:33:49 CEST 2005


I belive that would work...and i understand the syntax in that command.  
However that command will check the disk space on /, /tmp, /var, /boot on 
the localhost though?

The problem i am having is that how do i tell nagios to run a command such 
as:
check_disk -w 25% -c 10% -p / -p /tmp -p /var -p /boot

on a remote host and return values?..a simple ping command seems to work 
fine

Do i need to add a -h $HOSTNAME$ in the checkcommands file?....also just to 
make sure which client software should i be running on my remote host? i.e 
on windows i installed the PNSClient when i was using netsaint this seems to 
be working fine when switching to nagios....do i have to do something 
different for unix machines?



>From: "Bill Akins" <Bill_Akins at emoryhealthcare.org>
>To: <getbacktome3 at hotmail.com>
>Subject: Re: [Nagios-users] checking unix load/disk space
>Date: Wed, 04 May 2005 12:20:58 -0400
>
>Try something like this:
>check_disk -w 25% -c 10% -p / -p /tmp -p /var -p /boot
>This will check and report on /, /tmp, /var and /boot partitions.
>
>
> >>> "HP Geeza" <getbacktome3 at hotmail.com> 5/4/2005 12:04 PM >>>
>
>Thats the plugins which i am having trouble with:
>
>im trying to monitor a sun solaris box for example and have tried:
>check_command                   check_local_disk!20%!10%!swap
>check_command                   check_local_disk!20%!10%!c0t0d0s6
>
>check_command                   check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
>
>however in the web interface i see:
>Current Load:  CRITICAL 05-04-2005 15:47:39 0d 1h 5m 3s 3/3 (Return code of
>126 is out of bounds - plugin may be missing)
>
>DSK Space tmp: OK 05-04-2005 16:48:17 0d 0h 3m 46s 1/3 DISK OK - free 
>space:
>/ 100512 MB (91%): /boot 81 MB (82%): /dev/shm 505 MB (100%):
>DSK Space usr:OK 05-04-2005 16:49:32 0d 0h 2m 40s 1/3 DISK OK - free space:
>/ 100512 MB (91%): /boot 81 MB (82%): /dev/shm 505 MB (100%):
>
>
>As you can see the disk space plugin is reporting the same info for both
>/tmp and /usr....this shouldn't be the case.
>
>
> >From: "Bill Akins" <Bill_Akins at emoryhealthcare.org>
> >To: <getbacktome3 at hotmail.com>
> >Subject: Re: [Nagios-users] checking unix load/disk space
> >Date: Wed, 04 May 2005 11:39:52 -0400
> >
> >Try the check_load plugin for CPU load and check_disk to get disk space
> >stats.  Run them from command prompt with -h to see options.  Both are
> >included in the Official Nagios Plugins package, availabel from
> >http://www.nagiosexchange.org/Plugin_Packages.52.0.html?&tx_netnagext_pi1[p_view]=32
> >
> >
> > >>> "HP Geeza" <getbacktome3 at hotmail.com> 5/4/2005 11:23 AM >>>
> >
> >can somebody please tell me how to check a remote unix host for disk 
>space
> >and load?
> >
> >_________________________________________________________________
> >Be the first to hear what's new at MSN - sign up to our free newsletters!
> >http://www.msn.co.uk/newsletters
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: NEC IT Guy Games.
> >Get your fingers limbered up and give it your best shot. 4 great events, 
>4
> >opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> >win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> >_______________________________________________
> >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
> >
> >
>
>_________________________________________________________________
>Winks & nudges are here - download MSN Messenger 7.0 today!
>http://messenger.msn.co.uk
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: NEC IT Guy Games.
>Get your fingers limbered up and give it your best shot. 4 great events, 4
>opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
>win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
>_______________________________________________
>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
>
>

_________________________________________________________________
Winks & nudges are here - download MSN Messenger 7.0 today! 
http://messenger.msn.co.uk



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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