nagios ncpa listener logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

nagios ncpa listener logs

Post by iinfi »

I installed ncpa agent on a windows server 2012 R2 box and see the following messages in the ncpa_listener.log.
What could be the issue? The service starts but netstat -ab doesnt show the port number 5693.
IIS was running on that machine on port 80. Could that be an issue?

tried a different port number to start ncpa (15693) still no success. Same message as below.

INFO:root:Looking for config at: C:\Program Files (x86)\Nagios\NCPA\etc\ncpa.cfg
INFO:root:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins/
ERROR:root:couldn't find any physical disk
Traceback (most recent call last):
File "C:\Users\nscott\Documents\Git\ncpa\agent\ncpa_windows.py", line 86, in start
File "C:\Users\nscott\Documents\Git\ncpa\agent\listener\server.py", line 11, in <module>
File "C:\Users\nscott\Documents\Git\ncpa\agent\listener\psapi.py", line 176, in <module>
File "C:\Python27\lib\site-packages\psutil\__init__.py", line 1229, in disk_io_counters
RuntimeError: couldn't find any physical disk
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios ncpa listener logs

Post by lmiltchev »

Change the port # in the ncpa.cfg to the default one:

Code: Select all

port = 5693
save and exit. Make sure your firewall is not blocking the port. Restart the service and try accessing the API in a browser:

Code: Select all

https://<ip address>:5693/
Click on the API menu and check if you can see any disks listed. You can try:

Code: Select all

https://<ip address>:5693/api/disk/
Be sure to check out our Knowledgebase for helpful articles and solutions!
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

Re: nagios ncpa listener logs

Post by iinfi »

Thanks for your prompt response
yes the port was default when i first tried it and firewall is off on my machine.
I see this error on a physical machine with WS2012R2. On a physical box with WS2012 it works. Makes me wonder whether 2012 r2 is supported or not by the NCPA agent
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios ncpa listener logs

Post by tmcdonald »

I'm not 100% sure if this would matter (I'm more of a Linux guy), but did you run the installer as Admin? It could be that due to a group policy setting the service cannot detect the disks.
Former Nagios employee
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

Re: nagios ncpa listener logs

Post by iinfi »

I ran it as admin and the machine is not joined to the domain.
from a windows machine.. all i need is to collect Windows Event Logs, Check network utilization, CPU and Memory. Is there a way I can do it without Nagios agent on the client machine?
Can I do the same for a Linux machine also without an agent?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios ncpa listener logs

Post by slansing »

Absolutely, I'd recommend taking a look at the WMI Monitoring Wizard:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

If you have any questions let us know!
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

Re: nagios ncpa listener logs

Post by iinfi »

Thanks i'll take a look. Does a agentless monitoring exist for Linux also?
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

Re: nagios ncpa listener logs

Post by iinfi »

i am bumping my post.
Does a agentless monitoring exist for Linux also?

Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios ncpa listener logs

Post by tmcdonald »

That depends on what you mean by "agentless". If you mean exposing the internal metrics of a Linux machine with no prior configuration, then no this is not possible. *Something* needs to be running on the machine in order to query it, however it does not necessarily need to be a Nagios solution. NCPA does work on Linux, but as for a non-Nagios solution I am not aware of one that we would have a plugin for.

And as a side note for the future, we answer older posts before newer ones, so bumping your post, especially if you do it frequently, will possibly delay us getting to you.
Former Nagios employee
iinfi
Posts: 8
Joined: Wed May 21, 2014 11:53 pm

Re: nagios ncpa listener logs

Post by iinfi »

Thanks for your reply. Sorry for bumping the post.

Basically I want to use Nagios XI for monitoring linux servers but not install any agent on it. Is that possible?


Secondly
I am in the evaluation phase of Nagios XI. Coming back to windows. Does it allow me to export all the Windows event logs? Currently I can see the windows events only when the system is up. I want to export logs even when the system is down.
Is that supported?
Locked