Cacti doesnt get snmp values

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

Moderators: Developers, Moderators

Post Reply
ckern
Posts: 3
Joined: Wed May 25, 2016 7:20 am

Cacti doesnt get snmp values

Post by ckern »

I'm trying to get some simple if-statistics from my mikrotik router, but it seems as cacti didn't get any values.
I can ping my router, also a simple SNMP walk from the commandline of the machine running cacti do work:
snmpwalk -v1 -c gmx459snmp 192.168.1.1 .1.3.6.1.2.1.2.2.1.1 (.1.3.6.1.2.1.2.2.1.2 gives me the correct if-descriptions and so on)
iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
iso.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
iso.3.6.1.2.1.2.2.1.1.5 = INTEGER: 5
iso.3.6.1.2.1.2.2.1.1.6 = INTEGER: 6
iso.3.6.1.2.1.2.2.1.1.7 = INTEGER: 7
iso.3.6.1.2.1.2.2.1.1.8 = INTEGER: 8

The verbose query gives me the following 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

There is absolutely no error output in /var/log/cacti/*, neither in the apache/php logfiles.
The device is configured as 'generic snmp enabled host' and snmp v1 in cacti itself, so everything should work.

Can somebody help me or give me a hint?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cacti doesnt get snmp values

Post by phalek »

Do you have selinux enabled ? Apache may not be able to do network connections.

See here: http://docs.cacti.net/manual:088:1_inst ... x_settings
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
ckern
Posts: 3
Joined: Wed May 25, 2016 7:20 am

Re: Cacti doesnt get snmp values

Post by ckern »

thank you for your input, selinux isn't installed. The system is a debian 8.4 btw.

Edit:
Monitoring the system by itself (localhost) do work btw.
ckern
Posts: 3
Joined: Wed May 25, 2016 7:20 am

Re: Cacti doesnt get snmp values

Post by ckern »

wahhh damn, what a stupid error by myself.
Found the problem, localhost is getting monitored without snmp, that's why it was working and the php snmp module
wasn't activated. Found it as i was taking a look a the cacti technical support page, but maybe a better failure handling
or a detailed output on verbose query would be nice ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests