wiki:nagios_troubleshooting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:nagios_troubleshooting [2024/03/21 15:28] – add Debian 12 instructions antisa | wiki:nagios_troubleshooting [2024/04/12 14:00] (current) – add undefined reference to `get_dh2048' nrpe antisa | ||
|---|---|---|---|
| Line 99: | 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' | ||
| + | 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 ====== | ====== See also ====== | ||
| * [[wiki: | * [[wiki: | ||
wiki/nagios_troubleshooting.1711034932.txt.gz · Last modified: by antisa
