No Graph but data in

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

Moderators: Developers, Moderators

Post Reply
DaCthulHu
Posts: 1
Joined: Wed Apr 06, 2011 2:39 am

No Graph but data in

Post by DaCthulHu »

Hello,

My Config :
Operating System: Windows 7 x64
Webserver: Apache 2.2.16
Cacti: Cacti-0.8.7g
I Used the Package from BSOD2006 package(Full Install from Cacti-0.8.7g_1.95.exe). It's my second install on this computer (first had same result).

It's a fresh install, no configuration, ALL DEFAULT SETTINGS.
I just create few Devices & Graphs.

I have ping result on "Devices" but nothing in graph
Image
Image[/URL]
04/06/2011 09:35:01 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '60', Time Since Last: '301', Max Runtime '58', Poller Runs: '0.2'
04/06/2011 09:35:01 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 301 seconds have passed since the last poll!
04/06/2011 09:35:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 0 12]
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[4] PING: Ping not performed due to setting.
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[4] DS[13] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[4] DS[13] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[5] PING: Ping not performed due to setting.
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[5] DS[9] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[5] DS[9] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[6] PING: Ping not performed due to setting.
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[6] DS[10] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[6] DS[10] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[7] PING: Ping not performed due to setting.
04/06/2011 09:35:03 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\6\10.rrd --template ping 1302075303:U
04/06/2011 09:35:03 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\5\9.rrd --template ping 1302075303:U
04/06/2011 09:35:03 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\4\13.rrd --template ping 1302075302:U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[7] DS[11] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[7] DS[11] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:03 AM - CMDPHP: Poller[0] Host[9] PING: ICMP Ping Success (42.27 ms)
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[9] DS[14] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[9] DS[14] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[10] PING: ICMP Ping Success (41.21 ms)
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[10] DS[15] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[10] DS[15] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[11] PING: ICMP Ping Success (41.45 ms)
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[11] DS[16] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[11] DS[16] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx , output: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[12] PING: ICMP Ping Success (40.98 ms)
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[12] DS[17] WARNING: Result from CMD not valid. Partial Result: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Host[12] DS[17] CMD: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx, output: U
04/06/2011 09:35:04 AM - CMDPHP: Poller[0] Time: 1.8925 s, Theads: N/A, Hosts: 5
04/06/2011 09:35:04 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\12\17.rrd --template ping 1302075304:U
04/06/2011 09:35:04 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\11\16.rrd --template ping 1302075304:U
04/06/2011 09:35:04 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\10\15.rrd --template ping 1302075304:U
04/06/2011 09:35:05 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\9\14.rrd --template ping 1302075303:U
04/06/2011 09:35:05 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\7\11.rrd --template ping 1302075303:U
04/06/2011 09:35:05 AM - SYSTEM STATS: Time:3.1264 Method:cmd.php Processes:2 Threads:N/A Hosts:6 HostsPerProcess:3 DataSources:8 RRDsProcessed:8
From one of rdd file :
filename = "C:\Apache2\htdocs\cacti\rra\12\17.rrd"
rrd_version = "0003"
step = 300
last_update = 1302076801
ds[ping].type = "GAUGE"
ds[ping].minimal_heartbeat = 600
ds[ping].min = 0.0000000000e+000
ds[ping].max = 5.0000000000e+003
ds[ping].last_ds = "U"
ds[ping].value = NaN
ds[ping].unknown_sec = 1
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 206
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-001
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 48
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-001
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 37
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-001
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 318
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-001
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 96
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].cur_row = 271
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-001
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].cur_row = 692
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-001
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 580
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-001
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 381
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-001
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 96
I don't find any NTFS issues in Processmonitor

Thanks for help ;)
CthulHu
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: No Graph but data in

Post by BSOD2600 »

Do other scripts work fine against that device?

IF you manually run: perl C:/Apache2/htdocs/cacti/scripts/ping.pl xx.xx.xx.xx -- does it work?
dan4stone
Posts: 3
Joined: Thu Apr 07, 2011 8:48 am

Re: No Graph but data in

Post by dan4stone »

My Config :
Operating System: Windows XP SP3
Webserver: Apache 2.2.16
Cacti: Cacti-0.8.7g
Cygwin 1.7.9-1
I Used the Package from BSOD2006 package(Full Install from Cacti-0.8.7g_1.95.exe)

I have exactly the same problem as DaCthulHu

04/07/2011 05:30:01 PM - SPINE: Poller[0] Host[4] Description[BA_207 AU01_XL] ERROR: Empty result [172.31.255.81]: '/usr/bin/perl C:/Apache2/htdocs/cacti/scripts/ping.pl 172.31.255.81'

I have run

C:\USR\bin>perl C:/Apache2/htdocs/cacti/scripts/ping.pl 172.31.255.81
Terminating on signal SIGINT(2)

C:\USR\bin>

and i needed to stop by CTRL+C because nothing happened

I have investigated the ping.pl file and it show like this:

#!/usr/bin/perl

# take care for tcp:hostname or TCP:ip@
$host = $ARGV[0];
$host =~ s/tcp:/$1/gis;

open(PROCESS, "ping -c 1 $host | grep icmp_seq | grep time |");
$ping = <PROCESS>;
close(PROCESS);
$ping =~ m/(.*time=)(.*) (ms|usec)/;

if ($2 == "") {
print "U"; # avoid cacti errors, but do not fake rrdtool stats
}elsif ($3 eq "usec") {
print $2/1000; # re-calculate in units of "ms"
}else{
print $2;
}

I have tested ping from cmd (cygwin is in the path, so ping is cygwin variant no windows built-in)

C:\USR\bin>ping 172.31.255.81
PING 172.31.255.81 (172.31.255.81): 56 data bytes
64 bytes from 172.31.255.81: icmp_seq=0 ttl=61 time=31 ms
64 bytes from 172.31.255.81: icmp_seq=1 ttl=61 time=15 ms
64 bytes from 172.31.255.81: icmp_seq=2 ttl=61 time=15 ms

----172.31.255.81 PING Statistics----
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip (ms) min/avg/max/med = 15/20/31/15

C:\USR\bin>ping -c 1 172.31.255.81
PING 1 (0.0.0.1): 172 data bytes

----1 PING Statistics----
7 packets transmitted, 0 packets received, 100.0% packet loss

C:\USR\bin>

C:\USR\bin>ping --?
Usage: ping [-dfqrv] host [packetsize [count [preload]]]

C:\USR\bin>
and I have noticed that -c is not accepted, so i have modified the 7th line in ping.pl as shown above

open(PROCESS, "ping $host | grep icmp_seq | grep time |");

After that
C:\USR\bin>perl C:/Apache2/htdocs/cacti/scripts/ping.pl 172.31.255.81
Terminating on signal SIGINT(2)

C:\USR\bin>

I manually run

C:\USR\bin>
C:\USR\bin>ping 172.31.255.81 | grep icmp_seq
64 bytes from 172.31.255.81: icmp_seq=0 ttl=61 time=15 ms
64 bytes from 172.31.255.81: icmp_seq=1 ttl=61 time=15 ms
64 bytes from 172.31.255.81: icmp_seq=2 ttl=61 time=15 ms

C:\USR\bin>
C:\USR\bin>
C:\USR\bin>ping 172.31.255.81 | grep icmp_seq | grep time |
The syntax of the command is incorrect.
C:\USR\bin>ping 172.31.255.81 | grep icmp_seq | grep time

C:\USR\bin>
C:\USR\bin>

So, I think the problem is generated by multiple "grep" but I don't now how to fix this
Thank you in advance for help
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: No Graph but data in

Post by BSOD2600 »

Both of you need Perl installed for the ping.pl (perl) script to function. It would appear it's not or something else related to it is misconfigured. Additionally, using perl to ping a host is quite inefficient -- there are better ones in the script forum.
dan4stone
Posts: 3
Joined: Thu Apr 07, 2011 8:48 am

Re: No Graph but data in

Post by dan4stone »

I have ActivePerl installed
C:\USR\bin>perl -v

This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-t
hread
(with 9 registered patches, see perl -V for more detail)

Copyright 1987-2010, Larry Wall

Binary build 1204 [294330] provided by ActiveState http://www.ActiveState.com
Built Feb 9 2011 14:38:22

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


C:\USR\bin>

Can you recommend me, please, a version of perl to use (and how to configure it if necessary) with my configuration?

Operating System: Windows XP SP3
Webserver: Apache 2.2.16
Cacti: Cacti-0.8.7g
Cygwin 1.7.9-1
Full Install from Cacti-0.8.7g_1.95.exe
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: No Graph but data in

Post by BSOD2600 »

Hmm, that version of perl should be fine.

Do you have cygwin installed too? If so, I think its perl is actually being run instead of ActiveState. What happens if you use the full path to activestate's perl to launch ping.pl ?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests