Does nagios start after the server reboot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Does nagios start after the server reboot

Post by srikanth.kallu »

Hi,

Does nagios start after the server reboot ?

And how do i find to make sure if it starts ?

Please advise.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Does nagios start after the server reboot

Post 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
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Does nagios start after the server reboot

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Does nagios start after the server reboot

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Does nagios start after the server reboot

Post by srikanth.kallu »

I am refering to linux agent, sorry about the confusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Does nagios start after the server reboot

Post by scottwilkerson »

It should start at boot also, to check that run

Code: Select all

chkconfig --list | grep xinetd
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Does nagios start after the server reboot

Post by lmiltchev »

Run in terminal:

Code: Select all

chkconfig --level 35 nagios on
chkconfig --level 35 xinetd on
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Does nagios start after the server reboot

Post by srikanth.kallu »

Thank You!

It worked.
Locked