Page 1 of 1

some doubts about configuration

Posted: Fri Apr 27, 2018 2:53 pm
by clarosystemmgm
hello experts!
I recently completed the installation of a Nagios Core, but I have some doubts that I could not solve while browsing the web:
1. Since at first I have only planned to use the tool to monitor PING, I would like to know how to disable the other services () for both the current nodes and those that I will create later.
2. I currently have only one monitored node (localhost), to add new nodes that I want to monitor via PING. Do I do it from the web interface or console?

At the moment these are the 2 biggest difficulties I am having. I already thank you for your collaboration.
Greetings

Re: some doubts about configuration

Posted: Fri Apr 27, 2018 3:55 pm
by cdienger
Core configuration is all done by editing the config files found in /usr/local/nagios/etc/. You can disable service checks simply by editing the files there and delete their configuration.

Have a look over https://assets.nagios.com/downloads/nag ... n/toc.html and https://assets.nagios.com/downloads/nag ... tions.html to get idea of how Nagios Core works and how to configure objects.

Re: some doubts about configuration

Posted: Wed May 02, 2018 10:20 am
by clarosystemmgm
Thanks, I'll review it and anything I ask again. But I still do not understand how I add new hosts to the list of computers to monitor, I do not think that for every new device that I want to monitor, I have to modify a file, some interface should exist

Re: some doubts about configuration

Posted: Fri May 04, 2018 8:27 am
by mcapra
clarosystemmgm wrote:I do not think that for every new device that I want to monitor, I have to modify a file, some interface should exist
Nagios Core configurations are all managed through files, though there are some options to drop an interface on top of that. Nagios XI offers such an interface for configuration management among other things.

There's also some open source options maintained by the community:
http://www.nconf.org/dokuwiki/doku.php
https://sourceforge.net/projects/nagiosql/
https://www.thruk.org/

I've seen the NagiosQL maintainer (@martinQL) around these forums more recently.

I prefer the official documentation for explanations regarding "How do I monitor this thing!?":
https://assets.nagios.com/downloads/nag ... linux.html
https://assets.nagios.com/downloads/nag ... ndows.html

Nagios Core understands your infrastructure via object definitions. Hosts are a type of object. So are services, contacts, and pretty much everything on this page:
https://assets.nagios.com/downloads/nag ... tions.html

You can use these objects pretty much however you like and there are good/bad and right/wrong ways depending on the specific use case, but a host definition typically represents some top-level piece of physical/virtual hardware. A VM, a network switch, a rack-mount server, a toaster, etc.

A service definition represents something a host is doing or something a host has. Maybe it's running apache, hosting active directory, etc. It probably has disks, a CPU, and memory. These are typically configured as service definitions under a parent host definition.

Re: some doubts about configuration

Posted: Fri May 04, 2018 12:07 pm
by cdienger
Thanks for all the information, @mcapra!