NCPA agent issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

NCPA agent issue

Post by keerthi.seetharaman »

Hi Team,

Good Day.

We have one solaris sparc server and the OS version is Oracle solaris 11.4. Below is the output:-

abc# uname -a
SunOS abc 5.11 11.4.19.3.0 sun4v sparc sun4v
abc# cat /etc/os-release
NAME="Oracle Solaris"
PRETTY_NAME="Oracle Solaris 11.4"
CPE_NAME="cpe:/o:oracle:solaris:11:4"
ID=solaris
VERSION=11.4
VERSION_ID=11.4
BUILD_ID=11.4.19.0.1.3.0
HOME_URL="https://www.oracle.com/solaris/"
SUPPORT_URL="https://support.oracle.com/"
abc#

So i downloaded the agent from https://www.nagios.org/ncpa/#downloads and the agent that i downloaded is oracle solaris 11.x and the pkg-sparc. Installed it on the server.

Restarted the service after updating the ncpa.cfg with the correct community string.

Checked the output and found that the ncpa listener and passive is online.

abc# svcs -a | grep -i ncpa
online 15:54:04 svc:/site/ncpa_listener:default
online 15:54:17 svc:/site/ncpa_passive:default
abc#

Did a telnet from our Nagios XI server on port 5693 and found that the telnet is happening fine.

[linux@abc ~]$ telnet 10.14.x.x 5693
Trying 10.14.x.x...
Connected to 10.14.x.x.
Escape character is '^]'.
^CConnection closed by foreign host.
[linux@abc ~]$

But when i a trying to configure it via console it is throwing an error. Attached is the screenshot.

Can you please help me fixing the issue and adding the server under monitoring in Nagios XI.

Let me know in case if any more details are required.

Regards,
Keerthi Prashanth Seetharaman
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: NCPA agent issue

Post by keerthi.seetharaman »

Anyone can please help me urgently?
Thanks & Regards,
Keerthi Prashanth Seetharaman
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA agent issue

Post by ssax »

I apologize, we were closed, you can see our hours here:

https://www.nagios.com/contact/

Posts/Tickets are answered in the order received.

Does it work from the CLI of the XI server?
- Change X.X.X.X and YOURTOKEN

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'YOURTOKEN' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
I believe this is a bug in your version of the NCPA wizard though, please go to Admin > Manage Config Wizards:
- Click the Check for Updates button
- Install the Updates

Then test and it should be resolved.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: NCPA agent issue

Post by keerthi.seetharaman »

Thanks for the reply.
We do not have internet connection provided from client end to do an update.But yes we can check the command that you have provided.

Output after running from CLI is as below:-
[linux@redhat libexec]$ ./check_ncpa.py -H 10.14.xx.xx -t 'test' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')
[linux@redhat libexec]$

Let me know in case if any more details are required.
Thanks & Regards,
Keerthi Prashanth Seetharaman
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA agent issue

Post by ssax »

Download the attached zip file (don't extract):

Then go to Admin > Configuration Wizards:
- Click the Browser button and select the zip file
- Click the Upload & Install button

Test the NCPA wizard again against this system.

If that doesn't resolve it, send the output of this command (only after updating the wizard):

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -V
You do not have the required permissions to view the files attached to this post.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: NCPA agent issue

Post by keerthi.seetharaman »

Sure we will do that.

But one info is that hopefully, it does not affect any other server that are under monitoring due to this.

Regards,
Keerthi Prashanth S
Thanks & Regards,
Keerthi Prashanth Seetharaman
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA agent issue

Post by ssax »

Take the attached zip file, extract it, and put the file on your server somewhere (don't replace the current plugin), then run this command against it and see if it works:

Code: Select all

python check_ncpa.py -H 10.14.xx.xx -t 'test' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
Then we'll know if that resolves it.
You do not have the required permissions to view the files attached to this post.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: NCPA agent issue

Post by keerthi.seetharaman »

Thanks for your quick response.

So I need to copy this file in my Nagios XI server and test it. Right?
Thanks & Regards,
Keerthi Prashanth Seetharaman
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCPA agent issue

Post by ssax »

Yes, correct.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Re: NCPA agent issue

Post by keerthi.seetharaman »

Sorry for the delay response.

Checked but having the same issue.
[redhat@abc ~]$ python check_ncpa.py -H 10.xx.xxx.xx -t 'test' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')

File is copied on desktop and executed from desktop itself.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Locked