Page 1 of 2

NCPA Setup

Posted: Thu Aug 21, 2014 12:36 pm
by JoseLopez
Good Afternoon All,

I installed the NCPA Agent (ncpa-1.7.1) on a server (Windows 2008 R2) everything went smooth following the How-To Guide (http://assets.nagios.com/downloads/ncpa ... ation.html). Doing both Active and Passive checks all defaults setup but the NCPA Wizard. We are using Nagios version 2014R1.4

Some of the checks come back OK however are not reporting anything those being:
Outbound Bandwidth - OK: bytes_sent was 0M/sec
Inbound Bandwidth - OK: bytes_recv was 0M/sec

This server has multiple (100's) of users accessing it at all times, very unlikely to always not sending even 1MB all day. There are multiple of these as there is more than 1 NIC.

Even worse however, all of the following come back as Down "Critical":

Swap Usage - CRITICAL: percent was 15%
Main Memory Usage - CRITICAL: percent was 36%
Disk Usage on C:_ - CRITICAL: used_percent was 70%
Disk Usage on D:_ - CRITICAL: used_percent was 58%
Disk Usage on E: - CRITICAL: used_percent was 100%
CPU Usage - CRITICAL: percent was 27%,0%,7%,0%,0%,0%,0%,0%,0%,0%,27%,0%,26%,20%,0%,0%,34%,0%,73%,0%,7%,0%,3%,0%,3%,0%,0%,0%,0%,20%,0%,0%

When I went to "https://<ipaddress>:5693/api/disk/logical/%7C/used_percent" and downloaded the API file it provides me with the following information:
{
"value": {
"NodeDoesNotExist": {}
}
}

When I just goto the https://<ipaddress>:5693 site and enter the Token, I get the server name and OS installed and generic info like that. But in "See Live Stats" I get:

cpu/percent

Current None
Min Inf
Max -Inf
Average None

And the same info across the board for all the checks. Except Network Interfaces which gives me a blank page.

I looked around and didn't find anything on the forum which is why I created this post. If there is another post I am sorry. Your help is greatly appreciated. Thank you.

Re: NCPA Setup

Posted: Fri Aug 22, 2014 2:39 pm
by sreinhardt
Could you show the current settings you have on these checks, it seems like you might have set the warning and critical a little low. This would also help with the network usage check, as my guess is that you accidentally selected an isatap interface or something of that nature.

As for the disk url, you want to use: [drive letter:| so I would use D:| to see the d:\ drives usage. This can't really be changed due to the url formatting.

No worries on the post, we'd much rather have feedback to make things better!

Re: NCPA Setup

Posted: Sat Aug 23, 2014 8:30 am
by JoseLopez
The Critical Setup is what is there by default for example for the C it's:

check_xi_ncpa_agent!-t '<PASSWORD>' -P 5693 -M 'disk/logical/C:|/used_percent' -w 70 -c 90

As for the network interface being ISATAP I don't think so.

The Drive URL is the same for any of the drives I have I just used the C for the example. But, regardless of the drive the information is not correct. Also, on the server itself if I "manually" check the percentages and things of the like they are all well below 50% or what would be marked a critical or even as a warning. So, this is most definately a false positive.

Re: NCPA Setup

Posted: Mon Aug 25, 2014 11:30 am
by lmiltchev
Can you post the "ncpa_listener.log", so that we can take a look at it?

Re: NCPA Setup

Posted: Mon Aug 25, 2014 12:51 pm
by JoseLopez
ncpa_listener.log
[09196] 2014/08/20 23:06:45.808 starting logging at level ERROR

ncpa_passive.log
[15884] 2014/08/20 23:06:46.547 starting logging at level ERROR

Re: NCPA Setup

Posted: Mon Aug 25, 2014 12:53 pm
by slansing
Hi Jose,

You should be able to find that log under the var directory in your installation folder.

Re: NCPA Setup

Posted: Mon Aug 25, 2014 12:53 pm
by JoseLopez
Not sure how to fix this error, or even if it is one.

Re: NCPA Setup

Posted: Tue Aug 26, 2014 3:21 pm
by jomann
There is going to be a 1.7.2 release shortly (within the next 2 hours) to fix the bug you're currently having. Your checks are probably set up correctly but the Warning/Critical values are getting truncated at the 1st character.

Re: NCPA Setup

Posted: Tue Aug 26, 2014 7:00 pm
by JoseLopez
So, I can say that I was the cause of a change in Nagios?

Does that mean I can get an award?! :D

Re: NCPA Setup

Posted: Wed Aug 27, 2014 10:32 am
by jomann
Definitely a change in NCPA! You were one of two people who had mentioned this issue yesterday and we wanted to get this fixed ASAP.

The 1.7.2 version is out if you didn't see the release last night, it's updated on our downloads page here: http://assets.nagios.com/downloads/ncpa/download.php