New and more Poller Statistics (0.8.6i based)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Leeroy
Posts: 14
Joined: Fri Jan 18, 2008 6:36 am
Location: Paris, France

Post by Leeroy »

Hi. I've no graph for poller and i don't know why

Code: Select all

 RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Local - Cacti Poller Statistics - Runtime" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="seconds" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/cacti-0.8.7a/rra/localhot_rrdsprocessed_95.rrd":Time:AVERAGE \
DEF:b="/usr/local/cacti-0.8.7a/rra/localhot_rrdsprocessed_95.rrd":RRDsProcessed:AVERAGE \
DEF:c="/usr/local/cacti-0.8.7a/rra/localhot_rrdsprocessed_95.rrd":Threads:AVERAGE \
LINE1:#FF00FFFF:"Poller Runtime"  \
GPRINT::LAST:"Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:#FFD660FF:"Processes"  \
GPRINT:b:LAST:"     Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:#FFAB00FF:"Threads"  \
GPRINT:c:LAST:"       Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

ERROR: parameter '#FF00FFFF' does not represent a number in line LINE1:#FF00FFFF:Poller Runtime
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The Graph Template is broken. Please try to re-import. If that does not help, please post a screenshot of that Graph Template
Reinhard
Leeroy
Posts: 14
Joined: Fri Jan 18, 2008 6:36 am
Location: Paris, France

Post by Leeroy »

Thanks for your answer.

I've re-import the template but nothing change :(


Moreover, i don't think that ss_poller.php works fine :-?

Code: Select all

[root@xxx scripts]# ./ss_poller.php ss_poller


[root@xxx scripts]#
[root@xxx scripts]# php ss_poller.php


[root@xxx scripts]#
Attachments
graph_template.JPG
graph_template.JPG (81.41 KiB) Viewed 8515 times
graph_template2.JPG
graph_template2.JPG (68.76 KiB) Viewed 8515 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's a 087a cacti version, isn't it? In this case, I will try to reproduce here. Did not use it with 087a yet
Reinhard
Leeroy
Posts: 14
Joined: Fri Jan 18, 2008 6:36 am
Location: Paris, France

Post by Leeroy »

Yes it is.

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

Post by gandalf »

Aah, please try saving all those graph items associated with a color. Change any field of those items forth and back and retry. I suspect a broken import function.
Reinhard
Leeroy
Posts: 14
Joined: Fri Jan 18, 2008 6:36 am
Location: Paris, France

Post by Leeroy »

I'm not sure to understand what you said but i try to associate color with each item and it does'nt change anything.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's not what I was talking about. Please select graph item#1, 5, 9 in turn. Then, for each of them, change some text and save. Select again, change text back to original and save again (thus forcing cacti to re-create data structures for those items). Then, please retry
Reinhard
Leeroy
Posts: 14
Joined: Fri Jan 18, 2008 6:36 am
Location: Paris, France

Post by Leeroy »

Thanks for explanations ;)

Unfortunately, it doesn't change anything. :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I did not verify my poller stats templates on 087 yet. Will do, hopefully this weekend
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

While I didn't import the poller stat templates when on my 0.8.7a installation, it still works fine from an import on earlier versions of cacti. Yes, I had to change the global.php thing, but otherwise the graph works fine.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi Reinhard

your template works fine on my 0.8.7a installation.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks for those answers. I already feared, that I made a mistake concerning template export when adding opacity.
While the Graph Template above seems to be fine, the Graph DEBUG clearly shows, that the DEFs are not associated with the colored graph item.
The usual procedure as given above does not help. So I'm a bit stumped
Reinhard
johara
Posts: 15
Joined: Wed Dec 19, 2007 5:59 pm

Post by johara »

Just installed your template on my 8.7a install based on BSOD's Windows installer and everything works great.
Thanks
redkurawa
Posts: 6
Joined: Tue May 02, 2006 5:54 am

Post by redkurawa »

Hi Gandalf,

I have install this script in new installed 0.8.7b, and looks working properly.

The Cacti Poller Statistics - Objects, Cacti Poller Statistics - Runtime, and Poller Item Statistics can show up the graph.

But the last one, Recache Statistics is still empty.

My output query from mysql is

Code: Select all

mysql> SELECT * FROM `settings` WHERE name = stats_poller;
ERROR 1054 (42S22): Unknown column 'stats_poller' in 'where clause'
Please advised.

regards,

redkurawa
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests