check disks by remote

Miguel Faria miguelfa at eu.skechers.com
Thu Nov 17 10:38:15 CET 2005


Hi Ian/rest of the crew,

Thanks a lot for your help. Your clues got me thinking, and I found a great
solution:

- First, you need to create and public key from the main server to another
(see instructions http://www.arches.uga.edu/~pkeck/ssh/ in case you don't
know how); 
- next you need to use the plugins check_by_ssh and check_disk and add the
following on the checkcommands.cfg:

./check_by_ssh -t 15 -l user -i ~/.ssh/id_dsa -H host -C '/check_disk -w 10%
-c 5% -p /dev/sdax'

I added on the definition and services. Restarted Nagios. It works great!!



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Max
Sent: 16 November 2005 17:00
To: ian.marlier at studentuniverse.com; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check disks by remote

Ian Marlier wrote:
> 
> 
> On 11/16/05 8:38 AM, "Miguel Faria" <miguelfa at eu.skechers.com> wrote:
> 
> 
>>Hi,
>>
>>I am wondering if you could give me a clue to which plugin I need to check
>>disk free space on another UNIX servers. Your help is much appreciated.
> 
> 
> SNMP -- I don't know that the check_snmp plugin does this cleanly, because
> it means grabbing a couple of different OIDs and matching them, but
writing
> a plugin of your own isn't all that hard.
> 
> It's got the advantage of being cross-platform, too.  The same plugin can
> monitor a Windows box, a Mac box, or a *nix machine.

I had asked the same question awhile back. Sean pointed me to 
"check_snmp_disk.pl". Do a search on the list for "Check diskspace on 
remote machines" to read the previous post.

It works great for myself with 'nix machines. You just have to setup 
SNMP on the hosts. Also you'll need to define a command in Nagios such as:

define command{
         command_name    snmp_disk
         command_line    $USER1$/check_snmp_disk.pl -H $HOSTADDRESS$ -C 
public -w $ARG1$ -c $ARG2$
         }

That's about all there is to it.

Max






-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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 the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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