No RRA data being created, poller running.
Moderators: Developers, Moderators
No RRA data being created, poller running.
This is probably an easy one somehow, but I don't find the exact match in anyone else's thread, unless I just didn't see it.
Cacti 0.8.7b
Poller is running and logging that it runs.
Cacti _had_ been creating graphs back in July-Oct, but has now quit
(I didn't notice this for a while, being busy on other projects)
No new data being created in
/usr/share/cacti/rra -- all data in there is from Oct 31
I'm using a user called "cactiweb" and I've done
chown -R cactiweb rra/ log/
I had had
*/5 * * * * root php /usr/share/cacti/poller.php > /dev/null 2>&1
but tried changing that to
*/5 * * * * cactiweb php /usr/share/cacti/poller.php > /dev/null 2>&1
Either seems to work.
Switched from cmd.php to spine, no effect.
I'm not sure why rra data is no longer being created...
I'm suspicious that I changed something on the system and didn't realise it had this effect--
what am I not thinking of here, folks?
Cacti 0.8.7b
Poller is running and logging that it runs.
Cacti _had_ been creating graphs back in July-Oct, but has now quit
(I didn't notice this for a while, being busy on other projects)
No new data being created in
/usr/share/cacti/rra -- all data in there is from Oct 31
I'm using a user called "cactiweb" and I've done
chown -R cactiweb rra/ log/
I had had
*/5 * * * * root php /usr/share/cacti/poller.php > /dev/null 2>&1
but tried changing that to
*/5 * * * * cactiweb php /usr/share/cacti/poller.php > /dev/null 2>&1
Either seems to work.
Switched from cmd.php to spine, no effect.
I'm not sure why rra data is no longer being created...
I'm suspicious that I changed something on the system and didn't realise it had this effect--
what am I not thinking of here, folks?
-
- Posts: 32
- Joined: Fri Jan 19, 2007 2:11 pm
wow... I don't know what happened to my reply.
I thought sure I'd posted it.
well, anyway.
Nothing is getting created in the /rra directory.
A separate instance of MRTG is running and creating graph data in it's own /var/www/html/mrtg/ directory.
So I think that means that some of the core services (mrtg) are running and creating data.
How do I independently test rrdtool without trashing data I have now?
I thought sure I'd posted it.
well, anyway.
Nothing is getting created in the /rra directory.
A separate instance of MRTG is running and creating graph data in it's own /var/www/html/mrtg/ directory.
So I think that means that some of the core services (mrtg) are running and creating data.
How do I independently test rrdtool without trashing data I have now?
hi
when you've done this config:
"If you're using the crontab of user "cactiuser" instead, this will look like
Code:
prompt> crontab -e -u cactiuser
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
"
how do you set permissions on the folder /usr/share/cacti
(assume cacti.conf has "Alias /cacti /usr/share/cacti")
In mine, root owns everything except /rrd and /log
But that should mean that cactiweb (my cacti user) cannot run poller.php, right?
If the crontab -e is done on cactiweb,
so that cactiweb's /var/spool/cron/cactiweb is where
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
then you're asking cactiweb to run the poller.php, but it doesn't have rights to run that file, unless cactiweb has owner rwx
I chown/chgrped the entire /usr/share/cacti tree to 'cactiweb', but that may cause other issues or security problems...
What is happening is that this:
(root) CMD (cactiweb php /usr/share/cacti/poller.php > /dev/null 2>&1)
shows up in syslog
But there are no new records in /log or new RRAs in /rra
I might've fixed it by whacking on crontab and permissions, but I'm not sure.
should cactiweb really own everything? or not?
when you've done this config:
"If you're using the crontab of user "cactiuser" instead, this will look like
Code:
prompt> crontab -e -u cactiuser
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
"
how do you set permissions on the folder /usr/share/cacti
(assume cacti.conf has "Alias /cacti /usr/share/cacti")
In mine, root owns everything except /rrd and /log
But that should mean that cactiweb (my cacti user) cannot run poller.php, right?
If the crontab -e is done on cactiweb,
so that cactiweb's /var/spool/cron/cactiweb is where
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
then you're asking cactiweb to run the poller.php, but it doesn't have rights to run that file, unless cactiweb has owner rwx
I chown/chgrped the entire /usr/share/cacti tree to 'cactiweb', but that may cause other issues or security problems...
What is happening is that this:
(root) CMD (cactiweb php /usr/share/cacti/poller.php > /dev/null 2>&1)
shows up in syslog
But there are no new records in /log or new RRAs in /rra
I might've fixed it by whacking on crontab and permissions, but I'm not sure.
should cactiweb really own everything? or not?
OK.
so I managed to get entries happening in cacti.log again.
It was more than 2 gb in size. so I deleted it and started over.
I also did the truncate poller_output command on db cacti
Now I'm getting
"12/12/2008 04:40:03 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can not continue
"
in cacti.log
If I manually run the php polller.php everything's OK, no errors.
I did the checks for rrdtool (fetch) (info) and looked at things.
However, this was all workign before -- I didn't have anything that wasn't graphing, so I don't think there are now suddenly problems with MIN/MAX or stuff like that.
RRAs are now being created.
What next, anyone?
so I managed to get entries happening in cacti.log again.
It was more than 2 gb in size. so I deleted it and started over.
I also did the truncate poller_output command on db cacti
Now I'm getting
"12/12/2008 04:40:03 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can not continue
"
in cacti.log
If I manually run the php polller.php everything's OK, no errors.
I did the checks for rrdtool (fetch) (info) and looked at things.
However, this was all workign before -- I didn't have anything that wasn't graphing, so I don't think there are now suddenly problems with MIN/MAX or stuff like that.
RRAs are now being created.
What next, anyone?
rrdtooltreimers wrote:What program is it that draws graphs?
You can use something like this to rotate the logs for you:
Code: Select all
/$cacti_path/log/cacti.log {
missingok
notifempty
rotate 4
weekly
# if disk space is an issue, change to
# compress
nocompress
create 0644 $cacti $cacti
}
Who is online
Users browsing this forum: No registered users and 4 guests