2020-11-25 17:13:16 +01:00
|
|
|
define command {
|
|
|
|
command_name notify-host-by-telegram
|
2020-11-26 15:35:59 +01:00
|
|
|
command_line /opt/notify-by-telegram/notify-by-telegram.py -c /etc/nagios4/telegram.json --logfile /var/log/nagios4/telegram.log host --notification-type "$NOTIFICATIONTYPE$" --host-name "$HOSTNAME$" --host-state "$HOSTSTATE$" --host-address "$HOSTADDRESS$" --host-output "$HOSTOUTPUT$" --long-date-time "$LONGDATETIME$"
|
2020-11-25 17:13:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
define command {
|
|
|
|
command_name notify-service-by-telegram
|
2020-11-26 08:39:03 +01:00
|
|
|
command_line /opt/notify-by-telegram/notify-by-telegram.py -c /etc/nagios4/telegram.json --logfile /var/log/nagios4/telegram.log service --notification-type "$NOTIFICATIONTYPE$" --service-desc "$SERVICEDESC$" --host-alias "$HOSTALIAS$" --host-address "$HOSTADDRESS$" --service-state "$SERVICESTATE$" --long-date-time "$LONGDATETIME$" --service-output "$SERVICEOUTPUT$"
|
2020-11-25 17:13:16 +01:00
|
|
|
}
|