No RRA data being created, poller running.

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

Moderators: Developers, Moderators

Post Reply
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

No RRA data being created, poller running.

Post by treimers »

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?
soloslinger
Posts: 32
Joined: Fri Jan 19, 2007 2:11 pm

Post by soloslinger »

What has it stopped creating, brand new graphs, pngs of existing graphs, new rrd files, new data to put into existing rrd files??
How do you know the rrds are not being updated?
What does the cacti log say?


soloslinger
plugin: 2.1
cacti: 0.8.7b
apache 2.0
php: 5.2.5
mysql: 5.1
os: freebsd 6.2
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

Post by treimers »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If root created any rrd file at any time, cactiuser will not be able to update those files. There are more ways to shoot yourself, find some of them at the 2nd link of my sig
Reinhard
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

Post by treimers »

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?
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

Post by treimers »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

New issue to me. Please see Settings -> Paths and verify the paths found
Reinhard
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

Post by treimers »

OK - will do at work tomorrow.

What program is it that draws graphs?

Still seeing Nan's btw... I think.

I'll report more in the AM when I see what it's been doing.
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

treimers wrote:What program is it that draws graphs?
rrdtool

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
}
Replace the $variables with real values.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests