Dakujem, pomohlo. Aspon si obohatil google od dalsie relevantne klucove slova
Spravil som si Nagios check, ktory upozorni na zle zlinkovany port na mikrotiku alebo UBNT:
/etc/nagios3/commands.cfg:
Code: ›
### Interface speed SNMP
define command {
command_name check_mk_portspeed
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o 1.3.6.1.2.1.2.2.1.5.$ARG2$ -C $ARG1$ -s $ARG3$ -P $ARG4$ -l SPEED: -u bps
register 1
}
/etc/nagios3/conf.d/services_nagios2.cfg:
Code: ›
### Mikrotik/UBNT port speed check ###
# PARAMETRE: community,port index,kontrolovany speed v bps,SNMP verzia
define service {
host_name ROUTER1
service_description MikroTik ETH speed R1 uplink
use generic-service
check_command check_mk_portspeed!haluska456!1!100000000!2c
register 1
notification_options c,r
notification_interval 0
contact_groups notif_sms_mail
}
PS: UBNT podporuje len SNMP verziu 1. |