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'
Showing Error in NCPA!!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Showing Error in NCPA!!!
Can you show the complete command you are running to get that error?
Re: Showing Error in NCPA!!!
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!!!
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.
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!!!
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!!!
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?
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Showing Error in NCPA!!!
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
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!!!
It got fixed now, thank you very much for your help and support.
-
kyang
Re: Showing Error in NCPA!!!
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!
Thank you for using the Nagios Support Forums!