From a0a5f7186f164d9a8345ab63d9f9431a425fb313 Mon Sep 17 00:00:00 2001 From: Robert Sander Date: Thu, 19 Sep 2024 15:48:47 +0200 Subject: [PATCH] adds new SNMP check plugin for Inveo Nano --- inveo_nano/agent_based/inveo_nano.py | 134 ++++++++++++++++++++++ inveo_nano/inveo_nano-0.1.0.mkp | Bin 0 -> 2632 bytes inveo_nano/share/snmp/mibs/INVEO_NANO.mib | 107 +++++++++++++++++ 3 files changed, 241 insertions(+) create mode 100644 inveo_nano/agent_based/inveo_nano.py create mode 100644 inveo_nano/inveo_nano-0.1.0.mkp create mode 100644 inveo_nano/share/snmp/mibs/INVEO_NANO.mib diff --git a/inveo_nano/agent_based/inveo_nano.py b/inveo_nano/agent_based/inveo_nano.py new file mode 100644 index 00000000..35ade425 --- /dev/null +++ b/inveo_nano/agent_based/inveo_nano.py @@ -0,0 +1,134 @@ +#!/usr/bin/env python3 +# -*- encoding: utf-8; py-indent-offset: 4 -*- + +# +# (c) 2024 Heinlein Support GmbH +# Robert Sander ?b<#2}2w3Wuip+tSD_vqz`oY zGrD2Yi*Yd>CF($Aw-jAqK-2xShJkjFCo zrv#;+O5imtlA`LBPvst;jjuUX(=jS#p_O*B%~3Sh*_e@TT^U}ZfgT0usbNSKr8t;z zNabFNntgF7%K|-yNT06z$NqaX9j7zXg^*41feZ<0<(=dY_{#WF+?RAIUw5>}w=k)x z9zh-OOAsgwqn)BJ-NAE?;06|g0r%b8Uqe>V9!ro_$d$-bdo^lH(9EvtbP6uJSHVM@ zPrQpk6}BlZy7}vM7ve)|D+wuyM6IwoyxS7Z;*~jWYehH%WqR&Ej)Q`xyCq(eOuF1c z1=nuqtY3Hfk&?Lbl{d%58R$>JZt|Ctd#wwK-Uoy|dxROZsTduvQN=_UTZj7ho9$*8 zDe)A166vJ+BV`W8b5dqM2VxJ2< z$*#ccpMCeMET*45bq`-ZiCt9hLC7l)9MUL#c&{!`Qg=#z~ z1EI_8%{`lEX-1sOCwsBOH@M-Aqlxem9_i^sxG#kA&yCd7X4-9hrj60%pd7>B1u_JpyF+PAihff}YqK&RXcjNq=sS5@5$DXDLq*xditIjOOQDfJHCI8Dj9g7-7$&S#e-wr1j9I*K;(SF|zLdWG6WPd!9o+& z&O5-7kzhvy^mIp{Iw>KrY8coxYQy{FpqUA#Q$H`*ju)1`zbG^pqWYlJX_%7adfg4F z+GIceU3430fX0Sefkqu3z+kh0_3iz&vfb`pjENU` zo8h5AiPvhlqkFe|ncp0!*ZF8WSX=6u5rOMvIz~O`FJVQtW9Xh3p`3yxkONo`51hXM#*5#DXB|XL>ckp%{}V(FmK1RD z3Df53mL*WtLMY|UavR zEsd!SXaY2ujiw5J=X0qEW=ixz`#UATJ)RV6QI^96YLV)z6l=al&%?ku9{3fT_t>eW zq=hi?KL5huCGv!eSKDA9wxD4Pat4r+z^_S4?SC^n@IY$ZLUhe3$%Ck+CKc>7e^xom|s7uMk-+Frq8Zsm>V z1{FvWL=%OmSdjWux8I{r@uttUPTSXem=uy_jyG6YoLEAW@rp^vHw`CR(RHG$6 zcG#S-+?=rE6FkunIzi5OZqGktd-c!p=KYs+8fe}99nn%BoE+&A|LdG+aj?tZ{U=)a z_15>csx=sxyk2@;fAn76dHT_=RVM{xoo`uZ6idIikoCfQVqe|)Nr;C*Q*X7j?DS2H z)khTPZ*ld{6E9pA5ntk}4<@b|9UNJJ4~_fp{xDX9uR7_kXv0KVP{qXqUX=HkbW=Vx1$;uADvQ@Fsp(Gh6w)m^B~kZ1Rk2YSpGPuACTrNPPOvMx)5{>Rav>Wqh&6H}SL zm=~{-KPWww0d^x$X+1_@+T!EpX#(b_gru)>G|i&cGTC fdd{y9GRM24LJqF~L;P0q8C$)4NE=%u8{2;XFkK6s literal 0 HcmV?d00001 diff --git a/inveo_nano/share/snmp/mibs/INVEO_NANO.mib b/inveo_nano/share/snmp/mibs/INVEO_NANO.mib new file mode 100644 index 00000000..4286da0d --- /dev/null +++ b/inveo_nano/share/snmp/mibs/INVEO_NANO.mib @@ -0,0 +1,107 @@ +Nano DEFINITIONS ::= BEGIN + +IMPORTS + enterprises, IpAddress, Gauge, TimeTicks FROM RFC1155-SMI + DisplayString FROM RFC1213-MIB + OBJECT-TYPE FROM RFC-1212 + TRAP-TYPE FROM RFC-1215; + +inveo OBJECT IDENTIFIER ::= { enterprises 42814 } + +nano OBJECT IDENTIFIER ::= { inveo 14 } + +product OBJECT IDENTIFIER ::= { nano 1 } +setup OBJECT IDENTIFIER ::= { nano 2 } +control OBJECT IDENTIFIER ::= { nano 3 } + +on OBJECT IDENTIFIER ::= { control 1 } +out OBJECT IDENTIFIER ::= { control 2 } +in OBJECT IDENTIFIER ::= { control 3 } +countera OBJECT IDENTIFIER ::= { control 4 } +temperature OBJECT IDENTIFIER ::= { control 5 } + + +name OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Name of product" + ::= { product 1 } + + +version OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Version string" + ::= { product 2 } + +date OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Date of version" + ::= { product 3 } + + + +ch1-on OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION + "Channel On State" + ::= { on 1 } + +ch1-out OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Channel Out State" + ::= { out 1 } + +ch1-in OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Channel In State" + ::= { in 1 } + +ch1-cnt OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION + "Counter" + ::= { countera 1 } + +ch1-temp OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Temperature String" + ::= { temperature 1 } + +ch1-tempint OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Temperature Integer" + ::= { temperature 2 } + +ch1-tempint10 OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION + "Temperature x10 Integer" + ::= { temperature 3 } + +END \ No newline at end of file