icinga2-checks/README.md

29 lines
829 B
Markdown

# icinga2-checks
_My custom Icinga2 checks._
Useful: https://nagios-plugins.org/doc/guidelines.html#AEN200
https://icinga.com/docs/icinga-2/latest/doc/05-service-monitoring/#performance-data-metrics
`requirements-everybody.txt`: pip requirements for all Python 3 versions and Linux and BSD hosts. Should be easy to
install on all hosts.
`requirements-difficult.txt`: pip requirements that are easy to install on normal Debian hosts but complicated when
there are wheels available.
These scripts have varying levels of code quality.
## Fix `dbus` Issues
```shell
ln -s /usr/lib/python3/dist-packages/_dbus_* ./venv/lib/python3.*/site-packages
ln -s /usr/lib/python3/dist-packages/dbus ./venv/lib/python3.*/site-packages
```
### Import `dbus`
```python
sys.path.insert(0, "/usr/lib/python3/dist-packages")
import dbus
```