How to add host in Nagios Core?

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.
Locked
simonleung
Posts: 1
Joined: Tue Feb 12, 2019 4:02 am

How to add host in Nagios Core?

Post by simonleung »

I have installed Nagios Core in Ubuntu 16.04. After, I want to add another ubuntu 16.04 computer in Nagios Core for monitoring. How can I do so? Could anyone give me steps?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to add host in Nagios Core?

Post by mcapra »

There are a multitude of options available for monitoring Linux machines.

If you're not picky, I would suggest following the "Getting Started" guide for NCPA, which is a monitoring agent that Nagios Core can talk to:
https://www.nagios.org/ncpa/getting-started.php

That documentation has steps for getting the machine you want to monitor ready, and loading it into Nagios Core.

Please do let us know if something in that documentation is unclear, or if you have additional questions :)
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to add host in Nagios Core?

Post by npolovenko »

Thanks, @mcapra! @simonleung, Please follow the NCPA tutorial and let us know if you have any questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
xinxolHH
Posts: 14
Joined: Mon Feb 18, 2019 4:47 am

Re: How to add host in Nagios Core?

Post by xinxolHH »

Hello,

I have similar issues, and I do not understand the manual description. I have installed Nagios 4 Core on a CentOS machine, and I did some monitoring of the Windows Clients with the installation of NSClient++. Now I want to try the installation of NCPA, (I removed the NSClient++) and perform passive checks on the Windows Clients. I do not understand, what token, or what is asking when installing NCPA on the windows clients.
Any help ?


Regards
x.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to add host in Nagios Core?

Post by ssax »

That token it's asking during installation is the one you define when installing the NPCA agent.
Token - The token used for API calls (from Nagios XI config wizard, check_ncpa.py, curl, etc) and logging into the GUI.
Please see here:

https://www.nagios.org/ncpa/getting-started.php
xinxolHH
Posts: 14
Joined: Mon Feb 18, 2019 4:47 am

Re: How to add host in Nagios Core?

Post by xinxolHH »

Good morning,

@ssax, thanks for the reply. I do not have NagiosXI, but Nagios Core, and in my understanding the token needed when installing the ncpa module, come from the installation of the nrpd "module" defined in the config.inc.php file (in /usr/local/nrdp/server usually). That was my question, where I find the token defintion that ncpa is aking when installing ncpa on the windows client.

https://github.com/NagiosEnterprises/nrdp/

Now the problem is a bit different with nrdp, and the nagcrm group or directory permissions.
When and I why need the nagcmd group, nagios and apache are in the same group, and beloging to nagios group.

Best Regards
X.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to add host in Nagios Core?

Post by scottwilkerson »

You can skip the NRDP section in the Windows installer unless you are using passive checks from NCPA
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to add host in Nagios Core?

Post by ssax »

The NCPA token is only for the NCPA agent on the remote machine, you pass the token in the check_ncpa command and that does the authorization, since you passed the token to the agent, it sees you as authorized. Does that makes sense?
Locked