[Check_mk (english)] how to use a mib file

Hi,

I wish to monitor a few unifi ap’s and i have downloaded a mib file from the site

https://community.ubnt.com/t5/UniFi-Feature-Requests/publish-SNMP-MIBs/idi-p/828124

What is the best way to use them in check mk ?

thanks in advance

publish SNMP MIBs !!! - Ubiquiti Networks Community

it’s already possible to enable SNMPv1 on UniFi APs and, through it, gather some basic network informations. It would be awesome to gather some specific WiFi …

Thanks,

But any idea how to go from the descriptions in the mib file to the oid detected from my walk …

thanks in advance

UBNT-UniFi-MIB (1) (13.2 KB)

snmpwalk_20170406025328.txt (12.6 KB)

···

From: Ahmad Siddiq mysiddiq@gmail.com
Sent: Tuesday, April 4, 2017 7:25 AM
To: christophe verdickt
Subject: Re: [Check_mk (english)] how to use a mib file

Hi Christophe,

MIBs are treated like a dictionary - and there is no automatic service discovery by importing MIBs.

Easiest way is to browse the MIB to get the necessary OID and create individual active check to monitor your required services.

Otherwise you can write a python script to write check_mk SNMP-based checks at
https://mathias-kettner.de/checkmk_devel_snmpbased.html

Writing SNMP based checks - Mathias Kettner

mathias-kettner.de

  1. Preparations and SNMP basics. SNMP based checks work exactly like the agent based ones with one exception: Instead of using a section from an agent’s output you …

On Tue, Apr 4, 2017 at 3:07 PM, christophe verdickt
chrverdickt@hotmail.com wrote:

Hi,

I wish to monitor a few unifi ap’s and i have downloaded a mib file from the site

https://community.ubnt.com/t5/UniFi-Feature-Requests/publish-SNMP-MIBs/idi-p/828124

What is the best way to use them in check mk ?

thanks in advance

publish SNMP MIBs !!! - Ubiquiti Networks Community

community.ubnt.com

it’s already possible to enable SNMPv1 on UniFi APs and, through it, gather some basic network informations. It would be awesome to gather some specific WiFi …


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Best Regards,

Ahmad Siddiq b. Mohd AdnanSolution Architect, Xchanging Malaysia Sdn Bhd

International Award for Young People, Gold Award

LPIC-3 Security, Amazon AWS Solutions Architect Associate, Novell CLA, Novell DCTech, CCENT, Microsoft Certified Professional, MCTS Windows Server 2008

Mobile: +60 17 377-5007| Facebook: https://www.facebook.com/my.sidz

Well, you could read the mib file and figure out what a particular
oid would be…
or if you are lazy like me, you could find a mib parser to do it for
you. This is
the one I used. There are others, but this one has worked for me:

···

https://sourceforge.net/p/mibparser/code/HEAD/tree/mibParser.pl

  On 04/06/2017 10:44 AM, christophe

verdickt wrote:

Thanks,

      But any idea how to go from the descriptions in the mib file

to the oid detected from my walk …

thanks in advance


From:
Ahmad Siddiq Tuesday, April 4, 2017 7:25 AM
christophe verdickt
Re: [Check_mk (english)] how to use a mib
file

Hi Christophe,

              MIBs are treated like a dictionary - and there is no

automatic service discovery by importing MIBs.

            Easiest way is to browse the MIB to get the necessary

OID and create individual active check to monitor your
required services.

          Otherwise you can write a python script to write check_mk

SNMP-based checks at
https://mathias-kettner.de/checkmk_devel_snmpbased.html

Writing SNMP based checks - Mathias
Kettner

mathias-kettner.de

                      1. Preparations and SNMP basics. SNMP based

checks work exactly like the agent based ones
with one exception: Instead of using a section
from an agent’s output you …

            On Tue, Apr 4, 2017 at 3:07 PM,

christophe verdickt
chrverdickt@hotmail.com
wrote:

Hi,

                    I wish to monitor a few unifi ap's and i have

downloaded a mib file from the site

https://community.ubnt.com/t5/UniFi-Feature-Requests/publish-SNMP-MIBs/idi-p/828124

What is the best way to use them in check mk ?

thanks in advance

publish
SNMP MIBs !!! - Ubiquiti Networks
Community

community.ubnt.com

                              it's already possible to enable SNMPv1

on UniFi APs and, through it, gather
some basic network informations. It
would be awesome to gather some
specific WiFi …

              _______________________________________________

              checkmk-en mailing list

              checkmk-en@lists.mathias-kettner.de

              [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
          --

Best Regards,

** Ahmad
Siddiq b. Mohd Adnan
** Solution
Architect, Xchanging Malaysia Sdn Bhd

                              International Award for Young People,

Gold Award

                                                              LPIC-3

Security, Amazon AWS Solutions
Architect Associate, Novell CLA,
Novell DCTech, CCENT, Microsoft
Certified Professional, MCTS Windows
Server 2008

                                                              Mobile: +60 17

377-5007 |
Facebook:�https://www.facebook.com/my.sidz

_______________________________________________
checkmk-en mailing list

mysiddiq@gmail.com
Sent:
To:
**Subject:**checkmk-en@lists.mathias-kettner.dehttp://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Jam,

I have found the oid’s i want to monitor (for example the uptime had the oid:

“sysUPTime”

.1.3.6.1.2.1.1.3.0

I guess i need to write a funcion now in the main.mk file, something like this but i am not sure, can you post me an example of you custom snmp file, thanks in advance

check_info[“unifi_uptime”] = {

“check_function” : check_unifi_uptime,

“inventory_function” : inventory_unifi_uptime,

“service_description” : “Unifi Uptime”,

“has_perfdata” : False,

“snmp_scan_function” : lambda oid: oid(“.1.3.6.1.2.1.1.2.0”) in [“.1.3.6.1.4.1.10002.1”,“other-objectId”]

“snmp_info” : ( “.1.3.6.1.2.1.1.3.0”),

}

Or am i completely wrong ??

thanks in advance

···

From: Jam Mulch spammagnet10@gmail.com
Sent: Thursday, April 6, 2017 4:18 PM
To: christophe verdickt; Ahmad Siddiq; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] how to use a mib file

Well, you could read the mib file and figure out what a particular oid would be…

or if you are lazy like me, you could find a mib parser to do it for you. This is

the one I used. There are others, but this one has worked for me:

https://sourceforge.net/p/mibparser/code/HEAD/tree/mibParser.pl

On 04/06/2017 10:44 AM, christophe verdickt wrote:

Thanks,

But any idea how to go from the descriptions in the mib file to the oid detected from my walk …

thanks in advance

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

From: Ahmad Siddiq
mysiddiq@gmail.com
Sent: Tuesday, April 4, 2017 7:25 AM
To: christophe verdickt
Subject: Re: [Check_mk (english)] how to use a mib file

Hi Christophe,

MIBs are treated like a dictionary - and there is no automatic service discovery by importing MIBs.

Easiest way is to browse the MIB to get the necessary OID and create individual active check to monitor your required services.

Otherwise you can write a python script to write check_mk SNMP-based checks at
https://mathias-kettner.de/checkmk_devel_snmpbased.html

Writing SNMP based checks - Mathias Kettner

mathias-kettner.de

  1. Preparations and SNMP basics. SNMP based checks work exactly like the agent based ones with one exception: Instead of using a section from an agent’s output you …

On Tue, Apr 4, 2017 at 3:07 PM, christophe verdickt
chrverdickt@hotmail.com wrote:

Hi,

I wish to monitor a few unifi ap’s and i have downloaded a mib file from the site

https://community.ubnt.com/t5/UniFi-Feature-Requests/publish-SNMP-MIBs/idi-p/828124

What is the best way to use them in check mk ?

thanks in advance

publish
SNMP MIBs !!! - Ubiquiti Networks Community

community.ubnt.com

it’s already possible to enable SNMPv1 on UniFi APs and, through it, gather some basic network informations. It would be awesome to gather some specific WiFi …


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Best Regards,

Ahmad Siddiq b. Mohd AdnanSolution Architect, Xchanging Malaysia Sdn Bhd

International Award for Young People, Gold Award

LPIC-3 Security, Amazon AWS Solutions Architect Associate, Novell CLA, Novell DCTech, CCENT, Microsoft Certified Professional, MCTS Windows Server 2008

Mobile: +60 17 377-5007| Facebook: https://www.facebook.com/my.sidz

No. Please read http://mathias-kettner.de/checkmk_devel_snmpbased.html
and the other chapters in "8. Writing Extensions" on
http://mathias-kettner.de/checkmk.html

Regards

···

On 10.04.2017 12:51, christophe verdickt wrote:

I guess i need to write a funcion now in the main.mk file,

--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin