[solved] New install, latency and traffic graphs not working

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

Moderators: Developers, Moderators

Post Reply
jmlivingston
Posts: 4
Joined: Sun Apr 08, 2012 3:44 pm
Location: Orange County, CA

[solved] New install, latency and traffic graphs not working

Post by jmlivingston »

So I just finished my first install of Cacti 2 days ago on a WinXP system I had laying around. I'm trying to get 2 types of graphs working but so far no luck.

Environment
Operating System:Windows XP
Webserver: Apache 2.2
Cacti: 0.8.8
Spine: Cactid 0.8.6k installed but not used
MySQL: 5.5.22.1
Perl: Activestate 5.14.02.1402
PHP: 5.2.17
RRDTool (Cygwin or Win32 build): Win32, 1.2.30
Net-SNMP: 5.6.1.1-1
Cygwin (cygwin1.dll version): Not installed
Plugin Architecture: Not used

What is graphing:
[*]CPU utilization on a Cisco 7201 router
[*]Win2008 disk space utilization
[*]Win2008 CPU utilization (quad-core, all 4 cpu's are graphing independently
[*]Win2008 logged in users
[*]Win2008 process counts
[*]WinXP (localhost) CPU utilization
[*]WinXP (localhost) disk space utilization

What is not graphing:
[*] Any latency charts using the "Unix - Ping Latency" template. Already updated to the latest perl script from the SVN repository yesterday. The latency charts are created but with no data. Downloading the .csv file shows "NaN" on each polling cycle. Device setup defines ICMP for using ping rather than UDP and my ping.pl looks like this:

Code: Select all

#!/usr/bin/perl 

$ping = `ping -c 1 $ARGV[0] | grep icmp_seq`; 
$ping =~ m/(.*time=)(.*) (ms|usec)/; 

print $2; 
[*] Any bandwidth usage charts using the "Interface - Traffic (bits/sec)" templates. No graphs created, and the .csv files don't have any data in it beyond the first 10 lines of header information (see attached image). The rrd's are being created and timestamps are current with the device Data Query "SNMP - Interface Statistics" reporting success, but a debug view on it shows that while it is querying the device it does not even look to be trying to get the octets. It is getting operational status, description, name, alias, type, IP address, etc but not anything that looks like bandwidth info.

Can anyone give me some pointers on where to go next?

Thanks,
John
Attachments
Image of the empty spreadsheet for bandwidth graphs
Image of the empty spreadsheet for bandwidth graphs
traffic-xls.jpg (25.49 KiB) Viewed 4642 times
Console -_ Utilities -_ Technical Support.pdf
PDF of the tech-support screen
(103.18 KiB) Downloaded 192 times
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: New install, latency and traffic graphs not working

Post by nemesisj »

Hi together,

facing the same problems on my fresh installation of 0.8.8

Date Mon, 09 Apr 2012 17:41:02 +0200
Cacti Version 0.8.8
Cacti OS win32
SNMP Version NET-SNMP version: 5.4
RRDTool Version RRDTool 1.2.x

Hosts 2
Graphs 25
Data Sources SNMP: 2

SNMP Query: 14
Script Query - Script Server: 9
Total: 25

Poller Information
Interval 300
Type cmd.php
Items Action[0]: 30
Action[2]: 14
Total: 44
Concurrent Processes 1
Max Threads 1
PHP Servers 1
Script Timeout 25
Max OID 10
Last Run Statistics Time:2.9435 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:70 RRDsProcessed:38

PHP Information
PHP Version 5.3.10
PHP OS WINNT
PHP uname Windows NT HOSTNAME 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
PHP SNMP Installed
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New install, latency and traffic graphs not working

Post by BSOD2600 »

There is a known bug with Cacti 0.8.8 which only affects Windows, due to changes in character escaping. See http://bugs.cacti.net/view.php?id=2208

If the rrdtool graph debug output contains "invalid rpn expression", you're experiencing it. A fix is being worked on.
jmlivingston
Posts: 4
Joined: Sun Apr 08, 2012 3:44 pm
Location: Orange County, CA

Re: New install, latency and traffic graphs not working

Post by jmlivingston »

So I've downgraded to .8.7.i by doing the following:
  • backed up my config.php file
  • Stopped the Apache 2.2 service
  • copied the .8.7.i files over the top of .8.8
  • restored my config.php
  • restarted Apache 2.2
  • Logged into the web console and went through the setup wizard calling it a new install.
All the bandwidth charts immediately showed up to include data that was collected prior to the downgrade Yaay! Issue number 2 solved.

Issue number 1 still appears to be a problem, my latency graphs are still empty. Downloading the graph's CSV file shows that I'm still getting "NaN's".


Looks like the ping.pl script is a *nix-only option.
Last edited by jmlivingston on Tue Apr 10, 2012 10:51 am, edited 2 times in total.
jmlivingston
Posts: 4
Joined: Sun Apr 08, 2012 3:44 pm
Location: Orange County, CA

Re: New install, latency and traffic graphs not working

Post by jmlivingston »

<<never mind>>
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: New install, latency and traffic graphs not working

Post by nemesisj »

Hi together,

after replacing the mentioned file in http://bugs.cacti.net/view.php?id=2208 (libs/rrd.php) from SVN http://svn.cacti.net/viewvc/cacti/branc ... p?view=log Revision 7110 the Interface Graphes are still absent.

Iam not sure if Bug #0002208 affects the issue with the missing interface graphes

Here my RRD Debug output:

Code: Select all

Not Working Graph - Data Source Debug from Cacti 0.8.8

E:/rrdtool/rrdtool.exe create \
E:/inetpub/wwwroot/cacti/rra/2/112.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out: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 \

Code: Select all

Working Graph - Data Source Debug from Cacti 0.8.7g
c:/rrdtool/rrdtool.exe create \
C:/inetpub/wwwroot/cacti/rra/hostname_traffic_in_2448.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:500 \
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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
One note to the output: The Feature "Structured RRA Path (/host_id/local_data_id.rrd)" is enabled in the 0.8.8 enviorment and in the 0.8.7g enviorment not. But I think that does not matter.


I agree to jmlivingston. The same monitored device works propper with 0.8.7g in my old win32-enviorment.

So is there still another issue?

@jmlivingston - you can confirm my story?


Br
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New install, latency and traffic graphs not working

Post by BSOD2600 »

nemesisj: thats actually the data template debug output. You want the graph debug output which is in Graph Management -> select a graph and enable graph debugging.
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: New install, latency and traffic graphs not working

Post by nemesisj »

Hi, well - sorry that was my fault :oops:

Now I checked it and the debug output at the right position for Graphes including CDEFs is completly blank after replacing mentioned file from the SVN. I checked other graphes (e.g. CPU) - here is everything quite ok.

Ciao
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: New install, latency and traffic graphs not working

Post by gandalf »

nemesisj wrote:after replacing the mentioned file in http://bugs.cacti.net/view.php?id=2208 (libs/rrd.php) from SVN http://svn.cacti.net/viewvc/cacti/branc ... p?view=log Revision 7110 the Interface Graphes are still absent.
You have to replace lib/functions.php as well.
R.
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: New install, latency and traffic graphs not working

Post by nemesisj »

works perfect - thanks & grüße nach münster :)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests