Forum Discussion

ringoseagull_77's avatar
ringoseagull_77
Icon for Nimbostratus rankNimbostratus
Jul 16, 2010

Cacti issue: Poller works from cli but not from cron

I'm running Cacti 0.8.7.e on Linux.

 

 

I can see from the cron log that cron is running, but can't see in the cacti logs what is causing the issue. Environmental settings perhaps?

 

 

Logs show Cacti polling but graphs not being updated unless run from the command line.

 

 

If I could find an error I'd have a go at fixing it........

 

 

Cron runs as root user, not cacti user, as suggested in F5 template instructions.

 

RRA and log directories are owned by cacti.

 

php is located at /usr/local/php/bin/php. The Cacti settings>path window shows this can be located. I added a sym link to /usr/local/bin/php too.

 

 

Any ideas?

 

 

  • Took me ages to spot it, but in the crontab example on the F5 HowTo the username 'root' is included in the line between the frequency and command. Normally it would run as cacti user on other systems but as on the F5s it runs from root's crontab as root this breaks it.

     

     

    Deleted the word root and the graphs all came good.