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

Comment