Prihlásiť sa Odoslať Novinky :: FAQ :: Rozšírené vyhľadávanie :: Napísali o nás :: Ankety
Main Menu
· Home
· 
· FAQ
· 
· Diskusia
· 











Main Menu
· Domov

Moduly
· AvantGo
· Downloads
· FAQ
· News
· Recommend Us
· Reviews
· Search
· Sections
· Stats
· Topics
· Top List
· Web Links
· Forum

Jazyk
Výber jazykovej mutácie:



The time now is 29.03.2024 - 00:30


Port speed cez SNMP

Post new topic Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
 
Author Message
neos
Post subject: Port speed cez SNMP  PostPosted: 08.06.2016 - 18:39 #111209
Ucen


Joined: Aug 09, 2004
Posts: 752

Da sa cez SNMP vycitat aktualna zlinkovana rychlost ethernet portu na mikrotiku? Potrebujem to dostat do Nagiosu alebo Zabbixu, aby som vedel, kedy zblbne port.

To iste potrebujem tahat aj z UBNT. Riesil to niekto?
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
midnight_man
Post subject: RE: Port speed cez SNMP  PostPosted: 09.06.2016 - 17:46 #111212
Majster


Joined: Feb 14, 2011
Posts: 2544

samozrejme...chce to vediet snmp oid alebo mat spravny template.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
backslash_
Post subject: RE: Port speed cez SNMP  PostPosted: 10.06.2016 - 08:25 #111219
Basic


Joined: Júl 17, 2008
Posts: 102
Location: SNV
Dva dobre mierene dotazy do Googla by ti to vyriesili rychlejsie ako pytat sa tu. Aktualnu linkovu rychlost mas v IF-MIB v tabulke ifTable, stlpec ifSpeed, cize IF-MIB::ifSpeed.1 je linkova rychlost v bitoch na interface s indexom 1. Ak by si chcel numericku hodnotu OID tak je to .1.3.6.1.2.1.2.2.1.5.X kde X je ifIndex tvojho interface.
 
 View user's profile Send private message Visit poster's website MSN Messenger ICQ Number 
Reply with quote Back to top
midnight_man
Post subject: RE: Port speed cez SNMP  PostPosted: 10.06.2016 - 21:03 #111226
Majster


Joined: Feb 14, 2011
Posts: 2544

no jak pekne ti to tu kolega vysvetlil Very Happy az sa cudujem ze sa mu to chcelo hladat
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
neos
Post subject: RE: Port speed cez SNMP  PostPosted: 15.06.2016 - 09:42 #111238
Ucen


Joined: Aug 09, 2004
Posts: 752

Dakujem, pomohlo. Aspon si obohatil google od dalsie relevantne klucove slova Smile

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.
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
Display posts from previous:     
All times are GMT
Post new topic Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
 
Jump to:  

Powered by PNphpBB2 © 2003-2005 The PNphpBB Group
Credits

(C) SKFree 2002-2010: Powered by POSTNUKE. Môžete prebera? naše správy vo formáte XML(RSS)