Merge pull request #4 from secure-diversITy/fix-chatid
replacing BOTID by CHATID
This commit is contained in:
commit
ca0c4b71c2
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ apply Notification "Host by Telegram" to Host {
|
||||||
users = [ "telegram_unixe" ]
|
users = [ "telegram_unixe" ]
|
||||||
vars.notification_logtosyslog = true
|
vars.notification_logtosyslog = true
|
||||||
vars.telegram_bot = "<YOUR_TELEGRAM_BOT_NAME>"
|
vars.telegram_bot = "<YOUR_TELEGRAM_BOT_NAME>"
|
||||||
vars.telegram_botid = "<YOUR_TELEGRAM_BOT_ID>"
|
vars.telegram_chatid = "<YOUR_TELEGRAM_CHAT_ID>"
|
||||||
vars.telegram_bottoken = "<YOUR_TELEGRAM_BOT_TOKEN>"
|
vars.telegram_bottoken = "<YOUR_TELEGRAM_BOT_TOKEN>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,7 +26,7 @@ The following are mandatory:
|
||||||
-n HOSTDISPLAYNAME (\$host.display_name$)
|
-n HOSTDISPLAYNAME (\$host.display_name$)
|
||||||
-o HOSTOUTPUT (\$host.output$)
|
-o HOSTOUTPUT (\$host.output$)
|
||||||
-p TELEGRAM_BOT (\$telegram_bot$)
|
-p TELEGRAM_BOT (\$telegram_bot$)
|
||||||
-q TELEGRAM_BOTID (\$telegram_botid$)
|
-q TELEGRAM_CHATID (\$telegram_chatid$)
|
||||||
-r TELEGRAM_BOTTOKEN (\$telegram_bottoken$)
|
-r TELEGRAM_BOTTOKEN (\$telegram_bottoken$)
|
||||||
-s HOSTSTATE (\$host.state$)
|
-s HOSTSTATE (\$host.state$)
|
||||||
-t NOTIFICATIONTYPE (\$notification.type$)
|
-t NOTIFICATIONTYPE (\$notification.type$)
|
||||||
|
@ -56,7 +56,7 @@ do
|
||||||
n) HOSTDISPLAYNAME=$OPTARG ;;
|
n) HOSTDISPLAYNAME=$OPTARG ;;
|
||||||
o) HOSTOUTPUT=$OPTARG ;;
|
o) HOSTOUTPUT=$OPTARG ;;
|
||||||
p) TELEGRAM_BOT=$OPTARG ;;
|
p) TELEGRAM_BOT=$OPTARG ;;
|
||||||
q) TELEGRAM_BOTID=$OPTARG ;;
|
q) TELEGRAM_CHATID=$OPTARG ;;
|
||||||
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
||||||
s) HOSTSTATE=$OPTARG ;;
|
s) HOSTSTATE=$OPTARG ;;
|
||||||
t) NOTIFICATIONTYPE=$OPTARG ;;
|
t) NOTIFICATIONTYPE=$OPTARG ;;
|
||||||
|
|
|
@ -27,7 +27,7 @@ The following are mandatory:
|
||||||
-n HOSTDISPLAYNAME (\$host.display_name$)
|
-n HOSTDISPLAYNAME (\$host.display_name$)
|
||||||
-o SERVICEOUTPUT (\$service.output$)
|
-o SERVICEOUTPUT (\$service.output$)
|
||||||
-p TELEGRAM_BOT (\$telegram_bot$)
|
-p TELEGRAM_BOT (\$telegram_bot$)
|
||||||
-q TELEGRAM_BOTID (\$telegram_botid$)
|
-q TELEGRAM_CHATID (\$telegram_chatid$)
|
||||||
-r TELEGRAM_BOTTOKEN (\$telegram_bottoken$)
|
-r TELEGRAM_BOTTOKEN (\$telegram_bottoken$)
|
||||||
-s SERVICESTATE (\$service.state$)
|
-s SERVICESTATE (\$service.state$)
|
||||||
-t NOTIFICATIONTYPE (\$notification.type$)
|
-t NOTIFICATIONTYPE (\$notification.type$)
|
||||||
|
@ -58,7 +58,7 @@ do
|
||||||
n) HOSTDISPLAYNAME=$OPTARG ;;
|
n) HOSTDISPLAYNAME=$OPTARG ;;
|
||||||
o) SERVICEOUTPUT=$OPTARG ;;
|
o) SERVICEOUTPUT=$OPTARG ;;
|
||||||
p) TELEGRAM_BOT=$OPTARG ;;
|
p) TELEGRAM_BOT=$OPTARG ;;
|
||||||
q) TELEGRAM_BOTID=$OPTARG ;;
|
q) TELEGRAM_CHATID=$OPTARG ;;
|
||||||
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
||||||
s) SERVICESTATE=$OPTARG ;;
|
s) SERVICESTATE=$OPTARG ;;
|
||||||
t) NOTIFICATIONTYPE=$OPTARG ;;
|
t) NOTIFICATIONTYPE=$OPTARG ;;
|
||||||
|
|
Loading…
Reference in a new issue