Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
novokuznezk
bynovokuznezk, February 27, 2018
u have the same error on host line
this is the correct with hoststate and servicestate:
define command{
command_name notification-telegram-service
command_line /usr/bin/php /usr/local/nagios/sbin/telegram-notify/telegram-bot.php "$_CONTACTTELEGRAM$" "477401126:AAGJ6fKMHqbxwigmwgQ2QbPFZhg83N2AQHY" $_SERVICESENDTELEGRAM$ " Notify: $NOTIFICATIONTYPE$ 0XzXZ0 Host: $HOSTNAME$
}
#notification-telegram-host
define command{
command_name notification-telegram-host
command_line /usr/bin/php /usr/local/nagios/sbin/telegram-notify/telegram-bot.php "$_CONTACTTELEGRAM$" "477401126:AAGJ6fKMHqbxwigmwgQ2QbPFZhg83N2AQHY" $_HOSTSENDTELEGRAM$ " Notify: $NOTIFICATIONTYPE$ 0XzXZ0 Host: $HOSTNAME$ 0$
}
this is the correct with hoststate and servicestate:
define command{
command_name notification-telegram-service
command_line /usr/bin/php /usr/local/nagios/sbin/telegram-notify/telegram-bot.php "$_CONTACTTELEGRAM$" "477401126:AAGJ6fKMHqbxwigmwgQ2QbPFZhg83N2AQHY" $_SERVICESENDTELEGRAM$ " Notify: $NOTIFICATIONTYPE$ 0XzXZ0 Host: $HOSTNAME$
}
#notification-telegram-host
define command{
command_name notification-telegram-host
command_line /usr/bin/php /usr/local/nagios/sbin/telegram-notify/telegram-bot.php "$_CONTACTTELEGRAM$" "477401126:AAGJ6fKMHqbxwigmwgQ2QbPFZhg83N2AQHY" $_HOSTSENDTELEGRAM$ " Notify: $NOTIFICATIONTYPE$ 0XzXZ0 Host: $HOSTNAME$ 0$
}