<div>Hi Dustin,</div> <div> </div> <div>Why don't you use this.. I have it on my system and it works.. Thanks to Jorg.</div> <div> </div> <div># added by Tom Tran<BR># Arg1 = public, arg2 = disk name, arg3 and 4 are capacity<BR>define command{<BR> command_name check_snmp_storage<BR> command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$<BR> }</div> <div> </div> <div>define service{<BR> use generic-service ; Name of service template to use<BR>
host_name EESI_SERVER<BR> service_description Partitions<BR> is_volatile 0<BR> check_period 24x7<BR> max_check_attempts 4<BR> normal_check_interval 5<BR>
retry_check_interval 1<BR> contact_groups admins<BR> notification_options w,u,c,r<BR> notification_interval 960<BR> notification_period 24x7<BR> check_command check_snmp_storage!public!^C!20%!90% ;<BR> }<BR><BR>Hope this
help.</div> <div> </div> <div>Tom Tran</div> <div>eesimed inc.<BR><BR><B><I>Dustin Berube <dustin.berube@gmail.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I am having problems trying to run the check_diskspace.sh plugin to <BR>monitor drive space on a Windows host.<BR><BR>below is the error that I receive. I ran snmpwalk with the following <BR>syntax and it worked:<BR><BR>snmpwalk -v 1 -c public 192.168.0.11 <BR>.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageDescr<BR>and it works properly<BR><BR>nagios@netfx-fs1:/usr/local/nagios/libexec$ ./check_diskspace.sh<BR>usage : check_diskspace.sh <HOSTNAME><SNMP-COMMUNITY><VOL.LETTER><BR><CRIT-LEVEL><WARN-LEVEL><BR>example: check_diskspace.sh 192.168.1.1 public E: 100 1000<BR><BR>nagios@netfx-fs1:/usr/local/nagios/libexec$ ./check_diskspace.sh <BR>192.168.0.11 public C: 1000 100<BR>snmpwalk:
Timeout (Sub-id not found: iso -> public)<BR>.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.: <BR>Unknown Object Identifier (Index out of range: (hrStorageIndex))<BR>.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.: <BR>Unknown Object Identifier (Index out of range: (hrStorageIndex))<BR>.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageAllocationUnits.: <BR>Unknown Object Identifier (Index out of range: (hrStorageIndex))<BR>(standard_in) 1: parse error<BR>./check_diskspace.sh: line 98: [: : integer expression expected<BR>./check_diskspace.sh: line 102: [: : integer expression expected<BR>./check_diskspace.sh: line 106: [: : integer expression expected<BR>DISKSPACE - UNKNOWN C: MB<BR><BR><BR>Thanks in advance.<BR><BR>Dustin Berube<BR><BR>All the advantages of Linux Managed Hosting--Without the Cost and Risk!<BR>Fully trained technicians. The
highest number of Red Hat certifications in<BR>the hosting industry. Fanatical Support. Click to learn more<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642<BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <BR>::: Messages without supporting info will risk being sent to /dev/null<BR></BLOCKQUOTE><BR><p>
<hr size=1>Do you Yahoo!?<br> Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=40788/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>