What is the easiest way to have Nagios start at bootup?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

What is the easiest way to have Nagios start at bootup?

Post by billperrotta »

Thinking I might have the power go out and having to manually start or restart the nagios service might not be ideal.
What is the easiest way to make the Nagios Service start on bootup?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: What is the easiest way to have Nagios start at bootup?

Post by slansing »

The easiest way would be to load it through a service, by using a utility such as chkconfig, look at the second to last section in this document:

http://assets.nagios.com/downloads/nagi ... Source.pdf
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: What is the easiest way to have Nagios start at bootup?

Post by billperrotta »

Thanks for that. Will see if the chkconfig way works if it gets rebooted.

Also one question. My Nagios appears to be running without apache or httpd?

Is httpd optional only? Maybe I don't need it to successfully run nagios?

It says httpd is an unknown service if I try to start or add it to chkconfig.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: What is the easiest way to have Nagios start at bootup?

Post by tmcdonald »

It might also be called apache2 if you are on a Debian/Ubuntu server. But no, it is not strictly necessary to run Nagios Core, although it should still be there by default.
Former Nagios employee
Locked