Checking a service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Checking a service

Post by jcwuerfl »

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!
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Checking a service

Post by jcwuerfl »

Apparently this is a bug.


https://github.com/NagiosEnterprises/ncpa/issues/137



I wonder how often this gets updated....
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Checking a service

Post by lmiltchev »

I wonder how often this gets updated....
As any other bug fix, this would depend on the priority of the project and the length of our developers' TODO list.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Checking a service

Post by jcwuerfl »

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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Checking a service

Post by hsmith »

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.
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Checking a service

Post by jcwuerfl »

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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Checking a service

Post by hsmith »

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.
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Checking a service

Post by jcwuerfl »

Sure thing. Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Checking a service

Post by rkennedy »

I will now close this out. Feel free to open another thread if you need more assistance.
Former Nagios Employee
Locked