Page 1 of 1

adding my 1st remote linux server for monitoring

Posted: Thu Dec 14, 2017 4:02 am
by fretagi
Hi all

I have successfully installed the nagios core on my server, and now I want to start monitoring servers, but I am finding difficult to find documentation on how to add a linux server to monitor.
Please can you help me with URLs or procedures to do that, I am using nagios core 4.0.8

Re: adding my 1st remote linux server for monitoring

Posted: Thu Dec 14, 2017 10:01 am
by mcapra
Here's a good "no fluff" tutorial:
https://www.howtoforge.com/tutorial/ubu ... to-monitor

Though if the machine to be monitored doesn't offer NRPE as a package, you might need to build/install it from scratch.

The official Ubuntu documentation offers a high level overview of what each Nagios configuration object is used for:
https://help.ubuntu.com/lts/serverguide/nagios.html

In short, how Nagios understands your infrastructure is entirely through the Nagios configuration objects that you define. These objects are defined in configuration files and loaded into Nagios Core via the main nagios.cfg file's include_dir and include_file directives. If you wanted to add a server (or switch, thermostat, coffee maker, whatever) you would typically create a host definition for that object. If that server is running an Apache and MySQL instance, you could define those under your host object as services. The bread-and-butter of Nagios configuration is hosts and services. A host can be defined without any services, but a service cannot be defined without a parent host.

Feel free to ask more questions. The support staff here are quite responsive and knowledgeable :)

Re: adding my 1st remote linux server for monitoring

Posted: Thu Dec 14, 2017 3:53 pm
by bolson
Hello fretagi,
Did mcapra's insights give you what you needed and may we close this topic?