Page 1 of 2

NCPA 2.1.1 Service Error

Posted: Fri Dec 29, 2017 12:31 pm
by twalters2
NCPA client has been working fine on our CentOS servers until we upgraded the client to 2.1.1. Now when monitoring the services the NCPA XI wizard the services monitored return the following error. This worked before the upgrade but now it doesn't. Is this a bug in the new NCPA client?

The node (service) requested does not exist. You may be trying to access the 'services' node.

Re: NCPA 2.1.1 Service Error

Posted: Fri Dec 29, 2017 1:14 pm
by npolovenko
Hello, @twalters2. Can you upload service definitions from the XI server?

Re: NCPA 2.1.1 Service Error

Posted: Tue Jan 02, 2018 3:46 pm
by sm00thindian
I have the same issue:
Item in << >> are obfuscated intentionally:

it's a check_xi_ncpa

Command View: $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
$ARG1$ -t '<<ACTIVE-TOKEN>>' -P <<PORT>> -M 'service/<<SERVICE_NAME>>/running'

Re: NCPA 2.1.1 Service Error

Posted: Tue Jan 02, 2018 3:55 pm
by Crecelius
I'm seeing this problem too using NCPA 2.1.1. Is there any resolution?? I get the "The node (service) requested does not exist. You may be trying to access the 'services' node." with the status as being "Unknown"

I've updated the check_ncpa.py in the plugins, still same issue...here is a part of the service config that I'm seeing this on...

define service {
host_name dja-tst-ecap9.ct.er.lcl
service_description Service Status: ncpalistener
use xiwizard_ncpa_service
check_command check_xi_ncpa!-t '(removedtoprotecttheinnocent)' -P 5693 -M 'service/ncpalistener/running'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts crecelp
_xiwizard ncpa
register 1
}

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 9:57 am
by dgannon
Just adding to the chorus. We just started seeing this same issue yesterday. In addition, monitoring of disk usage returns just "The node (". And that's it.

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 10:57 am
by kyang
Crecelius try changing the check to something like this and see if it works after you apply config and force an immediate recheck on that service.

Code: Select all

 -t 'yourtoken' -P 5693 -M 'services' -q 'service=ncpalistener,status=running'
Breaking up the -M

@dgannon, Do you have a check_command for the disk usage check we could see? Or are you going to open a new thread on that issue?
It may be easier, so we aren't answering two questions even though they may be related.

Crecelius, let us know if that works.

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 2:42 pm
by dgannon
Apologies. I should have included this in my previous post.

This is the command as it was generated by the ncpa wizard (with the thresholds bumped up):

Code: Select all

check_xi_ncpa!-t <redacted> -P 5693 -M 'disk/logical/|mnt|miui/used_percent' -w 96 -c 98
And for the record, this is the command for the service checks; in this case httpd:

Code: Select all

check_xi_ncpa!-t <redacted> -P 5693 -M 'service/httpd/running'

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 2:47 pm
by dgannon
Just tried this for the service check:

Code: Select all

check_xi_ncpa!-t <REDACTED> -P 5693 -M 'services' -q 'service=httpd,status=running'
And it works.

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 3:23 pm
by Crecelius
@kyang, thanks a lot, that fixed my check...since It originally came from the NCPA wizard, I looked into why...turns out my wizard wasn't updated...the updated version now specifies these checks correctly.

Re: NCPA 2.1.1 Service Error

Posted: Wed Jan 03, 2018 3:51 pm
by dwhitfield
@twalters2, did @kyang's suggestion resolve this for you?