|
|
| Author |
Message |
markstayt
Joined: 17 Aug 2004 Posts: 2
|
Posted: Wed Aug 18, 2004 9:57 am Post subject: RRD's not getting created |
|
|
I am using cacti-0.8.6 20040817 but am having the problem that the rrd's
for the devices are not being created.
If I use the output from the Data sources debug, and put it on the command line the RDD's are created.
I have checked permissions and everything is correct.
Below is the output from php cmd.php
arecibo# php cmd.php
PHP Warning: socket_set_option() unable to set socket option [99]: Option not supported by protocol in /stripe/xampp/htdocs/cacti_b
ad/lib/ping.php on line 216
#!/usr/bin/php -q
08/18/2004 11:08 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] PING: Host is Alive
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] SNMP: SNMP not performed due to setting or ping result.
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] CMD: perl /stripe/xampp/htdocs/cacti-0.8.6/scripts/linux_memory.pl MemFree:, output:
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] CMD: perl /stripe/xampp/htdocs/cacti-0.8.6/scripts/linux_memory.pl SwapFree:, output
:
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] CMD: perl /stripe/xampp/htdocs/cacti-0.8.6/scripts/loadavg_multi.pl, output: 1min:0.
10 5min:0.07 10min:0.07
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] CMD: perl /stripe/xampp/htdocs/cacti-0.8.6/scripts/unix_users.pl, output: 8
08/18/2004 11:08 AM - CMDPHP: Poller[0] Host[1] CMD: perl /stripe/xampp/htdocs/cacti-0.8.6/scripts/unix_processes.pl, output: 109
08/18/2004 11:08 AM - CMDPHP: Poller[0] Execution Time: 1.1224 s, Method: cmd.php Polled Hosts: 1
arecibo# |
|
| Back to top |
|
 |
arcanez
Joined: 16 Jul 2004 Posts: 3
|
Posted: Wed Aug 18, 2004 1:07 pm Post subject: RE: RRD's not getting created |
|
|
| Quote: | | I am using cacti-0.8.6 20040817 but am having the problem that the rrd's for the devices are not being created. |
try running poller.php instead. poller.php figures out which to run, cactid or cmd.php. I had the same problem as you and it was fixed by running poller.php. Also, I removed the #!/usr/bin/php from the top of all my php scripts, since I run them as php <script> and not ./script.php
arcanez |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Fri Aug 20, 2004 6:42 pm Post subject: |
|
|
| Quote: |
PHP Warning: socket_set_option() unable to set socket option [99]: Option not supported by protocol in /stripe/xampp/htdocs/cacti_b
ad/lib/ping.php on line 216
|
Also, it looks like either your version of PHP does not support the socket calls required for host pinging or you are not running poller.php as root and attempting to open an ICMP socket. If the latter is the case, you can choose UDP ping or SNMP polling.
Socket calls are supported in 4.3.6+. I am not that familiar with *nix. Therefore, I can not be much help.
TheWitness |
|
| Back to top |
|
 |
markstayt
Joined: 17 Aug 2004 Posts: 2
|
Posted: Mon Aug 23, 2004 8:22 am Post subject: |
|
|
| Running poller.php seem to have sorted out the problem. I still get the error messages, but the RRD's are been created and updated. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Mon Aug 23, 2004 4:35 pm Post subject: |
|
|
Please post error messages.
TheWitness |
|
| Back to top |
|
 |
Brian Blood
Joined: 30 Apr 2005 Posts: 9
|
Posted: Thu Jun 02, 2005 9:19 am Post subject: |
|
|
| I'm getting the same thing and I'm using PHP 4.3.9 |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5448 Location: Wisconsin, USA
|
Posted: Thu Jun 02, 2005 9:42 am Post subject: |
|
|
| Are you using an unstable release? If so..... Well, it's alpha... If not, please post in the GENERAL forums or the approriate platform forums. |
|
| Back to top |
|
 |
Brian Blood
Joined: 30 Apr 2005 Posts: 9
|
Posted: Thu Jun 02, 2005 1:58 pm Post subject: |
|
|
Sorry no...
0.8.6d with the two poller/cmd patches recently released.
I found the original post searching Google for the socket problem. |
|
| Back to top |
|
 |
Brian Blood
Joined: 30 Apr 2005 Posts: 9
|
|
| Back to top |
|
 |
|