﻿check host UniPingServerSolutionV3SMS with address 192.168.0.100
       if failed ping then alert

#проверка ио линии. формат скрипта - get_io.sh номер_линии нормальное_значение тревожное_значение
check program io1_220V with path "/home/user/monit/conf/scripts/get_io.sh 1 1 0"
    if status == 1 then alert # snmp error
    if status == 2 then alert # bed value
    if status == 9 then alert # other

check program io2_main_door with path "/home/user/monit/conf/scripts/get_io.sh 2 1 0"
    if status == 1 then alert
    if status == 2 then alert
    if status == 9 then alert

check program io3_h2o with path "/home/user/monit/conf/scripts/get_io.sh 3 1 0"
    if status == 1 then alert
    if status == 2 then alert
    if status == 9 then alert

check program io4_air with path "/home/user/monit/conf/scripts/get_io.sh 4 1 0"
    if status == 1 then alert
    if status == 2 then alert
    if status == 9 then alert

check program T1_server_room1 with path "/home/user/monit/conf/scripts/get_temp1w.sh 1"
    if status == 1 then alert
    if status == 2 then alert
    if status == 3 then alert
    if status == 4 then alert
    if status == 9 then alert

check program H1_server_room1 with path "/home/user/monit/conf/scripts/get_relhumtemp1w.sh 1"
    if status == 1 then alert
    if status == 2 then alert
    if status == 3 then alert
    if status == 4 then alert
    if status == 9 then alert