Hi Dustin,
 
Why don't you use this..  I have it on my system and it works..  Thanks to Jorg.
 
# added by Tom Tran
# Arg1 = public, arg2 = disk name, arg3 and 4 are capacity
define command{
        command_name    check_snmp_storage
        command_line    $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$
        }
 
define service{
        use                             generic-service         ; Name of service template to use
        host_name                       EESI_SERVER
        service_description             Partitions
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  admins
        notification_options                w,u,c,r
        notification_interval           960
        notification_period             24x7
        check_command                   check_snmp_storage!public!^C!20%!90%  ;
        }

Hope this help.
 
Tom Tran
eesimed inc.

Dustin Berube <[EMAIL PROTECTED]> wrote:
I am having problems trying to run the check_diskspace.sh plugin to
monitor drive space on a Windows host.

below is the error that I receive. I ran snmpwalk with the following
syntax and it worked:

snmpwalk -v 1 -c public 192.168.0.11
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr
and it works properly

[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_diskspace.sh
usage : check_diskspace.sh

example: check_diskspace.sh 192.168.1.1 public E: 100 1000

[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_diskspace.sh
192.168.0.11 public C: 1000 100
snmpwalk: Timeout (Sub-id not found: iso -> public)
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.:
Unknown Object Identifier (Index out of range: (hrStorageIndex))
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.:
Unknown Object Identifier (Index out of range: (hrStorageIndex))
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageAllocationUnits.:
Unknown Object Identifier (Index out of range: (hrStorageIndex))
(standard_in) 1: parse error
./check_diskspace.sh: line 98: [: : integer _expression_ expected
./check_diskspace.sh: line 102: [: : integer _expression_ expected
./check_diskspace.sh: line 106: [: : integer _expression_ expected
DISKSPACE - UNKNOWN C: MB


Thanks in advance.

Dustin Berube

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users@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


Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to