check disks by remote

Max btmanmeh at verizon.net
Wed Nov 16 17:59:58 CET 2005


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





More information about the Users mailing list