Page 2 of 2

Re: Monitor application on remote Centos

Posted: Tue Nov 10, 2015 9:17 am
by eloyd
snmpwalk is a powerful tool, but it is a simple tool at the same time. You may be running up against this issue, taken from the man page for snmpwalk for the "-Cc" option

Code: Select all

     Do not check whether the returned OIDs are increasing. Some agents (LaserJets are an example) return OIDs out of order, but can complete the walk anyway. Other agents return OIDs that are out of order and can cause snmpwalk to loop indefinitely. By default, snmpwalk tries to detect this behavior and warns you when it hits an agent acting illegally. Use -Cc to turn off this check. 
Other tools, especially graphical ones such as what you might be using on a PC, may be correcting that issue under the hood and continuing to display information past the point at which snmpwalk is stopping.

Re: Monitor application on remote Centos

Posted: Tue Nov 10, 2015 10:39 am
by hsmith
Are you making sure that you're using the same community?

Thanks for that information Eric. SNMP is a beast :)

Re: Monitor application on remote Centos

Posted: Fri Nov 13, 2015 8:04 am
by joulsn
Hey all,

my problem was that I couldn't snmpwalk my custom application mib.
I could solve the problem. net-snmp uses 161 as default port. My application just accepts request from port 10020.
So I changed the command like this:
#snmpwalk -v 1 -c public -O e 10.10.10.74:10020 .1.3.6.1.4.1.33687.1.1.1.1.1.6

anyways THANKS for the support!!!
Nice Weekend ;)

Re: Monitor application on remote Centos

Posted: Fri Nov 13, 2015 8:34 am
by eloyd
Glad we could help!

Re: Monitor application on remote Centos

Posted: Fri Nov 13, 2015 10:45 am
by hsmith
Great! Glad to hear it is working. Are we all right to close this thread and mark it resolved?

Re: Monitor application on remote Centos

Posted: Fri Nov 20, 2015 6:45 am
by joulsn
HEy,

problem solvedn.

I had to add the specific port in the command. Like snmpwalk -v 1 -c public -O e 10.10.10.74:10020 APP-MIB::.1.3.6.1.4.1.33687.1.1.1.1.1.2.0

BR

Re: Monitor application on remote Centos

Posted: Fri Nov 20, 2015 10:49 am
by rkennedy
Glad to see this is working. I will now close this thread out, but feel free to open another if you ever need assistance in the future.