Graph not show

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

Moderators: Developers, Moderators

Post Reply
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Graph not show

Post by faraway89 »

Hi all,

Please help me about this problem, I try many search but not help.

Cacti Version 0.8.8f
Cacti OS win32
SNMP Version NET-SNMP version: 5.6.1.1
RRDTool Version RRDTool 1.4.x
Type cmd.php

The status is unknown, snmp is running OK.

RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start="-86400" \
--end="-300" \
--title="PC - Traffic - FastEthernet0/0/1" \
--rigid \
--base="1000" \
--height="120" \
--width="500" \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/Program Files/VertrigoServ/www/cacti/rra/3/22.rrd":"traffic_in":AVERAGE \
DEF:b="C\:/Program Files/VertrigoServ/www/cacti/rra/3/22.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefe="b,8,*" \
AREA:cdefa#00CF00FF:"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#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:
ERROR: opening 'C:/Program Files/VertrigoServ/www/cacti/rra/3/22.rrd': No such file or directory

C:/Program Files/VertrigoServ/www/cacti/rra/ is empty of .rrd.

Console -> Utilities -> View Cacti Log File:
10/24/2015 06:54:35 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start="1445619275" --end="1445705675" --title="PC - Traffic" --rigid --base="1000" --height="120" --width="500" --alt-autoscale-max --lower-limit="0" COMMENT:"From 2015/10/23 18\:54\:35 To 2015/10/24 18\:54\:35\c" COMMENT:" \n" --vertical-label="bytes per second" --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: AREA:#00CF00FF:"Inbound" GPRINT::LAST:" Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s\n" LINE1:#002A97FF:"Outbound" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Maximum\:%8.2lf %s\n"

Thanks
Attachments
Capture.JPG
Capture.JPG (150.34 KiB) Viewed 5211 times
Capture.JPG
Capture.JPG (74.71 KiB) Viewed 5211 times
Capture.JPG
Capture.JPG (65.67 KiB) Viewed 5211 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph not show

Post by BSOD2600 »

have you followed the troubleshooting steps in http://forums.cacti.net/viewtopic.php?f=3&t=11747 ?
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: Graph not show

Post by faraway89 »

I try with new SNMP network and I see SNMP working fine when I change SNMP comminity, but I can not find problem about graph. The status is unknown and rrd file is not created.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph not show

Post by BSOD2600 »

The status needs to be up, for cacti to poll a device. what downtime detection method are you using? Any errors in the top left corner of the device in cacti?
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: Graph not show

Post by faraway89 »

Hi BSOD2600,

I use downtime detection method Ping and SNMP up time.
Now everything is OK, related to environment variables and after running poller.php, it's working with poller type cmd.php
About interval, I create a task scheduler tu run poller every 5 minutes, is there any way to run it automatically from cacti.
When I change to spine, I add file to C:\Spine, config in Poller Type to spine, change spine.conf username/passwork, this time poller is stop working. I dont know I miss anything, can you help me?

10/30/2015 11:58:52 AM - SYSTEM STATS: Time:298.5131 Method:spine Processes:1 Threads:1 Hosts:4 HostsPerProcess:4 DataSources:14 RRDsProcessed:0 <= normal is 3 instead of 0
10/30/2015 11:58:52 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
10/30/2015 11:53:53 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/Spine/spine.exe, ARGS: 0 4]
10/30/2015 11:53:53 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 600 seconds have passed since the last poll!
10/30/2015 11:53:53 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '600', Max Runtime '298', Poller Runs: '1'
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph not show

Post by BSOD2600 »

faraway89 wrote:Now everything is OK, related to environment variables and after running poller.php, it's working with poller type cmd.php
About interval, I create a task scheduler tu run poller every 5 minutes, is there any way to run it automatically from cacti.
Follow the installation guide http://docs.cacti.net/manual:088:1_inst ... er_windows and configure the windows task. It will automatically run every 5 minutes. No you cannot start it via cacti.
faraway89 wrote:When I change to spine, I add file to C:\Spine, config in Poller Type to spine, change spine.conf username/passwork, this time poller is stop working. I dont know I miss anything, can you help me?
When you manually run spine.exe from the command line, any errors?

I'd suggest you stick with the cmd.php poller until you're more familiar with Cacti.
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: Graph not show

Post by faraway89 »

BSOD2600 wrote:
faraway89 wrote:When I change to spine, I add file to C:\Spine, config in Poller Type to spine, change spine.conf username/passwork, this time poller is stop working. I dont know I miss anything, can you help me?
When you manually run spine.exe from the command line, any errors?

I'd suggest you stick with the cmd.php poller until you're more familiar with Cacti.
Hi, there is log like that:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Spine>spine.exe
SPINE: Using spine config file [spine.conf]
MYSQL: Connection Failed: Error:'2002', Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
MYSQL: Connection Failed: Error:'2002', Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
MYSQL: Connection Failed: Error:'2002', Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
MYSQL: Connection Failed: Error:'2002', Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
MYSQL: Connection Failed: Error:'2002', Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
11/03/2015 12:46:32 AM - SPINE: Poller[0] FATAL: Connection Failed, Error:'2002'
, Message:'Can't connect to local MySQL server through socket '/tmp/mysql.sock'(2)' (Spine init)

C:\Spine>
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graph not show

Post by BSOD2600 »

What did you specify for DB_Host?
Did you read the notes about the valid options for this field in spine.conf ?
faraway89
Posts: 12
Joined: Sun Oct 18, 2015 11:17 am

Re: Graph not show

Post by faraway89 »

Hi BSOD2600,

I can not find plugin monitor status (up/down) of each interfaces, canyou me and download link too. Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests