checking unix load/disk space

Jeff Scott jeff at skislave.com
Thu May 5 17:44:16 CEST 2005


You should also specify "-e ssh", and make sure blade1 resolves.
Jeff

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jain, Rajeev
Sent: Thursday, May 05, 2005 8:03 AM
To: Jeff Scott; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] checking unix load/disk space

I am using trusted SSH connection but getting the following error while
running the script. Is there a pre-requisite for these scripts?


[root at NGMON downloads]# ./check_disk_remote -H blade1 -w 20 -c 25 -v
Use of uninitialized value in concatenation (.) or string at
/check_disk_remote line 55.
Can't exec "blade1": No such file or directory at ./check_disk_remote
line 55.
Use of uninitialized value in scalar chomp at ./check_disk_remote line
56.
Use of uninitialized value in string eq at ./check_disk_remote line 58.
Use of uninitialized value in string eq at ./check_disk_remote line 58.
Use of uninitialized value in concatenation (.) or string at
/check_disk_remote line 70.
Can't exec "blade1": No such file or directory at ./check_disk_remote
line 70.
ERROR: could not open /usr/bin/df -k on blade1


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jeff
Scott
Sent: Wednesday, May 04, 2005 5:26 PM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] checking unix load/disk space


I have uploaded a few "network" aware scripts to nagiosexchange.org to
do
just this.  They check disk, load, etc...via ssh, with trusted keys
setup,
or with rsh (if .rhost/host.equiv are setup).  Obviously ssh is
preferred
method.  

Jeff

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Wednesday, May 04, 2005 10:53 AM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] checking unix load/disk space



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of HP Geeza
> Sent: Wednesday, May 04, 2005 11:34 AM
> To: Bill_Akins at emoryhealthcare.org; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] checking unix load/disk space
> 
> 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

Only if the plugin is network aware and understands -h parameters ;) In
this case, it won't work as check_disk is a local check only and not
network aware.

> 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?

Yes, you do. The host-resource plugins are not network aware. You can
always see if a plugin is network aware by running it with '--help'. In
this case, check_disk must be run on the host you intend to check. There
are a number of ways to do that but the most common are NRPE or
check-by-ssh.

--
Marc


-------------------------------------------------------
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 
_______________________________________________
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



-------------------------------------------------------
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





-------------------------------------------------------
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 
_______________________________________________
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
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain
or redistribute it. Click here for important additional terms relating to
this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------



-------------------------------------------------------
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