configuration 2 activemq

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

configuration 2 activemq

Post 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.
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

Post 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.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: configuration 2 activemq

Post by cesar.garza »

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

Post 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.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: configuration 2 activemq

Post 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.
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

Post 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.
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

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: configuration 2 activemq

Post 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.
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.
miyappan
Posts: 57
Joined: Thu Feb 11, 2016 5:42 am

Re: configuration 2 activemq

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

Re: configuration 2 activemq

Post by hsmith »

This thread is almost 3 years old. Can you please open a new one for your particular issue?
Former Nagios Employee.
me.
Locked