Monitor application on remote Centos

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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor application on remote Centos

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitor application on remote Centos

Post by hsmith »

Are you making sure that you're using the same community?

Thanks for that information Eric. SNMP is a beast :)
Former Nagios Employee.
me.
joulsn
Posts: 19
Joined: Fri Nov 06, 2015 10:42 am

Re: Monitor application on remote Centos

Post 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 ;)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor application on remote Centos

Post by eloyd »

Glad we could help!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitor application on remote Centos

Post by hsmith »

Great! Glad to hear it is working. Are we all right to close this thread and mark it resolved?
Former Nagios Employee.
me.
joulsn
Posts: 19
Joined: Fri Nov 06, 2015 10:42 am

Re: Monitor application on remote Centos

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor application on remote Centos

Post 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.
Former Nagios Employee
Locked