Cheers
It looks like the script to get equipment information passed from php to python (poller.php to poller-wrapper.py), but it starts with:
#! /usr/bin/env python
while the dvd iso has python3, so cron can't run it.

Sorry for the English, but my native language is Spanish although google does its best.

Forum: 
Jeremy Davis's picture

Thanks for reporting this issue. I've opened an issue on our tracker so that we can track it.

I have checked and the script runs fine under python3, but as you note it uses '/usr/bin/env python' shebang. We could update the script to have a python3 shebang, but next time you update Observium, it will need to be updated again. So I think a better way to go is to just tweak the cron job to explicitly run the script with python3.

I.e. change this line in /etc/cron.d/observium from:

*/5  *  * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1

to:

*/5  *  * * * root /usr/bin/python3 /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1

Add new comment