Copyright (c) 2012-2020 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: Ubuntu
Platform version: 20.04 LTS (Focal Fossa)
Kernel: Linux
Kernel version: 5.4.0-1011-raspi
Architecture: armv7l
Build information:
Compiler: GNU 8.3.0
Build host: runner-LTrJQZ9N-project-297-concurrent-0
OpenSSL version: OpenSSL 1.1.1g 21 Apr 2020
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
root@ubuntu:/home/ubuntu# icinga2 feature list
Disabled features: api compatlog debuglog elasticsearch gelf icingadb influxdb livestatus opentsdb perfdata statusdata syslog
Is the data completely missing or only for certain checks?
To start debugging, you could try to send something from your Icinga 2 server to your Graphite server manually, just to make sure the network and Graphite itself are working properly:
Since the connection seems to work, I would exclude network issues.
Did you check your graphite logs? Usually they are located in /opt/graphite/storage/log/carbon-cache, but this may be different depending on your installation. Check the LOG_DIR option in your carbon.conf
Espacially the creates.log could be interesting. You may have to set LOG_CREATES = True in your carbon.conf.
Hm, enabled LOG_CREATES. But nothing happens, especially no activity in the carbon-cache logs. Really weird. Logs show that carbon-cache is starting, but no activity after that.
Rebooted whole machine, just to make sure, but makes no difference.
listener.log: 11/06/2020 09:18:48 :: MetricLineReceiver connection with 127.0.0.1:45842 established
Looks like graphite does not know the data or any data at all.
There is no icinga2 folder under metrics.
Maybe check your configs again if there is anything missing.
There are two good guides around here, both worked for me in the past for setting up graphite.
root@ubuntu:/var/lib/graphite/whisper# PYTHONPATH=/opt/graphite/webapp /opt/graphite/webapp/manage.py makemigrations --settings=graphite.settings
WARNING: whisper module could not be loaded, whisper support disabled
but:
root@ubuntu:/var/lib/graphite/whisper# pip install whisper
Requirement already satisfied: whisper in /usr/local/lib/python3.8/dist-packages (1.1.7)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from whisper) (1.14.0)