Error when trying to create a data source for a Cisco router

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

Moderators: Developers, Moderators

firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

Error when trying to create a data source for a Cisco router

Post by firozrangwala »

I am running Cacti .86c on a Windows XP Pro SP2 box with PHP 5.0x, apache2, net-snmp and rrdtools (the latest version).

I was able to create the data source and graphs for one Cisco router without any problems.

When I try to create the data source for another Cisco router, I see the data source reference within Caci with all the references listed, but no .rrd file for the Cisco router in the rra directory.

Debug on produces the following output:

Data Source Debug

c:/rrdtool/rrdtool.exe create \
C:\Apache2\htdocs\cacti/rra/tnw_qwest_router_traffic_in_34.rrd \
--step 300 \
DS:errors_out:COUNTER:600:0:10000000 \
DS:discards_out:COUNTER:600:0:10000000 \
DS:discards_in:COUNTER:600:0:10000000 \
DS:errors_in:COUNTER:600:0:10000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

I am running poller.php on a 5 minute schedule. However, when I switch over to the cacti binary, the poller hangs with a Waiting on poller message.

What am I missing or overlooking?
Firoz Rangwala
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

What's in your cacti log in system utilities?
Dominic Ryan
www.iis-aid.com
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

Attached cacti log file as requested

Post by firozrangwala »

I've attached the cacti error log
Attachments
cactilog012420050528pm.txt
Attached cacti error log
(64.65 KiB) Downloaded 230 times
Firoz Rangwala
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Hmm, I've got almost the exact opposite problem to you. On my test machine if I set my poller to cmd.php then I get the waiting for poller message. Cactid seems to work fine however. What version of Cactid are you using?
Dominic Ryan
www.iis-aid.com
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

0.8.6c

Post by firozrangwala »

0.8.6c
Firoz Rangwala
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

I'm using 0.8.6d which corrected a few issues for me as I'm using Turck. Try alternating the poller between cmd.php and cactid in your cacti settings, and set your poller logging level to high.
Dominic Ryan
www.iis-aid.com
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

.8.6d?....the last stable version posted is 0.86c...

Post by firozrangwala »

Where can I lay my hands on .86d?

The only stable version I was able to lay my hands on was .8.6c.
Firoz Rangwala
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

From the cacti home page at www.cacti.net

Have a look at the news postings in the bottom righ hand corner of the screen.
Dominic Ryan
www.iis-aid.com
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

changed to .8.6d...

Post by firozrangwala »

I don't know if that will help fix the problem I'm having with rrd files not being created...
Firoz Rangwala
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

firozrangwala,

Your issue is with duplicate data sources I think. What Data Query are you using? It does not appear to be standard. Also, how did you get/create it.

Thanks in advance,

TheWitness
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you import the template. Please attach to message. Thanks...
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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Is the problem of no rdd files in the rra directory only happening when using cactid, or is it happening when using cmd.php also?

I notice this in your cacti log when executing in cmd.php mode;
Either there are no items in the cache or polling is disabled
From my experience this happens when one or more of the data or graph templates is getting unexpected data. It looks as if your Cisco router is returning SNMP values correctly, so I'd expect that it is in cacti somewhere that needs attention. What I do when this happens is remove all graphs for the device, then add one at a time until I find the problem.
Dominic Ryan
www.iis-aid.com
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

Post by firozrangwala »

Thanks for the support...

I did not import any templates...

I created my data sources using the device...create...cisco router option.

I was able to create the first device without any problems...device, data source, graphs...the whole works.

When i started working on the second device, i was able to create the device and pull up all the interfaces, but i had partial success in creating the data source for it. I had intermittent success with creating the cpu ds and graph. I've been intermittently successful with creating the DS for traffic on the serial and ethernet interface, but no graphs for the traffic. So I ended up deleting the traffic DS for the serial and Ethernet interface.

When I ran php-cgi from the command prompt after deleting the ds, it popped up an error for duplicate DS. However, the DS does not exist. Nor was the rrd ever created...
Firoz Rangwala
firozrangwala
Posts: 17
Joined: Mon Jan 24, 2005 4:00 pm

I also delete all graphs and DSs when I delete the device...

Post by firozrangwala »

I've done this several times as well.
Firoz Rangwala
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have an instant messanger application, are you prepared to interactively debug this issue.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests