You are here
Eduardo Gutiérrez aldana - Fri, 2022/11/04 - 09:28
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:
Thanks for reporting.
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:
to:
Add new comment