User Tools

Site Tools


wiki:nagios_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:nagios_troubleshooting [2023/09/22 11:57] – [See also] add Icinga troubleshooting antisawiki:nagios_troubleshooting [2024/04/12 16: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 ===== ===== nagiosgraph js problem =====
Line 92: Line 99:
  
 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. 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' nrpe =====
 +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 '/var/run/nrpe.pid' - check your privileges. =====
 +Check the pid in nrpe.cfg and the nrpe.service file, The paths should match there.
 +  ~# grep pid /usr/local/nagios/etc/nrpe.cfg
 +  pid_file=/var/run/nrpe.pid
 +
 +<code>
 +systemctl cat nrpe
 +# /lib/systemd/system/nrpe.service
 +[Unit]
 +Description=Nagios Remote Plugin Executor
 +Documentation=http://www.nagios.org/documentation
 +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=/usr/local/nagios/var/nrpe.pid <<--- THIS
 +</code>
 +
 +Here the fix was to update the nrpe.cfg with the path from systemd file.
 +
 ====== See also ====== ====== See also ======
   * [[wiki:icinga_troubleshooting|Icinga troubleshooting]]   * [[wiki:icinga_troubleshooting|Icinga troubleshooting]]
wiki/nagios_troubleshooting.1695376657.txt.gz · Last modified: 2023/09/22 11:57 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki