View Full Version : better alerter with limits
It would be nice if I can set some limits for alerter. We have sms gateway and we want to limit number of sms sent. There can be problem that many sms are sent due to misconfigured things or some service is buggy and still restarting.
Maybe there could be some macro substitution and commandline parameters in config. Than it is easy to write external script to send data only if it is needed.
e.g.
send_sms "{HOSTNAME}" "{SUBJECT}" "{MESSAGE}" "{USER}" "{EMAIL}" "{LASTCHANGE}" "{PRIORITY}"
in config of the script will substitute and script will compute how many times this user got message, if it is needed to send or last change was too recent, etc.
It would be nice if I can set some limits for alerter. We have sms gateway and we want to limit number of sms sent. There can be problem that many sms are sent due to misconfigured things or some service is buggy and still restarting. I don't think ZABBIX should care about any limits of delivery channels. Why don't you set up the limit on SMS gateway side?
I don't think ZABBIX should care about any limits of delivery channels. Why don't you set up the limit on SMS gateway side?
I do not think that zabbix should take care of it. External script will do. But zabbix should pass arguments let external script knows more informations. (priority, user, trigger, .. etc.) SMS gateway does not know this informations.
I do not think that zabbix should take care of it. External script will do. But zabbix should pass arguments let external script knows more informations. (priority, user, trigger, .. etc.) SMS gateway does not know this informations. I absolutely agree. The functionality should be implemented.
Hello,
when we are talking about alerters, it would be good to know last result of alerter and if I could make some conditions in alerts sending depending on last result. Imagine this situation:
- I have some triggers which are very important and some less (normal situation) :)
- that lower important I would send to jabber (I have script fort it)
- that more important I would to send to jabber and only if there is no presence of given people online, send it by email or SMS.
Problem now is that I have more alerts sent (email, sms and jabber). It is enaught if I know it from one channel :)
Yes, I can write my own script which will do it all. It is solution too. Don't know what is better..