poller.php giving nothing (cacti/php newbie)

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
veraz01170
Posts: 6
Joined: Thu Mar 06, 2008 5:00 pm

poller.php giving nothing (cacti/php newbie)

Post by veraz01170 »

Hello,

I just finished installing cacti 0.8.7a, surprisingly the interface works, my problem is now the following:

# /usr/local/bin/php /var/www/cacti/poller.php
#

It returns me nothing, as root or my cacti user account.

It does not populate ~rra

It does produce output in cacti.log




my php -m :
[PHP Modules]
ctype
date
dom
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter




Very frustrating,
i am guessing I am missing a php module, but which one ? I would have though should get at least an error in any case...

Can someone help please ?
Laurent
veraz01170
Posts: 6
Joined: Thu Mar 06, 2008 5:00 pm

rectification

Post by veraz01170 »

It doesn't produce any errors in cacti.log or elsewhere
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

But the web interface is ok? I wonder why the php-mysql module is not listed. It's a must for cacti
Reinhard
hammerwalk
Posts: 24
Joined: Wed Mar 05, 2008 10:46 pm
Location: Fort Worth, TX

Post by hammerwalk »

i dont get anything with the poller either. Every thing works fine as far as the interface, but the graphs are not generating.

There is also no data being logged into the cacti.log file, its completely empty.
hammerwalk
Posts: 24
Joined: Wed Mar 05, 2008 10:46 pm
Location: Fort Worth, TX

Post by hammerwalk »

Well, finally out of the blue, my cacti.log finally started getting data and it is as follows....

-=(( root = Samba ))=-
( /var/www/html/cacti/log )
# tail cacti.log
03/09/2008 01:00:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/09/2008 01:05:01 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
03/09/2008 01:05:01 PM - SYSTEM STATS: Time:298.2121 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:8 RRDsProcessed:0
03/09/2008 01:05:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/09/2008 01:10:01 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
03/09/2008 01:10:01 PM - SYSTEM STATS: Time:299.1859 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:8 RRDsProcessed:0
03/09/2008 01:10:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
03/09/2008 01:15:01 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
03/09/2008 01:15:01 PM - SYSTEM STATS: Time:299.2155 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:8 RRDsProcessed:0
03/09/2008 01:15:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'

-=(( root = Samba ))=-
( /var/www/html/cacti/log )
#

It appears that it is finally starting to log, but it wasnt before and I have done noting else to any other log files, I promise. But rra/ still does not have anything being created into it.

-=(( root = Samba ))=-
( /var/www/html/cacti/rra )
# ll
total 0

-=(( root = Samba ))=-
( /var/www/html/cacti/rra )
#


So cmd.php is running some how, I dont get anything when I run it manually though so I am a bit confused. But I also noticed that when I do php -m i dot not see mysql, which I have confirmed is installed.


-=(( root = Samba ))=-
( /var/www/html/cacti/rra )
# php -m
[PHP Modules]
cgi
ctype
date
dom
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]


-=(( root = Samba ))=-
( /var/www/html/cacti/rra )
#

Also, if need be, please refer to post http://forums.cacti.net/viewtopic.php?t=26216
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see second link of my signature. Refer to the item labeled "double poller issue" or the like. You may find other parts of the HowTo helpful as well
Reinhard
hammerwalk
Posts: 24
Joined: Wed Mar 05, 2008 10:46 pm
Location: Fort Worth, TX

Post by hammerwalk »

followed second link when i was visiting this part of the forum, and didnt get very far... I posted all the outcomes while i was following your 2nd link on your sig

http://forums.cacti.net/viewtopic.php?t=26188

what calls on what to create the rrd files?

I am sure that seeing my name as the "last posted" is starting to give you a headache, but I'm rather baffled as to why everything else I have that is php and mysql oriented runs fine, but this doesn't at all.
veraz01170
Posts: 6
Joined: Thu Mar 06, 2008 5:00 pm

Post by veraz01170 »

It was as simple as that Gandalf :>,
i recompiled php, and got mysql module together with snmp in this time.
The trick was to compile mysql-devel beforehand, without php won't compile with myslq.

I took the opportunity to upgrade to php/apache/mysql latest versions and now rra directory is getting updated.


Now let's see these graphs....

Thank you!
Laurent
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests