Donation: perl/SNMP monitors for processes and disk

Al Tobey albert.tobey at priority-health.com
Tue Aug 20 18:14:30 CEST 2002


Hello all,

I've written two perl plugins for monitoring disk space and running
processes over SNMP using the host-resources mib.  They are both
attached.  I run these here at Priority Health for monitoring our HP-UX
and Linux servers.  A quick test showed that these will also work on
Windows 2000 running the default SNMP.  I also believe that Novell
provides the host-resources mib, so the plugins should work for that,
too.  The Net-SNMP perl modules are required for these scripts to
operate properly.

They are released under the GNU public license, especially not the NO
WARRANTY part ;)

Here are my command definitions from checkcommands.cfg.  The
$SNMPCOMMUNITY$ is provided by a patch I posted to nagios-users a few
days ago.  I've attached it here again.

define command {
    command_name    check_disk
    command_line    $USER1$/snmp_disk_monitor.pl -s -H $HOSTADDRESS$ -C
$SNMPCOMMUNITY$ -m $ARG1$
}
define command {
    command_name    check_disk_custom
    command_line    $USER1$/snmp_disk_monitor.pl -s -H $HOSTADDRESS$ -C
$SNMPCOMMUNITY$ -m $ARG1$ -w $ARG2$ -c $ARG3$
}
define command {
    command_name    check_process
    command_line    $USER1$/snmp_process_monitor.pl -H $HOSTADDRESS$ -C
$SNMPCOMMUNITY$ -e $ARG1$
}
define command {
    command_name    check_processes
    command_line    $USER1$/snmp_process_monitor.pl -H $HOSTADDRESS$ -C
$SNMPCOMMUNITY$ -e $ARG1$ -w $ARG2$ -c $ARG3$
}

Have fun and send me your feedback,
-Al Tobey
Unix Administrator
Priority Health



********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity
to whom they are addressed.  If you have received this 
email in error please notify the Priority Health Information
Services Department at (616) 942-0954.
********************************************************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp_community.patch
Type: text/x-patch
Size: 14573 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020820/8ff7e2af/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp_disk_monitor.pl
Type: text/x-perl
Size: 6385 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020820/8ff7e2af/attachment.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp_process_monitor.pl
Type: text/x-perl
Size: 8017 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020820/8ff7e2af/attachment-0001.pl>


More information about the Users mailing list