[SOLVED] Poller isn't polling.
Moderators: Developers, Moderators
Yeah, one of the first things I did, thinking it was a permissions error, was chmod -R 777 rra log. Same results.
Cactiuser is currently in "users" but was in "www-data" before.
One thing that's been bothering me is the cactiuser itself. I feel like I'm missing something when creating it... I useradd and passwd it, but I can't remember if there's anything in particular I need to do with Cacti. :\
Cactiuser is currently in "users" but was in "www-data" before.
One thing that's been bothering me is the cactiuser itself. I feel like I'm missing something when creating it... I useradd and passwd it, but I can't remember if there's anything in particular I need to do with Cacti. :\
I have the same problem - no output from poller.php, no logs, nothing. I have also checked/done all recommended debuggin actions - no results.
I am using apache2 with php5 and mysql5 and cacti 0.8.6h all from simple apt-get in Ubuntu 6.06 LTS (also I have patched config.php to overcome the bug described in https://bugs.launchpad.net/ubuntu/+sour ... bug/194687 and changed a line in /etc/cacti/apache.conf to check for mod_php5.c instead of mod_php4.c to overcome the blank page when browsing cacti)
Can it be, that the problem is somehow related to using Ubuntu 6.06? Some expected default tools/paths that are different in Ubuntu and some other distribution? How to debug that?
I am using apache2 with php5 and mysql5 and cacti 0.8.6h all from simple apt-get in Ubuntu 6.06 LTS (also I have patched config.php to overcome the bug described in https://bugs.launchpad.net/ubuntu/+sour ... bug/194687 and changed a line in /etc/cacti/apache.conf to check for mod_php5.c instead of mod_php4.c to overcome the blank page when browsing cacti)
Can it be, that the problem is somehow related to using Ubuntu 6.06? Some expected default tools/paths that are different in Ubuntu and some other distribution? How to debug that?
Could be, could also be related to the package installation. I'm running Debian Lenny and my first try to install CACTI was through apt-get as well. But the package install script had problems with creating the database. So I de-installed all related packages/dependencies and started to installed the following packages separately: apache2, mySQL 5.x.x, PHP 5.x.x and rrdtool with apt-get.
After I had done that, I installed CACTI by downloading the archive from this page and following the installation instructions (basicly CACTI is just a bunch of PHP scripts--except the above mentioned packages ).
Doing that it worked for me...
(M)
After I had done that, I installed CACTI by downloading the archive from this page and following the installation instructions (basicly CACTI is just a bunch of PHP scripts--except the above mentioned packages ).
Doing that it worked for me...
(M)
Post subject: [SOLVED] Poller isn't polling. - Thought
Ran into a similar problem on a brand new build this week.
In troubleshooting found that when issuing php command as the cactiuser nothing would really happen, ie no update to the rrds no log entries in cacti.log. Issuing the same command as root would work as expected.
In my case I found that erros indicating my cactiuser did not have read access to
/var/lib/net-snmp/snmpapp.conf and next an inabllity to create files in the /var/lib/net-snmp direcitory. Modified as needed and I no longer get the net-snmp errors but poller run as anyone other than root does not update my rrds or my cacti.log file. I've confirmed that my cactiuser can create in both locations, /rra &/log so I'm not sure where to go next
In troubleshooting found that when issuing php command as the cactiuser nothing would really happen, ie no update to the rrds no log entries in cacti.log. Issuing the same command as root would work as expected.
In my case I found that erros indicating my cactiuser did not have read access to
/var/lib/net-snmp/snmpapp.conf and next an inabllity to create files in the /var/lib/net-snmp direcitory. Modified as needed and I no longer get the net-snmp errors but poller run as anyone other than root does not update my rrds or my cacti.log file. I've confirmed that my cactiuser can create in both locations, /rra &/log so I'm not sure where to go next
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
RUn from cli you should see rrdtool update statements and hopefully some results of those. You may want to pipe output to a file for easier searching
Reinhard
Code: Select all
php -q poller.php --force
Reinhard
Thanks.gandalf wrote:RUnfrom cli you should see rrdtool update statements and hopefully some results of those. You may want to pipe output to a file for easier searchingCode: Select all
php -q poller.php --force
Reinhard
I must have some sort of rights/path issue. When I look at my /var/log/messages file I see that my crontab entry for the cactiuser is kicking off every 60 seconds as I configured it to. However the rrd's and cacti.log don't get updated. If i run the same syntax as root instead of cactiuser the than the rrds and the log get updated. I've tested and confirmed that the catiuser can created modify and delete files in those two locations. The files are owned by the cactiuser. I also found that the system utilities option for view cacti.log will not show the current log. If i do a more on the log after I've had root run the script ever 60 seconds for 10 minutes, the actual log will have entires that the web view into the log won't show.
This is a clean install:
CACTI 0.8b (patched)
SLES 9
MySQL 4.1.22 Standard
Apache 2.2.8
PHP 5.2.5
RRDTool 1.2.26
I experienced the Invalid PHP_SELF path issue due to the way we use an apache alias for the cacti directory. The only way we could get it to work was to do the following:
PostPosted: Tue Feb 12, 2008 5:52 pm Post subject: Reply with quote
A temporary solution would be to edit global.php like that :
If so how do I resolve the Invalid PHP_SELF issue ?megaman wrote:A temporary solution would be to edit global.php like that :
comment this line:add just under it:Code: Select all
if (!((is_file($_SERVER["SCRIPT_FILENAME"])) && (substr_count($_SERVER["SCRIPT_FILENAME"], $_SERVER["PHP_SELF"])))) {
but I dont know if this is secure or not, at least cacti is working againCode: Select all
if (!((is_file($_SERVER["SCRIPT_FILENAME"])))) {
Who is online
Users browsing this forum: No registered users and 1 guest