Hi again!
I got by the last error thanks to bulek! I'm running into another issue now. When cmd.php fires I get the following errors and I see no data being collected:
PHP Warning: Unable to load dynamic library '/usr/lib/php/imap.so' - /usr/lib/php/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unable to load dynamic library '/usr/lib/php/ldap.so' - /usr/lib/php/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
I know that the SNMP libs are working because I managed to define a collection Data Source for the Linksys router but when I tried to manually fire the cmd.php command I got this error. Since the cron job seems to dump this output into /dev/null I didn't see it on any other logs. I do see that the five minute job is running based on the cron logs:
Dec 24 14:45:00 flynn CROND[1449]: (webmgmt) CMD (webmgmt php /var/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 24 14:46:00 flynn CROND[1535]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
Dec 24 14:47:01 flynn CROND[1626]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
Dec 24 14:48:00 flynn CROND[1715]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
Dec 24 14:49:01 flynn CROND[1800]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
Dec 24 14:50:00 flynn CROND[1886]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
Dec 24 14:50:00 flynn CROND[1887]: (webmgmt) CMD (webmgmt php /var/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 24 14:51:00 flynn CROND[1990]: (root) CMD (/etc/webmin/sysstats/sysstats.sh)
And yes I am running another systat gathering util for Webmin... I am interested in how much more etensible cacti is... If I can ever get over all of my damn systems irregularities...
Thanks in advance.
Failing on LDAP and IMAP
Moderators: Developers, Moderators
Just an update...
I have it sort of running now. Last night I even got all of the interfaces to collect data for a bit. Although now it's seems to have stalled...
I can still see the data collection routine running but the graphs are not updating...
I had one earlier boo boo when I ran the cmd.php as root and it created the rrd files as root and thus the cron job running as another user couldn't mod them. For now I am still running as root until I can figure out why the graphs are not updating...
More searching...
I have it sort of running now. Last night I even got all of the interfaces to collect data for a bit. Although now it's seems to have stalled...
I can still see the data collection routine running but the graphs are not updating...
I had one earlier boo boo when I ran the cmd.php as root and it created the rrd files as root and thus the cron job running as another user couldn't mod them. For now I am still running as root until I can figure out why the graphs are not updating...
More searching...
Ok... I've got it narrowed down to something odd in the cron job.
I see in the /var/log/cron log that the job is firing:
Dec 27 09:19:00 flynn CROND[2667]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:20:00 flynn CROND[2991]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:21:00 flynn CROND[2999]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:22:00 flynn CROND[3077]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:23:00 flynn CROND[3112]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:24:00 flynn CROND[3156]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
BUT in the cacti/log/rrd/log I do not see a corresponding update:
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/linksys_external_out.rrd --template linksys_external_ou N:139735
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/hp4k_in.rrd --template hp4k_in N:120940525
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/hp4k_out.rrd --template hp4k_out N:2665052
This last set of entries were from a manual run I did at the console...
So it's got to be either permissions or a context issue... That user "webcacti" owns the files and can run php. Thus the results from the past update. Now I just have to figure out what is tripping cron. And yes, I've stopped and restarted cron, hupped it, the works...
More searching int he BB...
:EDIT:
Just posting threads I've found and invstigated that seemed relevant:
Data only graphs if I run php cmd.php manually
Another update...
I've got it working now... All I did was to remove the last part of the cron command so now it's just like this:
* * * * * webcacti /usr/local/bin/php /usr/www/html/cacti/cmd.php
And it's updating...
For reference I am on:
Apache 1.3.x (current rev)
php 4.x (also current)
RH 8.0
This board is a great resource!
I see in the /var/log/cron log that the job is firing:
Dec 27 09:19:00 flynn CROND[2667]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:20:00 flynn CROND[2991]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:21:00 flynn CROND[2999]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:22:00 flynn CROND[3077]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:23:00 flynn CROND[3112]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
Dec 27 09:24:00 flynn CROND[3156]: (webcacti) CMD (webcacti php /usr/www/html/cacti/cmd.php > /dev/null 2>&1)
BUT in the cacti/log/rrd/log I do not see a corresponding update:
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/linksys_external_out.rrd --template linksys_external_ou N:139735
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/hp4k_in.rrd --template hp4k_in N:120940525
12/27/2002 9:19 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /usr/www/html/cacti/rra/hp4k_out.rrd --template hp4k_out N:2665052
This last set of entries were from a manual run I did at the console...
So it's got to be either permissions or a context issue... That user "webcacti" owns the files and can run php. Thus the results from the past update. Now I just have to figure out what is tripping cron. And yes, I've stopped and restarted cron, hupped it, the works...
More searching int he BB...
:EDIT:
Just posting threads I've found and invstigated that seemed relevant:
Data only graphs if I run php cmd.php manually
Another update...
I've got it working now... All I did was to remove the last part of the cron command so now it's just like this:
* * * * * webcacti /usr/local/bin/php /usr/www/html/cacti/cmd.php
And it's updating...
For reference I am on:
Apache 1.3.x (current rev)
php 4.x (also current)
RH 8.0
This board is a great resource!
Who is online
Users browsing this forum: No registered users and 3 guests