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?
Cacti doesnt get snmp values
Moderators: Developers, Moderators
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti doesnt get snmp values
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
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
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
Re: Cacti doesnt get snmp values
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.
Edit:
Monitoring the system by itself (localhost) do work btw.
Re: Cacti doesnt get snmp values
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
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
Who is online
Users browsing this forum: No registered users and 1 guest