Page 2 of 12
Re: Where to start!?
Posted: Wed Feb 10, 2016 10:25 am
by rkennedy
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.
You will need to stop tomcat before starting apache2 as they are both trying to use port 80.
Re: Where to start!?
Posted: Wed Feb 10, 2016 11:02 am
by trafalgargirl
Its up and running
I see there is an update available - from 4.0.4 to 4.1.1 - is there a way to do this right from the command line?
Re: Where to start!?
Posted: Wed Feb 10, 2016 11:04 am
by hsmith
These instructions are for CentOS, but the general idea should still apply:
http://www.box293.com/guides/upgrading- ... centos-6-x
Re: Where to start!?
Posted: Wed Feb 10, 2016 12:07 pm
by trafalgargirl
Thank you that worked great!
So now the really hard part
How do I start the configuration of monitoring something? Which documentation should I move to now?
Thanks

Re: Where to start!?
Posted: Wed Feb 10, 2016 4:39 pm
by bwallace
https://assets.nagios.com/downloads/nag ... n/toc.html
Seems appropriate to start at "Advice for Beginners"....
I wish I knew of this flowchart of all the related config files when I started...
http://www.the-tech-tutorial.com/wp-con ... config.png
....that flowchart stems from this helpful tutorial:
http://www.the-tech-tutorial.com/adding ... to-nagios/
-- hope this helps --
Re: Where to start!?
Posted: Wed Feb 10, 2016 5:26 pm
by trafalgargirl
Thank you! I am going to go through those and hopefully be able to add a client!
Really dumb question... is there something I need to install on the host I want to monitor to be able to do this?
Thanks
Re: Where to start!?
Posted: Wed Feb 10, 2016 5:32 pm
by rkennedy
trafalgargirl wrote:Thank you! I am going to go through those and hopefully be able to add a client!
Really dumb question... is there something I need to install on the host I want to monitor to be able to do this?
Thanks
To confirm, did you also install / compile the Nagios Plugins (on the Nagios machine)?
No question is dumb! We're here to help. What type of check are you trying to monitor on the client machine? Some checks will require an agent installed on the client machine, where others (such as ping, check_http, etc) can check external services.
Re: Where to start!?
Posted: Thu Feb 11, 2016 11:55 am
by trafalgargirl
Hi there
Yes I did install / compile nagios the plugins.
The checks we would like to do right now are CPU, Memory, Current Load, Disk Space, Swap Usage, Total Processes etc. just the basics really.
Is it possible to change the location of nagios to have it at the root? IE: nagios.domain-name.com instead of nagios.domain-name.com/nagios?
thanks
Re: Where to start!?
Posted: Thu Feb 11, 2016 12:58 pm
by rkennedy
Are you looking to check a windows host, or a linux host?
- Windows will use NSClient++, with check_nrpe -
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
- Linux will use NRPE -
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Yes, you would just need to modify the apache vhost configuration to have to not use /nagios/. From there, you should be able to just point the DNS of nagios.domain.com to your servers IP.
Re: Where to start!?
Posted: Thu Feb 11, 2016 1:49 pm
by trafalgargirl
All of our servers that we would monitor are linux bases. There might be one internal windows server but right now that is not high priority. The high priority ones are the client servers.
I have already set up nagios.domainname.com - just wanted to remove the /nagios to make things cleaner.