Initial code
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
fe478845f3
commit
d38907dc35
6 changed files with 251 additions and 1 deletions
9
nagios.cfg
Normal file
9
nagios.cfg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define command {
|
||||
command_name notify-host-by-telegram
|
||||
command_line /usr/lib/nagios/plugins/notify-by-telegram.py -c /etc/nagios/telegram.json --logfile /var/log/nagios4/telegram.log host --notification-type "$NOTIFICATIONTYPE$" --service-desc "$SERVICEDESC$" --host-name "$HOSTNAME$" --host-state "$HOSTSTATE$" --host-address "$HOSTADDRESS$" --host-output "$HOSTOUTPUT$" --long-date-time "$LONGDATETIME$"
|
||||
}
|
||||
|
||||
define command {
|
||||
command_name notify-service-by-telegram
|
||||
command_line /usr/lib/nagios/plugins/notify-by-telegram.py -c /etc/nagios/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$"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue