Page 1 of 1

How to add host in Nagios Core?

Posted: Tue Feb 12, 2019 4:06 am
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?

Re: How to add host in Nagios Core?

Posted: Tue Feb 12, 2019 9:09 am
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 :)

Re: How to add host in Nagios Core?

Posted: Tue Feb 12, 2019 1:33 pm
by npolovenko
Thanks, @mcapra! @simonleung, Please follow the NCPA tutorial and let us know if you have any questions.

Re: How to add host in Nagios Core?

Posted: Mon Feb 18, 2019 5:03 am
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.

Re: How to add host in Nagios Core?

Posted: Mon Feb 18, 2019 5:27 pm
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

Re: How to add host in Nagios Core?

Posted: Tue Feb 19, 2019 3:13 am
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.

Re: How to add host in Nagios Core?

Posted: Tue Feb 19, 2019 4:29 pm
by scottwilkerson
You can skip the NRDP section in the Windows installer unless you are using passive checks from NCPA

Re: How to add host in Nagios Core?

Posted: Fri Mar 01, 2019 4:28 pm
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?