состояние порта cisco

Vinny

Случайный прохожий
Привет, есть сервер с нагиос и несколько свитчей цисковских WS-C2960X-48FPD-L. Не мониторится состояние порта в нагиос
Пытаюсь проверить вот таким кодом:

Код:
 check_command	       check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB

Лог после попытки запустить нагиос
Код:
-- Logs begin at Mon 2018-07-30 04:39:02 MSK, end at Tue 2019-10-01 14:38:18 MSK. --
[B]Oct 01 14:38:18 nova nagios[31820]: Error: Unexpected token or statement in file '/usr/local/nagios/etc/switches/SWITCH1.cfg' on line 44.
Oct 01 14:38:18 nova nagios[31820]: Error processing object config files![/B]
Oct 01 14:38:18 nova nagios[31820]: ***> One or more problems was encountered while processing the config files...
Oct 01 14:38:18 nova nagios[31820]: Check your configuration file(s) to ensure that they contain valid
Oct 01 14:38:18 nova nagios[31820]: directives and data defintions.  If you are upgrading from a previous
Oct 01 14:38:18 nova nagios[31820]: version of Nagios, you should be aware that some variables/definitions
Oct 01 14:38:18 nova nagios[31820]: may have been removed or modified in this version.  Make sure to read
Oct 01 14:38:18 nova nagios[31820]: the HTML documentation regarding the config files, as well as the
Oct 01 14:38:18 nova nagios[31820]: 'Whats New' section to find out what has changed.
Oct 01 14:38:18 nova systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
Какие идеи ? коммьюнити правильное создано
 
разобрался сам. Фигурную скобку лишнюю вбил. и немного код изменил
Теперь вопрос как будет синтаксис ifOperStatus выглядеть для гигабитных портов? А если порт 10 гигабит
 
Назад
Верх Низ