Let's say you are unable to start the Nagios Network Monitoring service after reboot.

First of all, check your var/log/messages log file.

$ sudo cat var/log/messages
$ less installed-rpms | grep nagios
$ sudo cat /etc/nagios/nagios.cfg
lock_file=/var/run/nagios/nagios.pid

This is the lockfile that Nagios will use to store its PID number in when it is running in daemon mode.

 

If the lock_file parameter was set to “/var/run/nagios/nagios.pid“ in “/etc/nagios/nagios.cfg“, edit the file and set the “lock_file” parameter to point to a directory where data is persistent across reboot.

Change the lock_file parameter from “/var/run/nagios/nagios.pid” to “/nagios/nagios.pid”.

Try restarting the service again.

sudo systemctl restart nagios.service
¿Fue útil la respuesta? 0 Los Usuarios han Encontrado Esto Útil (0 Votos)