HI, I am getting some problem in service.cfg. I have a script which runs and check the xml data for 2 URL (10.10.10.10 11.11.11.11) and it send the alert only when both go down. its is not associate with any host, so not sure whatever i have configured is right or not. configuration is something like this:
I am getting (service check did not exit properly) error.
configuration 2 activemq
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
configuration 2 activemq
You do not have the required permissions to view the files attached to this post.
Last edited by cesar.garza on Thu Sep 26, 2013 8:21 pm, edited 1 time in total.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: configuration 2 activemq
It looks like it exited fine, are you getting this error in the web interface? Can you share a screenshot? It may be that you need to further define flags on the check, try running the plugin with a "-h" after it, with no addresses. This should display the help portion of the plugin so you can make sure you are defining everything properly.
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: configuration 2 activemq
Error in the nagios web
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: configuration 2 activemq
Can you attach a copy of the exact activemq plugin you are using? I'd like to look into it and see if the specific check you are running is not configured to exit properly in the plugin.
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: configuration 2 activemq
This is a perl script looking for xml data for two URL and if it gets data from any one then no warning/critical alert. But if it doesnt get the data from both of them than warning + critical.
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: configuration 2 activemq
One thing I will note, although it may not be the issue. Nagios does not generally like full paths to binaries. You might try $USER1$\check_activemq instead, provided it is in the same path with all your other binaries.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
cesar.garza
- Posts: 80
- Joined: Mon Aug 19, 2013 3:14 pm
Re: configuration 2 activemq
Thanks sreinhardt for your suggestion but i am using full path in my all monitoring setup and working fine.
I have a doubt with configuration because i am passing the $ARG$ and giving hostgroup_Address which is making me little confuse.
I have a doubt with configuration because i am passing the $ARG$ and giving hostgroup_Address which is making me little confuse.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: configuration 2 activemq
fair enough, regarding the full path usage. As for the hostgroup_address and arguments, are you using $arg1$ in the command definition and passing $hostgroup_address$ in from the service? I noticed in the screen shots that you specify the exact IPs not additional arguments. Maybe to simplify could you post your service and command definitions? Preferably not in screen shots.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: configuration 2 activemq
Activemq connections are already running on 172.16.25.xx & xx,so we just need to monitor the services in nagios monitoring system.
We need to add some ActivMq services in that monitoring tool. can you please share the steps ASAP.
We need to add some ActivMq services in that monitoring tool. can you please share the steps ASAP.
Re: configuration 2 activemq
This thread is almost 3 years old. Can you please open a new one for your particular issue?
Former Nagios Employee.
me.
me.