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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
saif.khan
Posts: 1
Joined: Fri May 19, 2023 7:52 am

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

Post 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?
kg2857
Posts: 234
Joined: Wed Apr 12, 2023 5:48 pm

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

Post 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."
TcoUpLoad
Posts: 7
Joined: Wed Oct 20, 2021 6:40 am

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

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