no graph!help me!

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

Moderators: Developers, Moderators

Post Reply
ssphoenix
Posts: 1
Joined: Thu Jun 30, 2005 7:19 am

no graph!help me!

Post by ssphoenix »

here is the log:
06/30/2005 08:12:01 PM - SYSTEM STATS: Time: 1.1253 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 2, Hosts/Process: 2, Data Sources 5, RRDs Processed 3
06/30/2005 08:12:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\Inetpub\wwwroot\cacti\rra\litaos_home_traffic_in_8.rrd --template traffic_in:traffic_out 1120133520:12766901:1883899
06/30/2005 08:12:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\Inetpub\wwwroot\cacti\rra\litaos_home_traffic_in_11.rrd --template traffic_in:traffic_out 1120133520:13219382:49799
06/30/2005 08:12:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\Inetpub\wwwroot\cacti\rra\litaos_home_ping_9.rrd --template ping 1120133520:U
06/30/2005 08:12:00 PM - CACTID: Poller[0] Time: 0.4950 s, Threads: 1, Hosts: 2
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
06/30/2005 08:12:00 PM - CACTID: Poller[0] CACTID: Shutting down Net-SNMP API
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (8,'traffic_out','2005-06-30 20:12:00','1883899')
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[8] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.131076, value: 1883899
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (8,'traffic_in','2005-06-30 20:12:00','12766901')
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[8] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.131076, value: 12766901
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (11,'traffic_out','2005-06-30 20:12:00','49799')
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[11] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 49799
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (11,'traffic_in','2005-06-30 20:12:00','13219382')
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[11] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 13219382
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (9,'ping','2005-06-30 20:12:00','U')
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[9] SCRIPT: perl c:\Inetpub\wwwroot\cacti/scripts/ping.pl 127.0.0.1, output: U
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DS[9] WARNING: Result from SCRIPT not valid. Partial Result: ...
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] ERROR: Empty result [127.0.0.1]: 'perl c:\Inetpub\wwwroot\cacti/scripts/ping.pl 127.0.0.1'
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] DEBUG: The POPEN returned the following File Descriptor 5
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] RECACHE: Processing 3 items in the auto reindex cache for '127.0.0.1'

06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='2005-06-30 12:47:01',status_last_error='Ping not performed due to setting.',min_time='0.000000',max_time='128.999950',cur_time='2.000090',avg_time='2.802968',total_polls='67',failed_polls='1',availability='98.5075' where id='2'
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[2] SNMP Result: Host responded to SNMP
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
06/30/2005 08:12:00 PM - CACTID: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: Parent pid=3064, Script Server pid=0
06/30/2005 08:12:00 PM - CACTID: Poller[0] CACTID: Initializing PHP Script Server
06/30/2005 08:12:00 PM - CACTID: Poller[0] CACTID: Initializing Net-SNMP API
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
06/30/2005 08:12:00 PM - CACTID: Poller[0] CACTID: Version 0.8.6e starting
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The PHP Script Server is Not Required
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: StartHost='0', EndHost='2', TotalPHPScripts='0'
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The script timeout is 25
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The number of concurrent processes is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The polling interval is the system default
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The threads variable is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The log_pstats variable is 0
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 0
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The path_php variable is c:/php/php-win.exe
06/30/2005 08:12:00 PM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
06/30/2005 08:12:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\cactid\cactid.exe, ARGS: 0 2]

looks like good,but i can't get graph,i turn on the graph debug mode,and get this:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="litao's home - Traffic - 222.212.73.80 (WAN (PPP/SLIP) )" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="c\:\Inetpub\wwwroot\cacti/rra/litaos_home_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="c\:\Inetpub\wwwroot\cacti/rra/litaos_home_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 2>&1,rb) [function.popen]: No error in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 89

Warning: fgets(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 112

line 112 is:
$output = fgets($fp, 1000000);

how to slove it?help me!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) What versions of stuff are you running?
2) I suggest upgrading to cacti 0.8.6e.
3) Does it work with cmd.php?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest