Random Project

incorrect host line

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$
}