Graph generation issue

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

shahsaifi
Posts: 34
Joined: Tue May 10, 2011 1:09 am
Location: New Delhi, India
Contact:

Re: Graph generation issue

Post by shahsaifi »

ohk :cry:

there was some a "ERROR" named host (Graph Title) in Graph Management, which i just removed as suspecting that might be the reason of this issue. Now it throws below error in debug mode:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='FOX - Traffic - 192.168.1.74 (Intel(R) 82576 )' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefa=a,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:cdefa#002A97FF:"Outbound"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

ERROR: invalid rpn expression in: a,8,* 
Attachments
graph2.png
graph2.png (109.78 KiB) Viewed 945 times
Greetings,
Shah
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Graph generation issue

Post by phalek »

That message makes sense, as there is no data source associate and hence no rrd file linked to that graph ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
shahsaifi
Posts: 34
Joined: Tue May 10, 2011 1:09 am
Location: New Delhi, India
Contact:

Re: Graph generation issue

Post by shahsaifi »

Dear friend, What is need to be done in this case :(
Greetings,
Shah
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Graph generation issue

Post by phalek »

I'd suggest you remove all graphs and data sourced and start over again.

So go to "Console -> Graph Management" select all and delete them, removing all data sources.
Then go to "Console -> Data Sources" select all data sources displayed there and remove them.

Then go to one of your devices and add e.g. a "Associated Graph Templates" like the Unix Ping one to it.

Afterwards, check the Graph Management and Data Sources. The graph and data sources needed for the template should be listed there.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
shahsaifi
Posts: 34
Joined: Tue May 10, 2011 1:09 am
Location: New Delhi, India
Contact:

Re: Graph generation issue

Post by shahsaifi »

Phalek,

Removed all the graphs and data source after this when i am going to add one of graph for a host. It shows none in Graph Item Fields (Data Source) :(

RRDTool Command:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='CCT4 - Memory Usage' \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='Bytes' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefi=b,d,- \
AREA:#562B29FF:"Commit Limit\:"  \
GPRINT::LAST:"  Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"  \
AREA:#FF5700FF:"Total RAM\:"  \
GPRINT::LAST:"     Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"  \
AREA:cdefi#8F005CFF:"Used RAM\:"  \
GPRINT:cdefi:LAST:"      Current\:%8.2lf %s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n"  \
LINE2:#FFFF00FF:"Commited Bytes\:"  \
GPRINT::LAST:"Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:

Code: Select all

ERROR: invalid rpn expression in: b,d,-
Please suggest
Attachments
graph3.png
graph3.png (79.8 KiB) Viewed 936 times
Greetings,
Shah
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Graph generation issue

Post by phalek »

In this case i suggest you start over and do a clean cacti install again. Seems like something got screwed up at some point
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
shahsaifi
Posts: 34
Joined: Tue May 10, 2011 1:09 am
Location: New Delhi, India
Contact:

Re: Graph generation issue

Post by shahsaifi »

Thank you very much my friend, I was doing it wrong way :wink: , it need to be done from Devices on Console tab. I tried to add for one host and ran poller.php manually from same user which is scheduled to run every five minutes and it generated the graphs after half hour graphs started getting data. I guess it is working now. I will start adding for rest of hosts. But one thing is not cleared about templates I haven't found any template for ping hosts.
This link is very useful while adding graphs : http://gregsowell.com/?p=115

Could you please suggest, where it can be found?

Logs:

Code: Select all

06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PID[8973] CTR[1] RESPONSE:''
06/01/2011 12:55:12 PM - CMDPHP: Poller[0] Host[52] DS[771] SERVER: /var/www/html/scripts/ss_host_disk.php ss_host_disk 192.168.1.74 52 1:161:500:5:10:CLKsnmp01:::::: get used 6, output: 14605615104
06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PID[8973] CTR[2] INC: 'ss_host_disk.php' FUNC: 'ss_host_disk' PARMS: '192.168.1.74 52 1:161:500:5:10:CLKsnmp01:::::: get used 3'
06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PID[8973] CTR[2] RESPONSE:''
06/01/2011 12:55:12 PM - CMDPHP: Poller[0] Host[52] DS[766] SERVER: /var/www/html/scripts/ss_host_disk.php ss_host_disk 192.168.1.74 52 1:161:500:5:10:CLKsnmp01:::::: get used 3, output: 400403390464
06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PID[8973] CTR[3] INC: 'ss_host_disk.php' FUNC: 'ss_host_disk' PARMS: '192.168.1.74 52 1:161:500:5:10:CLKsnmp01:::::: get total 3'
06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PID[8973] CTR[3] RESPONSE:''
06/01/2011 12:55:12 PM - CMDPHP: Poller[0] Host[52] DS[766] SERVER: /var/www/html/scripts/ss_host_disk.php ss_host_disk 192.168.1.74 52 1:161:500:5:10:CLKsnmp01:::::: get total 3, output: 599145811968
06/01/2011 12:55:12 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
06/01/2011 12:55:12 PM - CMDPHP: Poller[0] Time: 9.6773 s, Theads: N/A, Hosts: 1
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] WM poller_output: STARTING

06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] WM poller_output: ENDING

06/01/2011 12:55:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/rra/52/766.rrd --template hdd_total:hdd_used 1306947302:599145811968:400403390464
06/01/2011 12:55:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/rra/52/771.rrd --template hdd_used:hdd_total 1306947302:14605615104:0
06/01/2011 12:55:13 PM - SYSTEM STATS: Time:11.4967 Method:cmd.php Processes:100 Threads:N/A Hosts:14 HostsPerProcess:1 DataSources:4 RRDsProcessed:2
06/01/2011 12:55:13 PM - SYSTEM THOLD STATS: Time:0.0014 Tholds:0 Hosts:0
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - DEBUG mode is on

06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Initial: memory_get_usage() says 12.7MBytes used. Limit is 512M
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:108] Iterating all maps.
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:239] Iterated all 0 maps.
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Final: memory_get_usage() says 12.7MBytes used. Limit is 512M
06/01/2011 12:55:13 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97a run complete - Wed, 01 Jun 11 12:55:13 -0400: 0 maps were run in 0 seconds with 0 warnings.
06/01/2011 12:56:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cmd.php" 0 0]
06/01/2011 12:56:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
06/01/2011 12:56:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
06/01/2011 12:56:00 PM - SYSTEM STATS: Time:0.1066 Method:cmd.php Processes:100 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:3 RRDsProcessed:0
06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - DEBUG mode is on

06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Initial: memory_get_usage() says 12.7MBytes used. Limit is 512M
06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:108] Iterating all maps.
06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:239] Iterated all 0 maps.
06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_memory_check@poller-common.php:11] MEM Final: memory_get_usage() says 12.7MBytes used. Limit is 512M
06/01/2011 12:56:00 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97a run complete - Wed, 01 Jun 11 12:56:00 -0400: 0 maps were run in 0 seconds with 0 warnings.
06/01/2011 12:56:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cmd.php" 0 0]
06/01/2011 12:56:01 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
Greetings,
Shah
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Graph generation issue

Post by phalek »

It should be listed under :

Device -> Select a device
then go to the assoicated graph templates at the bottom and check the drop-down box (Add Graph Template) there. It should be named "Unix - Ping Latency"
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
shahsaifi
Posts: 34
Joined: Tue May 10, 2011 1:09 am
Location: New Delhi, India
Contact:

Re: Graph generation issue

Post by shahsaifi »

8) found it, thanks a lot

Thank You,
Greetings,
Shah
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests