Hoe stel ik in dat Nagios automatisch start bij het booten? En als ik met SIM instel dat hij automatisch moet restarten (smtp-server-gegevens 'nagios' als service-naam instellen) dan geeft Nagios alsnog (not-running) error in web interface bij draaien van sim -q...
Hoe zorg ik:
-> dat nagios start bij booten
-> bij crashen, opnieuw wordt gestart
Code:[root@backup01 cron.daily]# service nagios start Starting network monitor: nagios [root@backup01 cron.daily]# service nagios status PID TTY TIME CMD 28414 ? 00:00:00 nagios [root@backup01 cron.daily]# killall -9 nagios [root@backup01 cron.daily]# sim SIM 2.5-3 <sim@r-fx.org> ======================== usage /usr/local/sbin/sim -q Quiet mode -v Verbose mode -c Clear data & log files -l Display log file -s Display status information -u Check for SIM updates -j Install/Remove SIM cronjob [root@backup01 cron.daily]# sim -v [05/31/06 16:55:00]: SMTP service is online. [05/31/06 17:00:00]: FTP service is online. [05/31/06 17:00:00]: HTTP service is online. [05/31/06 17:00:00]: SSH service is online. [05/31/06 17:00:00]: SMTP service is online. [05/31/06 17:01:05]: FTP service is online. [05/31/06 17:01:05]: HTTP service is online. [05/31/06 17:01:05]: SSH service is online. [05/31/06 17:01:05]: SMTP service is offline. [05/31/06 17:01:05]: Restarted SMTP service (1 SMTP events today). [root@backup01 cron.daily]# service nagios status PID TTY TIME CMD [root@backup01 cron.daily]# service nagios restart Running configuration check...done Stopping network monitor: nagios /etc/init.d/nagios: line 68: kill: (28414) - No such process Starting network monitor: nagios [root@backup01 cron.daily]#

Likes:

