Page 1 of 1
Showing Error in NCPA!!!
Posted: Thu Sep 21, 2017 4:49 pm
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'
Re: Showing Error in NCPA!!!
Posted: Thu Sep 21, 2017 4:50 pm
by scottwilkerson
Can you show the complete command you are running to get that error?
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 10:56 am
by ponnpr7
Kindly see the attached doc.
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 11:10 am
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'
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 11:31 am
by ponnpr7
I'm not running this command manually it was automatically pop up.
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 11:50 am
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?
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 12:54 pm
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$
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 2:44 pm
by ponnpr7
It got fixed now, thank you very much for your help and support.
Re: Showing Error in NCPA!!!
Posted: Fri Sep 22, 2017 2:48 pm
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!