Where to start!?

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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post 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.
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

These instructions are for CentOS, but the general idea should still apply: http://www.box293.com/guides/upgrading- ... centos-6-x
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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 :)
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Where to start!?

Post 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 --
Be sure to check out the Knowledgebase for helpful articles and solutions!
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post 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.
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post 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.
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
Locked