Why I can not get Interface Statistics

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Why I can not get Interface Statistics

Post by netana »

Hi,

I can not create Interface statistics (cisco router). I get the SNMP information at the top but the Data Query Debug Information says the following:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Apache2\htdocs\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'
+ No SNMP data returned
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'

What could be the problem?

Thanks in advance
netana

ps: I can create CPU usage for this router.
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

have you done a snmpwalk with getif or a similar program? If so, does it show your interface values?
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

Yes, I did. With getif all interface values are shown.

Maybe more information could helpful:
I am using
Win 2000
php-4.3.39-Win32
Netsnmp-5.2.1
mysql-4.0.18-win
cacti-0.8.6c
rrd-1.0.48
apache-2.0.52
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

have you tried without host template? And then add manually the queries?

It's very weirs. Have you checked also the tree of interfaces under getif is the same cacti is searching at?

mrh
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

I checked it. It*'s the same.
Here the output from the cacti logfile:
There is one error after starting
03/10/2005 12:59:36 PM - SYSTEM STATS: Time: 2.1988 s, Method: cmd.php, Processes: 5, Threads: N/A, Hosts: 3, Hosts/Process: 1
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Time: 0.8001 s, Theads: N/A, Hosts: 1
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 10.2.3.240, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 2
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Time: 0.9450 s, Theads: N/A, Hosts: 1
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.2.254.254, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 2
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
03/10/2005 12:59:35 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
03/10/2005 12:59:35 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
03/10/2005 12:59:35 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
03/10/2005 12:59:34 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
???
User avatar
mrh
Cacti User
Posts: 84
Joined: Tue Mar 08, 2005 9:50 am

Post by mrh »

just try to clear the poller cache under utilities, and afterthat go to a DOS shell and run c:\php c:\cacti\poller.php to see if the error is still there..

mrh
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

It's the same situation.

I don't know what I am doing wrong!!???
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please review the source of the following:

Code: Select all

+ No SNMP data returned
You either do not have SNMP interfaces published, or SNMP is not turned on or you have an invalid read string.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

I am using SNMPc(same community string, same device, ...) without any problem on the same machine.
Below the ouput of the cacti debug: First machine has the problem, the second one is ok.
Could anyone explain me the line + Located input field 'ifIndex' [walk]

1st machine
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Apache2\htdocs\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'
+ No SNMP data returned
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'

2nd machine:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Apache2\htdocs\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]

Thanks
netana
netana
Posts: 20
Joined: Wed Feb 16, 2005 6:36 am

Post by netana »

Many thanks for your help.
I found the problem. I had a fault in the cacti path settings for netsnmp.

Sorry for wasting your time.
Netana
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest