Ad Widget

Collapse

UPS xupsOutputSource я не правильно читаю данные?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zar
    Senior Member
    • Mar 2018
    • 148

    #1

    UPS xupsOutputSource я не правильно читаю данные?

    Скачал темплейт на мониторинг ups Eaton PowerWare 9355 и при запуске начал тупо сразу слать ошибки. хотя веб морда\модуль не показывает, что с ups какие-то проблемы
    но zabbix упорно орет что проверь ups типо проблемы UPS Eaton PowerWare 9355 Check UPS Status!
    срабатывает key xupsOutputSource с вот таким OID item 1.3.6.1.4.1.534.1.4.5.0
    открыл ошибку а там 4 тригера:
    Code:
     [TABLE="class: list-table"]
    [TR]
    [TD="class: warning-bg"]Warning[/TD]
     			[TD]Template Powerware 9355:{HOSTNAME} Check UPS Status![/TD]
     			[TD]{UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}<4[/TD]
     			[TD]Enabled[/TD]
     		[/TR]
    [TR]
    [TD="class: warning-bg"]Warning[/TD]
     			[TD]Template Powerware 9355:{HOSTNAME} is on automatic Bypass[/TD]
     			[TD]{UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}=4[/TD]
     			[TD]Enabled[/TD]
     		[/TR]
    [TR]
    [TD="class: average-bg"]Average[/TD]
     			[TD]Template Powerware 9355:{HOSTNAME} on Battery[/TD]
     			[TD]{UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}=5[/TD]
     			[TD]Enabled[/TD]
     		[/TR]
    [TR]
    [TD="class: warning-bg"]Warning[/TD]
     			[TD]Template Powerware 9355:{HOSTNAME} on manual Bypass[/TD]
     			[TD]{UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}=11[/TD]
     			[TD]Enabled[/TD]
     		[/TR]
    [/TABLE]
    тут же делаю
    Code:
    snmpwalk -v 1 -c public 10.202.55.37 1.3.6.1.4.1.534.1.4.5.0
    полчаю:
    XUPS-MIB::xupsOutputSource.0 = INTEGER: normal(3)
    открываю таблицу http://oidref.com/1.3.6.1.4.1.534.1.4.5
    Code:
     xupsOutputSource OBJECT-TYPE
       SYNTAX  INTEGER {
       other(1),
       none(2),
       normal(3),
       bypass(4),
       battery(5),
       booster(6),
       reducer(7),
       parallelCapacity(8),
       parallelRedundant(9),
       highEfficiencyMode(10)
       }
       ACCESS  read-only
       STATUS  mandatory
       DESCRIPTION
      "The present source of output power.  The enumeration
          none(2) indicates that there is no source of output[/B]
          power (and therefore no output power), for example,[/B]
          the system has opened the output breaker."[/B]
       ::= { xupsOutput  5 }
    и не понимаю почему так.
    т.е. посути.
    Code:
    UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}<4
    должнл быть UPS Eaton PowerWare 9355:xupsOutputSource.last(0)}<3 а не так как выше.. я прав? или я не туда смотрю?
    Last edited by zar; 21-03-2019, 13:08.
  • max.ch.88
    Senior Member
    • Oct 2018
    • 206

    #2
    Туда туда. Возможно разработчик шаблона допустил ошибку/опечатку, либо сделал под другую версию прошивки ИБП. Ваше право всё изменить под свои нужды и фактическое оборудование.

    Comment

    • zar
      Senior Member
      • Mar 2018
      • 148

      #3
      спасибо! подскажи, есть ли смысл делать
      Code:
      UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}>4
      или оставить только
      Code:
      UPS Eaton PowerWare 9355:xupsOutputSource.[B]last([/B]0[B])[/B]}<3

      Comment

      • max.ch.88
        Senior Member
        • Oct 2018
        • 206

        #4
        Оставить <3

        Comment

        Working...