New and more Poller Statistics (0.8.6i based)
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The first one
- Host: the total number of targets polled
- Hosts per Process: it is possible to run more than a single process in parallel. In your case "Hosts per process" = "Hosts", so you're running a single process only
- DataSources: the number of items you're polling. E.g. inbound and outbound traffic for a single interface count as "two"
- RRDs: number of rrd files used. A rrd file may incorporate 1..many data sources
The second one:
- Poller runtime: the total time betwen poller start and poller end. Should be less than 300
- Process: as said above: currently 1
- Threads: valid only when using cactid. As you're using cmd.php as a poller, the value is reported as NaN
Reinhard
- Host: the total number of targets polled
- Hosts per Process: it is possible to run more than a single process in parallel. In your case "Hosts per process" = "Hosts", so you're running a single process only
- DataSources: the number of items you're polling. E.g. inbound and outbound traffic for a single interface count as "two"
- RRDs: number of rrd files used. A rrd file may incorporate 1..many data sources
The second one:
- Poller runtime: the total time betwen poller start and poller end. Should be less than 300
- Process: as said above: currently 1
- Threads: valid only when using cactid. As you're using cmd.php as a poller, the value is reported as NaN
Reinhard
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
Hello,
I use cacti0.8.6j and cactid 0.8.6i.
I don't use boost server and all the graphs run, except the "recache stats".
When I run manually the commands:
#php ss_poller.php
I have this result:
Time:1.1720 Method:cactid Processes:1 Threads:1 Hosts:4 HostsPerProcess:4 DataSources:3 RRDsProcessed:3
snmp:0 script:2 script_server:1
So the following line is miss:
RecacheTime:xxx HostsRecached:x
In the log cacti.log:
DEBUG: SQL Cell: "select value from settings where name='stats_recache'"
09/17/2007 05:52:03 PM - CACTID: Poller[0] Host[3] DS[137] SS[0] WARNING: Result from SERVER not valid. Partial Result: ...
Indeed, the table Mysql settings not contain an entry for "stats_recache".
My Question:
How to make to activate the recache ?
I use cacti0.8.6j and cactid 0.8.6i.
I don't use boost server and all the graphs run, except the "recache stats".
When I run manually the commands:
#php ss_poller.php
I have this result:
Time:1.1720 Method:cactid Processes:1 Threads:1 Hosts:4 HostsPerProcess:4 DataSources:3 RRDsProcessed:3
snmp:0 script:2 script_server:1
So the following line is miss:
RecacheTime:xxx HostsRecached:x
In the log cacti.log:
DEBUG: SQL Cell: "select value from settings where name='stats_recache'"
09/17/2007 05:52:03 PM - CACTID: Poller[0] Host[3] DS[137] SS[0] WARNING: Result from SERVER not valid. Partial Result: ...
Indeed, the table Mysql settings not contain an entry for "stats_recache".
My Question:
How to make to activate the recache ?
Hi, for some reason my rrd's aren't being created.. i ran the script server manually ss_poller works fine. I check the sql db and the data is there and being updated, but no rrds for only this script (i only have snmp script queries until now, this is my first php script in use).
I'm not sure where to look to see why the rrd's are not being created. I tryed debug logging. I also have pollperf plugin still loaded. I use cactid, but I tried with cmd.php and still no rrd, using patched .8.6.j and v0.8.6i cactid.
I'm not sure where to look to see why the rrd's are not being created. I tryed debug logging. I also have pollperf plugin still loaded. I use cactid, but I tried with cmd.php and still no rrd, using patched .8.6.j and v0.8.6i cactid.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please run mysql from command line and ask for Post the output here. Are you sure to use the latest code?
Reinhard
Code: Select all
SELECT * FROM `settings` WHERE name = stats_poller;
Reinhard
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi Reinhard
I'm using the "old" version of your template with Cacti 0.8.7, and it returns the following error :
Should I include global.php instead of config.php ?
I'm using the "old" version of your template with Cacti 0.8.7, and it returns the following error :
Code: Select all
$ /usr/bin/php -q /home/cactiuser/cacti-0.8.7/scripts/ss_poller.php
PHP Fatal error: Call to undefined function db_fetch_cell() in /home/cactiuser/cacti-0.8.7/scripts/ss_poller.php on line 22
[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]
[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]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Well, I've upgraded to this "new" script, and it's working fine with Cacti 0.8.7a
(and it's really nicier)
(and it's really nicier)
[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]
[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]
Who is online
Users browsing this forum: No registered users and 1 guest