Showing Error in NCPA!!!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Showing Error in NCPA!!!

Post by ponnpr7 »

Why do I get this message since in real environment all the services are running clean.

Critical
(No output on stdout) stderr: Usage: check_ncpa.py [options]

check_ncpa.py: error: option -P: invalid integer value: '-t'
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Showing Error in NCPA!!!

Post by scottwilkerson »

Can you show the complete command you are running to get that error?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Showing Error in NCPA!!!

Post by ponnpr7 »

Kindly see the attached doc.
You do not have the required permissions to view the files attached to this post.
kyang

Re: Showing Error in NCPA!!!

Post by kyang »

Although this is helpful, we would need to see the command you are running to get this error as @scottwilkerson suggested

Can you show us the command you are running for these services?

Looking for something like this, but for those services that show the critical output.

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.x.x -t '<your token>' -M 'plugins/check_ssh/-H 192.168.x.x'
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Showing Error in NCPA!!!

Post by ponnpr7 »

I'm not running this command manually it was automatically pop up.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Showing Error in NCPA!!!

Post by scottwilkerson »

can you download your system profile from Admin -> System Config -> System Profile -> Download Profile

Then please PM to myself or @kyang and we can investigate how the commands are being called for the services on this host.

Did they work in the past or has it been this way since you set them up?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Showing Error in NCPA!!!

Post by scottwilkerson »

I'm not sure how this happened but your command in the XI CCM isn't defined correctly.

Go to Configure -> CCM -> Commands
Find check_xi_ncpa -> Edit
change "Command Line" to be

Code: Select all

$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Showing Error in NCPA!!!

Post by ponnpr7 »

It got fixed now, thank you very much for your help and support.
kyang

Re: Showing Error in NCPA!!!

Post by kyang »

Glad this worked for you! If you have more questions feel free to post another forum topic.

Thank you for using the Nagios Support Forums!
Locked