New and more Poller Statistics (0.8.6i based)

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

Moderators: Developers, Moderators

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

Post by gandalf »

Thank you for the pointer. Will have to verify
Reinhard
eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

Shucks. I just tried to add an HRULE to the poller runtime graph template and broke it. Now I am getting the dreaded

ERROR: parameter '#FF00FFFF' does not represent a number in line LINE1:#FF00FFFF:Poller Runtime

should have done this in my dev environment first! What's the work around for this?
eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

phew. Just fixed it by adding a single space to every "Text Format" field and saving the template.
rcarneiro
Posts: 4
Joined: Tue Nov 10, 2009 4:00 pm

Post by rcarneiro »

Guys,
I'm trying to use this template and ran into some issues.
It only dispays the graphs for 'Poller Statistics - Runtime', all other graphs won't graph anything.
I imported the xml just fine and placed the php script in the right place.
I'm running it on a debian etch install (installed it from the repo, apt-get install cacti):

Code: Select all

dpkg -l | grep cacti
ii  cacti                             0.8.6i-3.5
and this is what I see in the logs:

Code: Select all

tail -f /var/log/cacti/cacti.log
11/10/2009 03:45:02 PM - CMDPHP: Poller[0] Host[1] DS[25] WARNING: Result from SERVER not valid.  Partial Result:
11/10/2009 03:45:03 PM - SYSTEM STATS: Time:2.0417 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:18 RRDsProcessed:13
I retried the same procedure on another box with the same problem.

Any ideas?
eschoeller
Cacti User
Posts: 234
Joined: Mon Dec 13, 2004 3:03 pm

Post by eschoeller »

I'm running on debian etch as well... but with a localized install of Cacti, not the debian package. I'm running 0.8.7d.

Here's an example of the output from this template:

Code: Select all

11/10/2009 05:04:02 PM - SPINE: Poller[0] Host[1] DS[120] SS[0] SERVER: /usr/local/cacti-0.8.7d/scripts/ss_poller.php ss_poller_items, output: snmp:205 script:7 script_server:4

11/10/2009 05:04:02 PM - SPINE: Poller[0] Host[1] DS[121] SS[1] SERVER: /usr/local/cacti-0.8.7d/scripts/ss_poller.php ss_poller, output: Time:15.2814 Method:spine Processes:1 Threads:10 Hosts:11 HostsPerProcess:11 DataSources:216 RRDsProcessed:53

11/10/2009 05:04:02 PM - SPINE: Poller[0] Host[1] DS[122] SS[2] SERVER: /usr/local/cacti-0.8.7d/scripts/ss_poller.php ss_poller, output: Time:15.2814 Method:spine Processes:1 Threads:10 Hosts:11 HostsPerProcess:11 DataSources:216 RRDsProcessed:53

11/10/2009 05:04:02 PM - SPINE: Poller[0] Host[1] DS[123] SS[3] SERVER: /usr/local/cacti-0.8.7d/scripts/ss_poller.php ss_recache, output: RecacheTime:0.0 HostsRecached:0
I tried running this php script directly from the command line but ended up with this:

Code: Select all

Fatal error: Call to undefined function:  db_fetch_cell() in /usr/local/cacti-0.8.7d/scripts/ss_poller.php on line 26
So, unfortunately I don't know how to run this via command line to try and debug the problem. Perhaps Gandalf has a better way to troubleshoot this issue.

Try kicking up the log verbosity perhaps?
rcarneiro
Posts: 4
Joined: Tue Nov 10, 2009 4:00 pm

Post by rcarneiro »

You should be able to run it like this:

Code: Select all

/usr/bin/php /usr/share/cacti/site/scripts/ss_poller.php
On mine, no matter what parameter I give it (ss_poller/ss_poller_items/ss_recache), it returns the same output:
/usr/bin/php /usr/share/cacti/site/scripts/ss_poller.php ss_poller_items OR
/usr/bin/php /usr/share/cacti/site/scripts/ss_poller.php ss_poller
/usr/bin/php /usr/share/cacti/site/scripts/ss_poller.php ss_recache

Code: Select all

Time:1.0391 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:18 RRDsProcessed:13
snmp:10 script:7 script_server:1
RecacheTime:3.9912 HostsRecached:1


Anyone?
MMaverick
Posts: 3
Joined: Tue Feb 09, 2010 2:32 am
Location: The Netherlands

Post by MMaverick »

If you want to test/debug this script from the command line, you need to use the script server.

More info here: http://docs.cacti.net/manual:087:3a_adv ... ipt_server
bozy
Posts: 1
Joined: Thu Apr 07, 2011 12:13 am

Re: New and more Poller Statistics (0.8.6i based)

Post by bozy »

useful.thx!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests