Graphs shows no data (nan) or empty graphs - Observium

Graphs shows no data - Observium

Probably cron does not work.

Manual recommends using these:

33 */6 * * *   root    /opt/observium/discovery.php -h all >> /dev/null 2>&1
*/15 * * * *   root    /opt/observium/discovery.php -h new >> /dev/null 2>&1
*/15 * * * *   root    /opt/observium/poller-wrapper.py 2 >> /dev/null 2>&1




it will not work when edited using crontab -e

Create new file in /etc/cron.d/observium

and paste there.

If still does not work try this:

33 */6 * * *   root    cd /opt/observium/ && ./discovery.php -h all >> /dev/null 2>&1
*/15 * * * *   root    cd /opt/observium/ && ./discovery.php -h new >> /dev/null 2>&1
*/15 * * * *   root    cd /opt/observium/ && ./poller.php -h all >> /dev/null 2>&1

If still does not work, try to add above cron entries into

/etc/crontab


and restart cron service.

Comments

  1. For the rrdtool, it's looking for a smaller rate than 15 minutes. That will cause an issue with data showing up on the graph. It MUST be every 5 minutes according to Adam Armstrong.

    ReplyDelete

Post a Comment

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Reduce (shrink) and resize raw disk at Proxmox

How to clean DB from old logs in Magento 1.x