Clarify Copyright declaration
This commit is contained in:
parent
41f83bdb06
commit
807f709a02
3 changed files with 55 additions and 10 deletions
29
README.md
29
README.md
|
@ -87,7 +87,7 @@ template Host "Generic Host Template" {
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Example host object</summary>
|
<summary>Example host object</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
object Host "icinga2-master" {
|
object Host "icinga2-master" {
|
||||||
import "Generic Host Template"
|
import "Generic Host Template"
|
||||||
|
@ -259,7 +259,7 @@ template Notification "Template: Telegram (Generic)" {
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Notification Template: Host Notifications</summary>
|
<summary>Notification Template: Host Notifications</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
template Notification "Template: Host Notifications via Telegram" {
|
template Notification "Template: Host Notifications via Telegram" {
|
||||||
import "Template: Telegram (Generic)"
|
import "Template: Telegram (Generic)"
|
||||||
|
@ -272,7 +272,7 @@ template Notification "Template: Host Notifications via Telegram" {
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Notification Template: Service Notifications</summary>
|
<summary>Notification Template: Service Notifications</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
template Notification "Template: Service Notifications via Telegram" {
|
template Notification "Template: Service Notifications via Telegram" {
|
||||||
import "Template: Telegram (Generic)"
|
import "Template: Telegram (Generic)"
|
||||||
|
@ -287,7 +287,7 @@ template Notification "Template: Service Notifications via Telegram" {
|
||||||
#### Example notification apply rules
|
#### Example notification apply rules
|
||||||
<details>
|
<details>
|
||||||
<summary>Apply rule for host notifications</summary>
|
<summary>Apply rule for host notifications</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
apply Notification "Host Alert via @telegram_bot" to Host {
|
apply Notification "Host Alert via @telegram_bot" to Host {
|
||||||
import "Template: Host Notifications via Telegram"
|
import "Template: Host Notifications via Telegram"
|
||||||
|
@ -303,7 +303,7 @@ template Notification "Template: Service Notifications via Telegram" {
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Apply rule for service notifications</summary>
|
<summary>Apply rule for service notifications</summary>
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
apply Notification "Service Alerts via @telegram_bot" to Service {
|
apply Notification "Service Alerts via @telegram_bot" to Service {
|
||||||
import "Template: Service Notifications via Telegram"
|
import "Template: Service Notifications via Telegram"
|
||||||
|
@ -319,7 +319,7 @@ apply Notification "Service Alerts via @telegram_bot" to Service {
|
||||||
#### Example Director screenshot
|
#### Example Director screenshot
|
||||||
<details>
|
<details>
|
||||||
<summary>Notifications by Telegram via Icinga Director</summary>
|
<summary>Notifications by Telegram via Icinga Director</summary>
|
||||||
|
|
||||||

|

|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -327,3 +327,20 @@ apply Notification "Service Alerts via @telegram_bot" to Service {
|
||||||
* [Just the Commands](contrib/Director-Basket_Telegram_Commands.json)
|
* [Just the Commands](contrib/Director-Basket_Telegram_Commands.json)
|
||||||
* [Commands and Notification Templates with fields](contrib/Director-Basket_Telegram_Notifications.json)
|
* [Commands and Notification Templates with fields](contrib/Director-Basket_Telegram_Notifications.json)
|
||||||
(requires Director v1.8.0 or a master newer than [80f9ea2](https://github.com/Icinga/icingaweb2-module-director/commit/80f9ea2))
|
(requires Director v1.8.0 or a master newer than [80f9ea2](https://github.com/Icinga/icingaweb2-module-director/commit/80f9ea2))
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (C) 2018 Marianne M. Spiller <github@spiller.me>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
|
@ -1,9 +1,23 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
## /etc/icinga2/scripts/host-by-telegram.sh / 20170330
|
## /etc/icinga2/scripts/host-by-telegram.sh / 20170330
|
||||||
## Marianne M. Spiller <github@spiller.me>
|
|
||||||
## Last updated 20190820
|
## Last updated 20190820
|
||||||
## Last tests used 2.11.2-1.buster
|
## Last tests used 2.11.2-1.buster
|
||||||
|
|
||||||
|
# Copyright (C) 2018 Marianne M. Spiller <github@spiller.me>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
PROG="`basename $0`"
|
PROG="`basename $0`"
|
||||||
HOSTNAME="`hostname`"
|
HOSTNAME="`hostname`"
|
||||||
TRANSPORT="curl"
|
TRANSPORT="curl"
|
||||||
|
|
|
@ -1,9 +1,23 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
## /etc/icinga2/scripts/service-by-telegram.sh / 20170330
|
## /etc/icinga2/scripts/service-by-telegram.sh / 20170330
|
||||||
## Marianne M. Spiller <github@spiller.me>
|
|
||||||
## Last updated 20190820
|
## Last updated 20190820
|
||||||
## Last tests used icinga2-2.11.2-1.buster
|
## Last tests used icinga2-2.11.2-1.buster
|
||||||
|
|
||||||
|
# Copyright (C) 2018 Marianne M. Spiller <github@spiller.me>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
PROG="`basename $0`"
|
PROG="`basename $0`"
|
||||||
HOSTNAME="`hostname`"
|
HOSTNAME="`hostname`"
|
||||||
TRANSPORT="curl"
|
TRANSPORT="curl"
|
||||||
|
@ -32,7 +46,7 @@ The following are mandatory:
|
||||||
-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$)
|
||||||
-u SERVICEDISPLAYNAME (\$service.display_name$)
|
-u SERVICEDISPLAYNAME (\$service.display_name$)
|
||||||
|
|
||||||
And these are optional:
|
And these are optional:
|
||||||
-b NOTIFICATIONAUTHORNAME (\$notification.author$)
|
-b NOTIFICATIONAUTHORNAME (\$notification.author$)
|
||||||
|
@ -59,7 +73,7 @@ do
|
||||||
l) HOSTALIAS=$OPTARG ;;
|
l) HOSTALIAS=$OPTARG ;;
|
||||||
n) HOSTDISPLAYNAME=$OPTARG ;;
|
n) HOSTDISPLAYNAME=$OPTARG ;;
|
||||||
o) SERVICEOUTPUT=$OPTARG ;;
|
o) SERVICEOUTPUT=$OPTARG ;;
|
||||||
p) TELEGRAM_BOT=$OPTARG ;;
|
p) TELEGRAM_BOT=$OPTARG ;;
|
||||||
q) TELEGRAM_CHATID=$OPTARG ;;
|
q) TELEGRAM_CHATID=$OPTARG ;;
|
||||||
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
r) TELEGRAM_BOTTOKEN=$OPTARG ;;
|
||||||
s) SERVICESTATE=$OPTARG ;;
|
s) SERVICESTATE=$OPTARG ;;
|
||||||
|
|
Loading…
Reference in a new issue