wiki:nagios_troubleshooting
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:nagios_troubleshooting [2022/04/26 12:44] – created antisa | wiki:nagios_troubleshooting [2024/04/12 14:00] (current) – add undefined reference to `get_dh2048' nrpe antisa | ||
---|---|---|---|
Line 57: | Line 57: | ||
==== Debian 11 ==== | ==== Debian 11 ==== | ||
apt install libapache2-mod-php7.4 | apt install libapache2-mod-php7.4 | ||
+ | |||
+ | ==== Debian 12 ==== | ||
+ | |||
+ | apt install php8.2-fpm libapache2-mod-php8.2 && | ||
+ | a2enmod php8.2 proxy_fcgi setenvif && | ||
+ | a2enconf php8.2-fpm | ||
+ | |||
==== Tested on ==== | ==== Tested on ==== | ||
* Debian 10 (after upgrade from Debian 9) | * Debian 10 (after upgrade from Debian 9) | ||
+ | * Debian 12 (after upgrade from Debian 10 -> 11) | ||
+ | ===== nagiosgraph js problem ===== | ||
+ | When accessing graphs in url nagiosdomain.com/ | ||
+ | JavaScript is disabled. | ||
+ | nagiosgraph.js is not installed or wrong version. | ||
+ | The issue could be in rrd filename (/// | ||
+ | Check%20www.karl.com___%7C%20isAlreadySelected%28panel%2C%20selectedValue%29%3B%5Cn%20%20%7D%22%20on%20https%3A%2F%2Fwww.karl.com%2Fde%2Fmantel_cod59141927re.html%20%7CRAUVX.rrd | ||
+ | Simply remove the offending file and reload nagios. | ||
+ | ==== Tested on ==== | ||
+ | * nagios 4.2.2 | ||
+ | * nagiosgraph 1.5.2 | ||
+ | * Debian GNU/Linux 11 (bullseye) | ||
- | ====== | + | ===== CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with < |
+ | Make sure you are using an up to date nrpe plugins. | ||
+ | ==== Tested on ==== | ||
+ | * Debian 10 (after upgrade from Debian 9) | ||
+ | |||
+ | ===== Cannot get interface speed using highperf mib : UNKNOWN ===== | ||
+ | Add to '' | ||
+ | |||
+ | check_if_traffic!22!localhost!public!eth0!0, | ||
+ | |||
+ | ===== Settings not applied after restart ===== | ||
+ | |||
+ | For example if changing whether or not notifications will be sent, nagios by default [[https:// | ||
+ | |||
+ | You could also remove this file (but first stop nagios and make a backup!) which will force reread of all configs and schedule the check for all hosts and services, so make sure you want this. | ||
+ | |||
+ | ===== undefined reference to `get_dh2048' | ||
+ | Happened when trying to make install nrpe version 3.2.0 on Debian 12. Used version nrpe 4.1.0.and problem went away. | ||
+ | |||
+ | ===== Cannot write to pidfile '/ | ||
+ | Check the pid in nrpe.cfg and the nrpe.service file, The paths should match there. | ||
+ | ~# grep pid / | ||
+ | pid_file=/ | ||
+ | |||
+ | < | ||
+ | systemctl cat nrpe | ||
+ | # / | ||
+ | [Unit] | ||
+ | Description=Nagios Remote Plugin Executor | ||
+ | Documentation=http:// | ||
+ | After=var-run.mount nss-lookup.target network.target local-fs.target time-sync.target | ||
+ | Before=getty@tty1.service plymouth-quit.service xdm.service | ||
+ | Conflicts=nrpe.socket | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | Restart=on-abort | ||
+ | PIDFile=/ | ||
+ | </ | ||
+ | |||
+ | Here the fix was to update the nrpe.cfg with the path from systemd file. | ||
+ | |||
+ | ====== See also ====== | ||
+ | * [[wiki: | ||
====== References ====== | ====== References ====== | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
wiki/nagios_troubleshooting.1650977094.txt.gz · Last modified: 2022/04/26 12:44 by antisa