Page 1 of 12
Where to start!?
Posted: Tue Feb 09, 2016 1:22 pm
by trafalgargirl
Hello
I have been tasked with installing Nagios and I would really like some direction on where to start to get help with documentation, step by step instructions etc. I realize this is probably a really dumb question but I have been a fan of Nagios since I used it at my old job and really want to learn it from the ground up.
Any direction, advise is appreciated.
Thanks!

Re: Where to start!?
Posted: Tue Feb 09, 2016 2:24 pm
by rkennedy
Have you tried installing it yet? I wrote up some instructions for Centos 7 recently, which can be found at
https://support.nagios.com/forum/viewto ... 84#p170884 - these should work fairly well for you.
As for the remaining questions, we would need more information about what you're trying to do specifically to point you the right direction.
Try to install it, and feel free to ask questions as you go.
Re: Where to start!?
Posted: Tue Feb 09, 2016 3:01 pm
by trafalgargirl
Great - thank you! I am working on a Ubuntu 12.04.5 distribution - on a AWS server. My goal is to do basic monitoring for our clients - i.e: ping, disk space, etc.
Thanks!
Re: Where to start!?
Posted: Tue Feb 09, 2016 3:16 pm
by rkennedy
This should work then,
https://assets.nagios.com/downloads/nag ... Source.pdf - as for AWS though, we have seen issues with the minimal images. Make sure SELinux is disabled before you start.
Let us know if you run into any issues.
Re: Where to start!?
Posted: Tue Feb 09, 2016 4:41 pm
by trafalgargirl
So this doc has been great! The one issue I have come into now seems to be the following:
root@nagios:/tmp/nagios-4.0.4# ./configure -–with-mail=/usr/bin/sendmail
configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail
Not sure how to solve this one - the others worked fine...
Re: Where to start!?
Posted: Tue Feb 09, 2016 4:44 pm
by trafalgargirl
Also - not sure where to find SELinux? We configure our servers the same every time since we deploy them for clients with the same builds (tomcat6, ubuntu etc.)
Re: Where to start!?
Posted: Tue Feb 09, 2016 5:01 pm
by trafalgargirl
D'oh! I figured out the issue with the command --
Still not sure about the AWS SELinux.
Re: Where to start!?
Posted: Tue Feb 09, 2016 5:18 pm
by trafalgargirl
Update:
had the following issues with the installation at the end:
root@nagios:/tmp/nagios-plugins-2.0# chkconfig --add nagios
/sbin/insserv: No such file or directory
nagios 0:off 1:off 2:off 3:off 4:off 5:off 6:off
I did
which chkconfig --> /sbin/chkconfig so that seems to be ok?
I thought I would try and see if I could get web access -- I got:
HTTP Status 404 - /nagios
type Status report
message /nagios
description The requested resource (/nagios) is not available.
Apache Tomcat/6.0.35
So now stuck. Thanks for all your help so far

Re: Where to start!?
Posted: Tue Feb 09, 2016 5:49 pm
by rkennedy
Our standard install of Core utilizes the regular apache, not tomcat. With that said, our installs are meant to be on a minimal install (nothing before). Is there a specific reason you're using Tomcat?
What is the result of these two commands?
Code: Select all
service nagios status
service httpd status
To check SELinux, run the command
getenforce - it should say disabled.
Re: Where to start!?
Posted: Tue Feb 09, 2016 5:58 pm
by trafalgargirl
So here are the results:
root@nagios:/tmp/nagios-4.0.4# service nagios status
nagios (pid 24711) is running...
root@nagios:/tmp/nagios-4.0.4# service httpd status
httpd: unrecognized service
root@nagios:/tmp/nagios-4.0.4#
As for why Tomcat - it's what we use to run our software for our clients - and to save time today I just spun up another AMI using our default build. I can either remove it or start with a clean server if you think that is better? I don't need it since the only thing this server will do is run nagios.
I also tried to look into apache2
root@nagios:/tmp/nagios-4.0.4# sudo service apache2 start
* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
So that may give us some more information?
The program 'getenforce' is currently not installed. You can install it by typing:
apt-get install selinux-utils