Jump to content

Search the Community

Showing results for tags 'ИБП Mikroik'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Settings
    • Hardware
    • Cables
    • IPTV, cable TV, Satellite
    • Wi-Fi
    • Software
    • Optical fiber equipment
    • Games
    • PON
  • Organization
    • Network as business
    • Find networks
    • Find ISP
    • Comment providers
    • Datacenters. Hosting. Colocation.
    • Administrators purposes
    • Buy Sell Merge ISPs
    • For people
    • Jobs. Work. Training
  • Stargazer
    • Stargazer development
    • Stargazer questions
    • Stargazer Ubilling
    • Stargazer modules
  • Security
    • Viruses and Antiviruses
    • System integrity
    • Equipment protection
    • DDoS protection
  • Everything
    • Flame about networks
    • About local
    • Trade
    • For newbies
  • Regions
    • Харьков
    • Чернигов
    • Днепропетровск
    • Полтава
    • Крым
    • Запорожье
    • Тернополь
    • Донецк
    • Львов
    • Житомир
    • Сумы
    • Одесса
    • Черновцы
    • Закарпатье
    • Луганск

Calendars

  • Основной календарь

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Сайт


ICQ


Yahoo


Jabber


Skype


Город


Интересы

Found 1 result

  1. Имеем Mikrotik х86 6.0 APC Smart SC420I Huawei 173. ИБП по Com порту прикручен к Mikrotik Пакет UPS установлен и ИБП в МК виден на Com0/ С модемом тоже все гуд.Из тулс смс шлет да и из терминала /tool sms send usb3 "+38093xxxxxxx" message="текст" тоже отправляет. Помогите люди знающие почему нижепреведенный скрипт непашет. Вот такой вот скриптик пашет на ура _______________________________________________________________ :local PINGCOUNT 5; :local PINGIP "x.x.x.x"; :log info message="START PING TO $PINGIP, CHECKING INTERNET"; :local PINGRESULT [/ping $PINGIP count=$PINGCOUNT]; :if ($PINGRESULT > 0) do={ :log info message="PING TO $PINGIP OK, INTERNET OK"; } else={ :log info message="INTERNET FAIL!"; /tool sms send usb3 "+38093xxxxxxx" message="Internet Down" } :log info message="PING TO $PINGIP, INTERNET CHECK END"; ______________________________________________________________ А вот такой вот скриптик фигушки. ______________________________________________________________ # UPS-Script powerfail # © steinmann und weidinger OEG # www.stone-rich.at # # Watches ups status and sends emails on power failure and low battery. # This script will FAIL if: # - Policies write, test, and read are not set # - The system name contains non-standard characters (space, /, ...) # - The UPS is not named ups1 (fixed by adding configurable variable) # # This script was tested up to ROS 3.Х # user-configurable parameters below: :local mailserver "94.100.177.1"; :local mailfrom "1234567@mail.ru"; :local mailto "1234567@mail.ru"; :local user "1234567@mail.ru"; :local password "ххххххх"; :local upsName "ups1"; # # do NOT make changes below! # :global flagonbatt; :global flagbattlow; :local battalarm 15; :local battok 40; :local curonbatt; :local curcharge; :local sysname [/system identity get name]; :local datetime "$[/system clock get date] $[/system clock get time]"; # First run? If so, we need to initialize the global flags :if ([:typeof $flagonbatt]="nothing") do={:set flagonbatt 0} :if ([:typeof $flagbattlow]="nothing") do={:set flagbattlow 0} :set curonbatt false; :set curcharge 100; /system ups monitor [/system ups find name=$upsName] once do={ :set curonbatt $"on-battery"; :set curcharge $"battery-charge"; } :if (($curonbatt) && ($flagonbatt=0)) do={ :set flagonbatt 1; /tool e-mail send from=$mailfrom to=$mailto server=$mailserver user=$user password=$password subject="$sysname: Power failure!" body="$sysname is on battery since $datetime"; :log info "Power-Fail: EMail sent to $mailto"; /tool sms send usb3 "+38093ххххххх" message="$sysname: Power failure! Is on battery since $datetime"; } :if ((!$curonbatt) && ($flagonbatt=1)) do={ :set flagonbatt 0; /tool e-mail send from=$mailfrom to=$mailto server=$mailserver user=$user password=$password subject="$sysname: Power is back" body="$sysname is back on power since $datetime"; :log info "Power-Restore: Email sent to $mailto"; /tool sms send usb3 "+38093ххххххх" message="$sysname: Power is back! Is back on power since $datetime"; } :if (($curcharge <= $battalarm) && ($flagbattlow=0)) do={ :set flagbattlow 1; /tool e-mail send from=$mailfrom to=$mailto server=$mailserver user=$user password=$password subject="$sysname: Low battery!" body="$sysname battery is at $curcharge %! $datetime"; :log info "Batt-Low: Email sent to $mailto"; /tool sms send usb3 "+38093ххххххх" message="$sysname: Low battery!! Battery is at $curcharge %! $datetime"; } :if (($curcharge >= $battok) && ($flagbattlow=1)) do={ :set flagbattlow 0; /tool e-mail send from=$mailfrom to=$mailto server=$mailserver user=$user password=$password subject="$sysname: Battery recharged" body="$sysname Battery recharged to $curcharge% $datetime"; :log info "Batt-Recharged: Email sent to $mailto"; /tool sms send usb3 "+38093ххххххх" message="$sysname: Battery recharged! Battery recharged to $curcharge% $datetime"; }
×
×
  • Create New...