Poller.php and graphs not being created
Moderators: Developers, Moderators
Poller.php and graphs not being created
Im trying to get Cacti up and running in my environment. I have successfully installed it, and was even able to get 1 graph working (CPU on a Cisco Router)
My problem is here though. The router I want to query has a large number of interfaces. When I create the device with Cacti, it sees all of the interfaces just fine. I attempt to create a graph based on one of the interfaces and get stuck there. When I try to look at the graph I get:
"RRDTool Says:
ERROR: opening 'c:\cacti/rra/txrtr001_traffic_in_16.rrd': No such file or directory"
And the file in fact never gets created. I have setup the poller as a scheduled task, and it seems to run with out errors. BUT, when I go to the command line, and enter "c:\php\php.exe c:\cacti\poller.php" first it opens up the "C:\cactid\" folder in an explorer window, then no output ever comes out in the command line, almost like it is stuck on something.
Am I missing something?
I have read through some of the other solutions, and checked my variables and they are there. The thing I find odd about it, is that it worked that one time for the CPU graph, but I cannot get it working other than that.
Thanks in advance for any help!
My problem is here though. The router I want to query has a large number of interfaces. When I create the device with Cacti, it sees all of the interfaces just fine. I attempt to create a graph based on one of the interfaces and get stuck there. When I try to look at the graph I get:
"RRDTool Says:
ERROR: opening 'c:\cacti/rra/txrtr001_traffic_in_16.rrd': No such file or directory"
And the file in fact never gets created. I have setup the poller as a scheduled task, and it seems to run with out errors. BUT, when I go to the command line, and enter "c:\php\php.exe c:\cacti\poller.php" first it opens up the "C:\cactid\" folder in an explorer window, then no output ever comes out in the command line, almost like it is stuck on something.
Am I missing something?
I have read through some of the other solutions, and checked my variables and they are there. The thing I find odd about it, is that it worked that one time for the CPU graph, but I cannot get it working other than that.
Thanks in advance for any help!
In Addition
I have just noticed that the Poller log file contains the following:
11/29/2004 03:10:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
11/29/2004 03:05:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
It seems that the poller.php isnt actually doing anything. Can anyone help?
11/29/2004 03:10:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
11/29/2004 03:05:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
It seems that the poller.php isnt actually doing anything. Can anyone help?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
First of all, you need to apply the patches in the following location:
http://www.cacti.net/downloads/patches/0.8.6b
Then, you need to insure that you are creating interface graphs using Data Queries and not via Graph Templates. Doing so will cause problems with Cacti to be resolved in 0.8.6c and also resolved in the patch's.
Then, if you continue to experience errors, you should change the logging level to DEBUG (Settings->General) and run cmd.php from the command line 1 time to verify you are collecting data. If you pass that test, run poller.php to verify that RRD files are being created.
TheWitness
http://www.cacti.net/downloads/patches/0.8.6b
Then, you need to insure that you are creating interface graphs using Data Queries and not via Graph Templates. Doing so will cause problems with Cacti to be resolved in 0.8.6c and also resolved in the patch's.
Then, if you continue to experience errors, you should change the logging level to DEBUG (Settings->General) and run cmd.php from the command line 1 time to verify you are collecting data. If you pass that test, run poller.php to verify that RRD files are being created.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Patched and Debug
Ok, I have replaced the php files on the machine with the ones in the prepatched folder on the site. I then set it to debug level and ran the cmd.php and got the following output:
C:\cacti>c:\php\php.exe c:\cacti\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
#!/usr/bin/php -q
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: Host responded to SNMP
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] RECACHE: Processing 1 items in the auto reindex cache for '10.1.1.1'.
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, output: 603418718
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, output: 213689389
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Time: 3.4756 s, Theads: N/A, Hosts: 1
When I launch the poller.php from the scheduled task, it does not create the file, and the only thing I see in the window is:
Waiting on 1/1 pollers.
I did verify that I was using the Data Queries to create the graphs. I created a test Query, with the "Get SNMP Data (Indexed)" and it did in fact list all of the different interfaces that are on that Router. I then click the check box next to one of them, and create the graph that way. Is that the proper way?
Thanks for your help and sorry for being so much trouble.
C:\cacti>c:\php\php.exe c:\cacti\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
#!/usr/bin/php -q
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: Host responded to SNMP
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] RECACHE: Processing 1 items in the auto reindex cache for '10.1.1.1'.
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, output: 603418718
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, output: 213689389
11/30/2004 07:48:17 AM - CMDPHP: Poller[0] Time: 3.4756 s, Theads: N/A, Hosts: 1
When I launch the poller.php from the scheduled task, it does not create the file, and the only thing I see in the window is:
Waiting on 1/1 pollers.
I did verify that I was using the Data Queries to create the graphs. I created a test Query, with the "Get SNMP Data (Indexed)" and it did in fact list all of the different interfaces that are on that Router. I then click the check box next to one of them, and create the graph that way. Is that the proper way?
Thanks for your help and sorry for being so much trouble.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please post your DEBUG output. Settings->General->Logging Level.
Thanks,
TheWitness
Thanks,
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
If you are running PHP 5.0.x, you need to have "C:\PHP\PHP-WIN.EXE" in the Settings->Paths for PHP. Please re-read the installation instructions.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Settings
Im running PHP 4.3.9, I believe.
X-Powered-By: PHP/4.3.9
Im not sure what you mean by post your DEBUG settings. I have the poller set to DEBUG output, but I only had poller errors checked. I checked the remaining two options to hopefully get some more output.
Is there a log that you want me to post?
Thanks again,
Jason
X-Powered-By: PHP/4.3.9
Im not sure what you mean by post your DEBUG settings. I have the poller set to DEBUG output, but I only had poller errors checked. I checked the remaining two options to hopefully get some more output.
Is there a log that you want me to post?
Thanks again,
Jason
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please post those results. 1 pass only required.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I went to Settings... Poller... and set the Poller type to cmd.php instead of cactid. This produced different results in the log file, but still did not create the graphs. I DO have cactid extracted to C:\cactid. I will post an entry of it running in both configurations, as Im unsure which I should actually be running.
12/02/2004 07:51:04 AM - SYSTEM STATS: Time: 3.1171 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
12/02/2004 07:51:04 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\cacti\rra\txrtr001_traffic_in_17.rrd --template traffic_out:traffic_in N:4142348772:2891765534
12/02/2004 07:51:04 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe create c:\cacti/rra/txrtr001_traffic_in_17.rrd --step 300 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Time: 1.4204 s, Theads: N/A, Hosts: 1
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, output: 2891765534
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, output: 4142348772
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] RECACHE: Processing 1 items in the auto reindex cache for '10.1.1.1'.
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: Host responded to SNMP
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\cacti\script_server.php
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/cacti
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/cacti
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
12/02/2004 07:51:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:\cacti/cmd.php 0 6]
12/02/2004 07:50:58 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/02/2004 07:46:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid, ARGS: 0 6]
12/02/2004 07:51:04 AM - SYSTEM STATS: Time: 3.1171 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
12/02/2004 07:51:04 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update c:\cacti\rra\txrtr001_traffic_in_17.rrd --template traffic_out:traffic_in N:4142348772:2891765534
12/02/2004 07:51:04 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe create c:\cacti/rra/txrtr001_traffic_in_17.rrd --step 300 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Time: 1.4204 s, Theads: N/A, Hosts: 1
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, output: 2891765534
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: v1: 10.1.1.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, output: 4142348772
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] RECACHE: Processing 1 items in the auto reindex cache for '10.1.1.1'.
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] Host[6] SNMP: Host responded to SNMP
12/02/2004 07:51:04 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\cacti\script_server.php
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/cacti
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/cacti
12/02/2004 07:51:04 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
12/02/2004 07:51:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:\cacti/cmd.php 0 6]
12/02/2004 07:50:58 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/02/2004 07:46:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid, ARGS: 0 6]
Who is online
Users browsing this forum: No registered users and 3 guests