SNMP Error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
sunkumar
Posts: 6
Joined: Fri Sep 13, 2013 3:22 am

SNMP Error

Post by sunkumar »

Hello Friends,

I have install a cacti server as per instruction mention in the blog

https://www.digitalocean.com/community/ ... oud-server

After installing the server I am able to connect and monitor device which is in my internal network IP ranges. And on all the IP ranges which are not part of internal LAN I am getting SNMP Error at the time of creating device. I have also check the Data Query Debug Information but I am getting below output:

+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count:
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned

I have also checked the cacti log file;

09/17/2013 05:27:01 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.1', and OID:'.1.3.6.1.2.1.1.1.0'
09/17/2013 05:26:59 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.1', and OID:'.1.3.6.1.2.1.1.3.0'
09/17/2013 05:26:57 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.1', and OID:'.1.3.6.1.2.1.2.2.1.1'
09/17/2013 05:26:56 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.1', and OID:'.1.3.6.1.2.1.2.1.0'
09/17/2013 05:26:51 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.1', and OID:'.1.3.6.1.2.1.1.1.0'

I have also checked my firewall logs and I am not getting any drop between my cacti server and remote device (192.168.1.1).

Could anyone help me to solve this issue?

Thanks and Regards

Sunil
jftuga
Posts: 49
Joined: Mon Feb 07, 2011 11:50 am
Location: Athens, GA

Re: SNMP Error

Post by jftuga »

What happens when you try this from the cacti server's command line?

Code: Select all

snmpwalk -v2c -c public 192.168.1.1
You may need to change "public" to your device's community string.

-John
sunkumar
Posts: 6
Joined: Fri Sep 13, 2013 3:22 am

Re: SNMP Error

Post by sunkumar »

Hello John,

I am getting below output with snmpwalk command.

Timeout: No Response from 192.168.1.1
jftuga
Posts: 49
Joined: Mon Feb 07, 2011 11:50 am
Location: Athens, GA

Re: SNMP Error

Post by jftuga »

The cacti server can't connect to the device's SNMP service. Are you sure the SNMP community is 'public'? Is the device and the cacti server on the same subnet or might there be a firewall or switch ACLs interfering?

-John
tylerc
Posts: 24
Joined: Tue Aug 13, 2013 10:59 pm

Re: SNMP Error

Post by tylerc »

DigitalOcean is a cloud hosting service. I'm not sure what you're trying to monitor, but if it's not another Digital Ocean server (and using private networking--a feature available only in their NY2 data center), then this isn't going to work. Not the way you're trying to do it, anyway.
sunkumar
Posts: 6
Joined: Fri Sep 13, 2013 3:22 am

Re: SNMP Error

Post by sunkumar »

Hello John,

Yes I am sure SNMP community on remote device is Public. And between Device 192.168.1.1 and Cacti server we have firewall. But I have already made required ruleset on firewall. And firewall logs are not showing any drop between cacti server and remote device (192.168.1.1).

Hello DigitalOcean,

I am going to monitor interface statistics.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests