Setup Windows Host - Nagios Newbie

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Setup Windows Host - Nagios Newbie

Postby nmarsh » Thu Jan 11, 2018 5:57 pm

Hello, I am very new to Nagios Core and have what is hopefully an easy question to answer. I have Nagios Core 4.3.4 up and running but my next step that I am trying to accomplish is to add some Window hosts that I would like to monitor.

I see documentation about adding a Windows host and it references downloading and installing NCPA on the Windows server. I have downloaded that and started the install process but now the setup is asking for an API token. I have no idea of how to come up with an API token.

Like I mentioned, I am very new to Nagios Core so do not assume that I know anything about it really or what needs to be setup beforehand to get other hosts added. If anyone can guide me in the right direction on what needs to be done so I can add Window hosts for monitoring that would be greatly appreciated. I am not very familiar with Linux either, as my primary job function is network/firewall related.

Surely simply adding a host is not a complicated thing to do? At this point we are just evaluating Nagios Core to see if it would be a good fit for us and not being able to add any other hosts to monitor is making it hard to evaluate.

Thanks in advance for any help you can provide!
nmarsh
 
Posts: 1
Joined: Thu Jan 11, 2018 5:46 pm

Re: Setup Windows Host - Nagios Newbie

Postby lmiltchev » Fri Jan 12, 2018 5:00 pm

I am not sure what documentation you have read, but you can review various NCPA configuration options here:

https://www.nagios.org/ncpa/help.php#configuration

Setting up the community string (token) is very easy in NCPA. The "default" one is "mytoken", but you can change it the ncpa.cfg file (main config), usually located in "C:\Program Files (x86)\Nagios\NCPA\etc" folder on the Windows machine. After modifying the file, you will need to restart the NCPA Listener service so that changes can take effect. Then, you download the check_ncpa.py plugin from here:

https://assets.nagios.com/downloads/ncpa/check_ncpa.tar.gz

place it in your plugins directory, and test it from the command line on your Nagios server.

Example:
Code: Select all
./check_ncpa.py -H x.x.x.x -t mytoken -M system/agent_version
OK: Agent_version was ['2.0.5']


You can view the usage (help menu) of the plugin by running:

Code: Select all
./check_ncpa.py -h


Let us know if you have any more questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10093
Joined: Mon May 23, 2011 12:15 pm


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 30 guests