Hi All, I have the following scenario and I want to expose it here to read from other opinions of what you consider is the best way to do this
I have many devices that I am monitoring but lets simplify them as 2.
Device A
Device B
Both read the same information; they poll information trough an internal network so they have data from subdevice 1, subdevice2, subdevice3, etc.
If they receive a signal ,device A will monitor all subdevices. If they receive otherwise device B will monitor subdevices and A will stop its job.
The thing is that A and B are always on, is almost rare that they will loose IP connectivity (they have different power, etc).
They have different IPs so they are 2 different zabbix devices. The info they collect is -discovered- so in zabbix the info shown is the same for one or the other.
The problem is that if A is stopped and B starts polling info... zabbix will continue "seeing" the triggers of device A that do fail because device A does not loose IP connectivity but stops monitoring.
I can read via Http which device is enabled at any time, so that info is available.
The question is:
So here is what i ask:
1) Is there any trigger or similar way I can disable the triggers of a device based on that "flag" ?
2) If option 1 is not possible, then should I do that with a workaround using the API and may be some python script running in the background?
Of course my preferred option is to can everything in Zabbix but if there's no way I should use the API
Any hints or thoughts about this?
Thanks in advance
I have many devices that I am monitoring but lets simplify them as 2.
Device A
Device B
Both read the same information; they poll information trough an internal network so they have data from subdevice 1, subdevice2, subdevice3, etc.
If they receive a signal ,device A will monitor all subdevices. If they receive otherwise device B will monitor subdevices and A will stop its job.
The thing is that A and B are always on, is almost rare that they will loose IP connectivity (they have different power, etc).
They have different IPs so they are 2 different zabbix devices. The info they collect is -discovered- so in zabbix the info shown is the same for one or the other.
The problem is that if A is stopped and B starts polling info... zabbix will continue "seeing" the triggers of device A that do fail because device A does not loose IP connectivity but stops monitoring.
I can read via Http which device is enabled at any time, so that info is available.
The question is:
So here is what i ask:
1) Is there any trigger or similar way I can disable the triggers of a device based on that "flag" ?
2) If option 1 is not possible, then should I do that with a workaround using the API and may be some python script running in the background?
Of course my preferred option is to can everything in Zabbix but if there's no way I should use the API
Any hints or thoughts about this?
Thanks in advance
Comment