I'm having issues checking a service. I'm getting:
https://hostname:5693/api/services?serv ... check=true
{
"value": {
"returncode": 2,
"stdout": "CRITICAL: Service myservice is stopped"
}
}
Also, same checking this way:
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
$ARG1$ -t 'mycode' -P 5693 -M 'service/myservice/running'
Which is generally the same check. From the server when doing a service myservice status its showing as running.
The status area in this init script, and I know this is a bit basic as we are running a oracle startup script.
status() {
if [ ! -f /var/lock/subsys/$NAME ]; then
echo "Status 1 - Critical : $NAME - Service is stopped"
return 1
fi
if [ -f /var/lock/subsys/$NAME ]; then
echo "Status 0 - OK : $NAME - Service is running"
return 0
fi
}
Any ideas?
Thanks!
Checking a service
Re: Checking a service
Apparently this is a bug.
https://github.com/NagiosEnterprises/ncpa/issues/137
I wonder how often this gets updated....
https://github.com/NagiosEnterprises/ncpa/issues/137
I wonder how often this gets updated....
Re: Checking a service
As any other bug fix, this would depend on the priority of the project and the length of our developers' TODO list.I wonder how often this gets updated....
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Checking a service
I hear you but its been on the current version for quite some time. ncpa-1.8.1-1.el6.x86_64
Also, the version # on this page is out of date.
https://exchange.nagios.org/directory/A ... PA/details
I love this plugin as its universal and a bit lighter than others so I am hoping you double your efforts on this soon to fix the bugs out there on this.
Thanks!
Also, the version # on this page is out of date.
https://exchange.nagios.org/directory/A ... PA/details
I love this plugin as its universal and a bit lighter than others so I am hoping you double your efforts on this soon to fix the bugs out there on this.
Thanks!
Re: Checking a service
The project is still in development. XI5 took up almost all of the development hours for quite awhile. The good news here is that the product IS open source, and anyone can submit patches/pull requests. NCPA is a great project, which we would like to focus on more in the future, but right now the best I can do is apologize for the slow rate of development.
Former Nagios Employee.
me.
me.
Re: Checking a service
Thanks for the update. I see there has been a lot of great changes in XI5 also so thanks for that. I hope this can be a focus of yours as if you can't get the alerts into XI5 then all your work there becomes a mute point. The NCPA seems to be a great start, but there are many outstanding bugs and issues with it. aka Check a running service (currently broken) misc. ERROR's in the logs. I would love to be able to help fix these issues but I'm not great with python at this point. I think its great it is open source, but for the last 3-6 months it doesn't seem like there have been any commits from anyone. I really dont want to use nsclient++ as I think in the long run the NCPA client could be great. So if you can commit to getting 1.9 out for that and fixing some of the bugs out there currently that would help us a ton.
Thanks!
Thanks!
Re: Checking a service
Other than letting the developers know your concerns, we can't really do much else from a support perspective here. Am I all right to lock this thread up? I've already let the developers know that it exists. I do appreciate the suggestions 
Former Nagios Employee.
me.
me.
Re: Checking a service
I will now close this out. Feel free to open another thread if you need more assistance.
Former Nagios Employee