Page 1 of 1
Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 9:35 am
by srikanth.kallu
Hi,
Does nagios start after the server reboot ?
And how do i find to make sure if it starts ?
Please advise.
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 9:45 am
by mguthrie
Yes it does. It gets added to chkconfig to start at runlevels 3 and 5:
You can verify with this:
Code: Select all
[root@DEV59 ~]$ chkconfig --list | grep nagios
nagios 0:off 1:off 2:off 3:on 4:off 5:on 6:off
nagiosxi 0:off 1:off 2:off 3:on 4:off 5:on 6:off
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 9:51 am
by srikanth.kallu
[root@credit04 ~]# chkconfig --list | grep nagios
when i run chkconfig it did not return me any values, So it means nagios would not start right ?
How do i make the process automated when server is rebooted
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 9:59 am
by scottwilkerson
Are you running this on your Nagios XI server, or are we talking about an agent (like NRPE) running on a particular server?
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 10:02 am
by srikanth.kallu
I am refering to linux agent, sorry about the confusion
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 10:13 am
by scottwilkerson
It should start at boot also, to check that run
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 10:25 am
by lmiltchev
Run in terminal:
Code: Select all
chkconfig --level 35 nagios on
chkconfig --level 35 xinetd on
Hope this helps.
Re: Does nagios start after the server reboot
Posted: Thu Sep 20, 2012 10:45 am
by srikanth.kallu
Thank You!
It worked.