Page 1 of 2

configuration 2 activemq

Posted: Thu Sep 26, 2013 10:01 am
by cesar.garza
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.

Re: configuration 2 activemq

Posted: Thu Sep 26, 2013 10:06 am
by slansing
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.

Re: configuration 2 activemq

Posted: Thu Sep 26, 2013 8:24 pm
by cesar.garza
Error in the nagios web

Re: configuration 2 activemq

Posted: Fri Sep 27, 2013 9:56 am
by slansing
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.

Re: configuration 2 activemq

Posted: Sat Sep 28, 2013 10:40 am
by cesar.garza
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.

Re: configuration 2 activemq

Posted: Mon Sep 30, 2013 9:24 am
by sreinhardt
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.

Re: configuration 2 activemq

Posted: Mon Sep 30, 2013 2:05 pm
by cesar.garza
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.

Re: configuration 2 activemq

Posted: Tue Oct 01, 2013 10:24 am
by sreinhardt
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.

Re: configuration 2 activemq

Posted: Thu Feb 11, 2016 6:39 am
by miyappan
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.

Re: configuration 2 activemq

Posted: Thu Feb 11, 2016 10:50 am
by hsmith
This thread is almost 3 years old. Can you please open a new one for your particular issue?