ERROR: Could not load or parse observium configuration, are PATHs correct?
Note where the cd is to move to the correct dir in the command[root@observium observium]# cat /etc/cron.d/observium33 */3 * * * Useracct cd /opt/observium/ && ./discovery.php -h all >> /dev/null 2>&1*/5 * * * * Useracct cd /opt/observium/ && ./discovery.php -h new >> /dev/null 2>&1# */5 * * * * Useracct cd /opt/observium/ && ./poller.php -h all >> /dev/null 2>&1*/5 * * * * Useracct /opt/observium/poller-wrapper.py >> /dev/null 2>&1*/5 * * * * Useracct /opt/observium/poll-billing.php >> /dev/null 2>&101 * * * * Useracct /opt/observium/billing-calculate.php >> /dev/null 2>&1# Run housekeeping script daily for syslog, eventlog and alert log13 5 * * * Useracct /opt/observium/housekeeping.php -sel >> /dev/null 2>&1# Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data47 4 * * * Useracct /opt/observium/housekeeping.php -rptb >> /dev/null 2>&1
--
Ray Poorman, CTOCSS Integration & Communications1911 C StBellingham WA 98225360-671-4878On January 4, 2020 at 12:39:06 PM, Ray Poorman (rpoorman@cssnw.com) wrote:
When you run the job what directory are you sitting in.. are there absolute paths? if you are say in /root and run /opt/observium/poller.php does it fail I bet it does or it doesn’t know where config file is.Are these set right?### Locations$config['install_dir'] = "/opt/observium";$config['html_dir'] = $config['install_dir'] . "/html";$config['rrd_dir'] = $config['install_dir'] . "/rrd";$config['log_file'] = $config['install_dir'] . "/observium.log”;Here is my /etc/cron.d/observium file
--
Ray Poorman, CTOCSS Integration & Communications1911 C StBellingham WA 98225360-671-4878
On January 4, 2020 at 11:27:11 AM, Reiner Marsollek via observium (observium@observium.org) wrote:
_______________________________________________Hello,
here's the problem. If I start the poller-wrapper manually in the shell it works without problems. But if it is started by the cronjob, I get the following error message:
ERROR: Could not load or parse observium configuration, are PATHs correct?
Does anyone know the problem and how to fix it?Reiner
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium