check_diskspace SNMP plugin

Dustin Berube dustin.berube at gmail.com
Thu Jun 22 05:21:48 CEST 2006



John Daily wrote:
> I haven't played with SNMP via Nagios yet, but one thing I see: the 
> snmpwalk invocation in check_diskspace.sh includes a 5 second timeout.  
> Is your server responding within 5 seconds?  You might try -t 5 when you 
> call snmpwalk directly.
> 
> -John
> 


I tried snmpwalk with -t 5 and it worked, but to give it the benefit of 
the doubt I changed the script to use a 20 second timeout instead and 
had the same results.

> 
> 
> 
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net on behalf of Dustin Berube
> Sent: Wed 6/21/2006 10:42 PM
> To: Nagios Users
> Subject: [Nagios-users] check_diskspace SNMP plugin
> 
> 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
> 
> nagios at netfx-fs1:/usr/local/nagios/libexec$ ./check_diskspace.sh
> usage  : check_diskspace.sh <hostname> <snmp-community> <Vol.Letter>
> <crit-level> <warn-level>
> example: check_diskspace.sh 192.168.1.1 public E: 100 1000
> 
> nagios at netfx-fs1:/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 
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642>
> _______________________________________________
> 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
> 

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