Hi
I need to create an alert for activemq_watch and we are using nagios core 4.0.8
we need to create an alert if queue > 0 & dequeue is not going down . currently i am able to monitor queue list and my command.cfg and service is as follow
Command.cfg
define command{
command_name check_byssh_activemq_watch
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -E1 -t25 -l user /usr/local/nagios/etc/user.pk -C '/usr/local/nagios/libexec/activemq_watch -w $ARG1$ -c $ARG2$ -q $ARG3$ '
}
and service defined is
define service{
use generic-service
host_name hostname1,hostname2
service_description svc-activemq_watch
check_command check_byssh_activemq_watch!100!200!queuelist.name
}
so where do i need to make changes please let me know.
Thank you for your help.
create an alert if queue > 0 & dequeue is not going down
Re: create an alert if queue > 0 & dequeue is not going down
It looks like your current warning / critical thresholds are 100 / 200. By the sounds of it, you want your warning value to be 1 (since you mentioned # > 0), and critical to be ?.
The script won't be able to alert you if it's not going down. If things do start to go down though, you'd see a recovery email (once the check is OK again).
If you'd like it to do math (compare previoust value to current value for example), then you'll need to modify the plugin to support that function.
The script won't be able to alert you if it's not going down. If things do start to go down though, you'd see a recovery email (once the check is OK again).
If you'd like it to do math (compare previoust value to current value for example), then you'll need to modify the plugin to support that function.
Former Nagios Employee
Re: create an alert if queue > 0 & dequeue is not going down
This service is used by me to get queue list number if its 100 it will give me warning and 200 will go to critical. thats one of the example of alert we are using right now.
I do need to create 1 more alert service that shows :- If queue > 0 & Dequeue not going down then it should create alert.
so what should be my command.cfg and how should the service defined i want to know that.if you can help me with that i have been trying to solve this from days.
I do need to create 1 more alert service that shows :- If queue > 0 & Dequeue not going down then it should create alert.
so what should be my command.cfg and how should the service defined i want to know that.if you can help me with that i have been trying to solve this from days.
Re: create an alert if queue > 0 & dequeue is not going down
Please see the above. You'll want to set your warning to 1, and critical to something you choose. The 'dequeue' porting isn't going to be possible as I mentioned, unless you choose to modify the plugin.rkennedy wrote:It looks like your current warning / critical thresholds are 100 / 200. By the sounds of it, you want your warning value to be 1 (since you mentioned # > 0), and critical to be ?.
The script won't be able to alert you if it's not going down. If things do start to go down though, you'd see a recovery email (once the check is OK again).
If you'd like it to do math (compare previoust value to current value for example), then you'll need to modify the plugin to support that function.
Former Nagios Employee
Re: create an alert if queue > 0 & dequeue is not going down
so is it possible i can find this specific plugin online because i tried looking mostplaces but havent got much info.
and once i get plugin what would be my command.cfg.
and once i get plugin what would be my command.cfg.
Re: create an alert if queue > 0 & dequeue is not going down
You can look at https://exchange.nagios.org and possibly find something there. Otherwise, you'll need to create your own plugin.
The command.cfg won't need to change, you'll just need to adjust warning / critical values.
The command.cfg won't need to change, you'll just need to adjust warning / critical values.
Former Nagios Employee
Re: create an alert if queue > 0 & dequeue is not going down
Thank you @rkennedy
Re: create an alert if queue > 0 & dequeue is not going down
Your welcome, if you decide to use another plugin, then you'll need to modify the command.cfg (as this previous one is setup for check_byssh_activemq_watch). Since it'll be a new plugin, we'll need a new command.Bryan wrote:Thank you @rkennedy
If you need help with a specific plugin you find, feel free to reply back here with more information.
Former Nagios Employee