Action on status change in nagvis map


#1

Hi,

i am searching for a way to realize the following:

when a Service in nagvis changes to critical the action should be the same like when i click on this service. it should call the multisite showing the critical Service.

is there any way to do that? even if i have to modify code pls give all posibilities to me.

regards,


#2

I think that using EventCommands ( https://www.icinga.com/docs/icinga2/latest/doc/09-object-types/#eventcommand ) could lead to a solution for your problem.


#3

Please take a look at the documentation. url / url_target might be usable for your purpose.


#4

Hi Wolfgang,

thats nice, but it should point to that URL automaticly when status in going critical. AND after 15 Minuten returning back to the rotation pool of nagvis.

Hi Flaedlesuppe: i will check that, thanks.

regards,


#5

As I don’t use multisite I don’t know how the URL might look like.

You can create an automap showing only the objects in an erroneous state.


#6

Hi,

the URL might look like taht:

https://xxxxxxxxxxxxxxxxx/monitoring/check_mk/index.py?start_url=%2Fmonitoring%2Fcheck_mk%2Fview.py%3Fhost%3DlinXXXXXXXXXX%26service%3DCPU%20utilization%26site%3Dprod%26view_name%3Dservice


#7

url=https://xxxxxxxxxxxxxxxxx/monitoring/check_mk/index.py?start_url=%2Fmonitoring%2Fcheck_mk%2Fview.py%3Fhost%3D[host_name]%26service%3DCPU%20[service_description]%26site%3Dprod%26view_name%3Dservice


#8

Hi,

thats ok so far, but this is only triggered when i click on the Service Icon in nagvis. i want to go there automaticly when an Icon changes to critical.


#9

To my knowledge there aren’t any options in NagVis to automatically execute such actions.