Question

Mathematica formula in Macros

  • 2 January 2023
  • 0 replies
  • 44 views

Badge

Hello,

I’m monitoring Switches that can be only one or stacks of 2 to 4 Switches.

 

I’ tried to use custmon monitoring using OID to check temperature.

the answer of snmpwalk gives Temp x 2 for every switch of the stack. I give an exemple of a 4 unit stack :

[root@egp-super /]# snmpwalk -v3  -l authPriv -u admin -a SHA -A xxx -x AES -X xxxx 10.149.254.148 1.3.6.1.4.1.45.1.6.3.7.1.1.5.5
SNMPv2-SMI::enterprises.45.1.6.3.7.1.1.5.5.10.0 = INTEGER: 92
SNMPv2-SMI::enterprises.45.1.6.3.7.1.1.5.5.20.0 = INTEGER: 94
SNMPv2-SMI::enterprises.45.1.6.3.7.1.1.5.5.30.0 = INTEGER: 94
SNMPv2-SMI::enterprises.45.1.6.3.7.1.1.5.5.40.0 = INTEGER: 94
 

so the tempreture of the first is 92/2 = 46

the forth is : 47

I’d like to use a macro in which I choose the max number divided by 2 : which is 47 in our case.

in other monitoring application, I used : ColumnMax[.1.3.6.1.4.1.45.1.6.3.7.1.1.5/2]

Can you help me to find how I can do that in centreon macro.

Thanks for your help


0 replies

Be the first to reply!

Reply