Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I have just set-up a cacti install (from scratch. I created memory/load graphs for my local machine, but when I try to make the network graphs I get this weird looking page, and whatever I choose I just can't make a network graph.
Same happens on a cacti updated through some versions (currently at 0.8.6c) running on the same environment. It happens both on the local snmp machine and on a remote snmp-enabled host.
Are you using a fully patched version of Cacti 0.8.6c? Also, are you using net-snmp for this host or builtin snmp? Have you modified snmp.php? The reason I ask is that your output should have looked more like this:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='16777219'] index: 16777219 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 16777219 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='MS TCP Loopback interface'] index: 1 [from value]
+ Found item [ifDescr='Network Teaming Intermediate Driver (NTID)'] index: 16777219 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 16777219 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 16777219 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:08:02:DE:8C:96'] index: 16777219 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='148.98.150.187'] index: 16777219 [from regexp oid parse]
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
TheWitness
True understanding begins only when we realize how little we truly understand...
I have explicitly downloaded the full cacti 0.8.6c package from the cacti website, and did a fresh install.
I bealive that the net-snmp binary is used, as I have provided it durring cacti setup, and I haven't messed up with anything related to source code (either net-snmp or cacti .
I will try switching to ucd-snmp and see what that gives me.
ucd-snmp works fine. I tried to add cpu statistics (net/ucd-snmp enabled host), but at the first polling the snmpd deamon died on me. Probably a ucd-snmp issue.
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Up'] index: 5 [from value]
+ Found item [ifOperStatus='Down'] index: 6 [from value]
+ Found item [ifOperStatus='Up'] index: 7 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Found item [ifDescr='eth2'] index: 4 [from value]
+ Found item [ifDescr='eth3'] index: 5 [from value]
+ Found item [ifDescr='sit0'] index: 6 [from value]
+ Found item [ifDescr='br0'] index: 7 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='tunnel(131)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='10000000'] index: 2 [from value]
+ Found item [ifSpeed='10000000'] index: 3 [from value]
+ Found item [ifSpeed='10000000'] index: 4 [from value]
+ Found item [ifSpeed='10000000'] index: 5 [from value]
+ Found item [ifSpeed='0'] index: 6 [from value]
+ Found item [ifSpeed='10000000'] index: 7 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:02:44:30:96:4E'] index: 2 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:3D'] index: 3 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:6A'] index: 4 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:4B'] index: 5 [from value]
+ Found item [ifHwAddr='00:00:00:00:8F:4B'] index: 6 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:4B'] index: 7 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='0.0.0.0'] index: 4 [from regexp oid parse]
+ Found item [ifIP='10.0.0.3'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='194.102.61.170'] index: 2 [from regexp oid parse]
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
If I can provide any more help I'm here I still have 2 more hosts with net-snmp and the same problem
I want to know what version of NET-SNMP you are running. UCD-SNMP has been replaced with NET-SNMP, and you should be using that.
Also, if you don't mind, can you send me your snmpd.conf file? Email or PM will do.
This is an interesting problem, to say the least.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[root@venus branix]# snmpget -v 2>&1 | head -10
snmpget: option requires an argument -- v
USAGE: snmpget [OPTIONS] AGENT OID [OID]...
Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
[root@venus branix]# cat /etc/snmp/snmpd.conf
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity public 127.0.0.1
[root@venus branix]#
[root@venus tools]# php /www/tools/cacti/poller.php
Fatal error: Call to undefined function: db_connect() in /var/spool/www/tools/cacti/lib/database.php on line 111
[root@venus tools]#
And yes, after patching I still get the same output when I try to create a network interface graph.