Database Reference
In-Depth Information
-with-nagios-group=nagios
$ make
$ make install
Note
Warning
If you get an error such as check_http.c:312:9: error:
'ssl_version' undeclared (first use in this function)
while trying to execute ./configure or make , your system probably lacks the
libssl library. To resolve this issue, execute the following commands:
On RHEL- or CentOS-like systems, run the following command:
yum install openssl-devel -y
On Debian- or Ubuntu-like systems, run the following command:
sudo apt-get install libssl-dev
3. Rerun ./configure , then make clean , and finally make .
Setting up Nagios as a service
Everything is set. Now, let's set Nagios as a service, as follows:
$ sudo chkconfig --add nagios
$ sudo chkconfig nagios on
Check whether the default configuration is good to go and start the Nagios service:
# Check configuration file
$ sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/
etc/nagios.cfg
[-- snip --]
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/
objects/commands.cfg'...
Search WWH ::




Custom Search