Page 1 of 1

Does Check_snmp plugin for Nagios Core only fetch snmp GET OIDs?

Posted: Thu May 25, 2023 1:46 am
by saif.khan
I have been trying to fetch different OIDs from the correct mib, Unfortunately only the GET OIDs work in particular.. I need the plugin to fetch the Walk and Table based OIDs as well.
Is it possible using the Check_Snmp plugin? If so please let me know how?

Re: Does Check_snmp plugin for Nagios Core only fetch snmp GET OIDs?

Posted: Wed May 31, 2023 10:13 pm
by kg2857
Have you considered running check_snmp -h, reading and comprehending the output? I'll condense it for you:
"This plugin uses the 'snmpget' command included with the NET-SNMP package."

Re: Does Check_snmp plugin for Nagios Core only fetch snmp GET OIDs?

Posted: Tue Jun 13, 2023 11:53 am
by TcoUpLoad
you can call IFDESCR as well. but i have detect an issue in nagios core 4.4.7.
the command

Code: Select all

 $USER1$/check_snmp -H $HOSTADDRESS$ -P 3 -U $USER3$ -L authPriv -a $USER4$ -A $USER5$ -x $USER6$ -X $USER7$ -o $ARG1$ $ARG2$
in shell return ok.. but in dashboard return UNKNOWN
I already have tried in ARG1 like IfOperStatus.10150 and .1.3.6.1.2.1.2.2.1.8.10150 and 1.3.6.1.2.1.2.2.1.8.10150 (without lead dot) but no luck return always UNKNOWN