Page 1 of 1

Custom SNMP Services

Posted: Mon Feb 11, 2013 12:43 pm
by jcmanous
Greetings,
I'm attempting to monitor a Sensatronics EM1 via Nagios and I'm having some difficulty "translating" what works from the CLI into a Nagios service.

This is what I'm using right now. These commands provide the output (in order of appearance) for Ambient Temp/Humidity/Moisture and the last gives me the Ambient Rack Temp.

Code: Select all

/usr/bin/snmpget -v1 -c public -Oqv $HOSTNAME SNMPv2-SMI::enterprises.16174.1.1.3.3.1.3.0

/usr/bin/snmpget -v1 -c public -Oqv $HOSTNAME SNMPv2-SMI::enterprises.16174.1.1.3.3.1.6.0

/usr/bin/snmpget -v1 -c public -Oqv $HOSTNAME SNMPv2-SMI::enterprises.16174.1.1.3.3.1.9.0

/usr/bin/snmpget -v1 -c public -Oqv $HOSTNAME SNMPv2-SMI::enterprises.16174.1.1.3.3.2.3.0
I apologize in advance if this is documented somewhere, but I'm having difficulty making it all tie in.

Re: Custom SNMP Services

Posted: Mon Feb 11, 2013 12:54 pm
by abrist

Re: Custom SNMP Services

Posted: Mon Feb 11, 2013 1:03 pm
by jcmanous
I attempted that and I only received a "No data received from host".

Re: Custom SNMP Services

Posted: Mon Feb 11, 2013 1:34 pm
by jcmanous
I was able to figure out what the $ARG command wanted. Now I can get this to monitor just fine.