[Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

What is the value of OID “.1.3.6.1.2.1.1.2.0”

On Behalf Of Paul D

···

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.476.1.42

.1.3.6.1.4.1.476.1.42.2.1.1.0 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.1.3.0 = “2.200.0”

.1.3.6.1.4.1.476.1.42.2.4.2.1.1.1 = 1

.1.3.6.1.4.1.476.1.42.2.4.2.1.2.1 = .1.3.6.1.4.1.476.1.42.4.2.5

.1.3.6.1.4.1.476.1.42.2.4.2.1.3.1 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.4.2.1.4.1 = “Npower”

.1.3.6.1.4.1.476.1.42.2.4.2.1.5.1 = "V 1.28 "

.1.3.6.1.4.1.476.1.42.2.4.2.1.6.1 = 1

.1.3.6.1.4.1.476.1.42.2.5.1.0 = 0

.1.3.6.1.4.1.476.1.42.3.5.1.5.0 = 5

···

On Mon, Aug 14, 2017 at 11:20 AM, Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

What is the value of OID “.1.3.6.1.2.1.1.2.0”

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Paul D
Sent: Monday, August 14, 2017 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

Strange, the instance of ups_bat_temp I have (check_mk_raw 1.4.0p9) suggests it should work.

The ‘check_info’ section includes “ups_generic.include”, which includes this as the second acceptable value.

···

.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.476.1.42

.1.3.6.1.4.1.476.1.42.2.1.1.0 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.1.3.0 = “2.200.0”

.1.3.6.1.4.1.476.1.42.2.4.2.1.1.1 = 1

.1.3.6.1.4.1.476.1.42.2.4.2.1.2.1 = .1.3.6.1.4.1.476.1.42.4.2.5

.1.3.6.1.4.1.476.1.42.2.4.2.1.3.1 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.4.2.1.4.1 = “Npower”

.1.3.6.1.4.1.476.1.42.2.4.2.1.5.1 = "V 1.28 "

.1.3.6.1.4.1.476.1.42.2.4.2.1.6.1 = 1

.1.3.6.1.4.1.476.1.42.2.5.1.0 = 0

.1.3.6.1.4.1.476.1.42.3.5.1.5.0 = 5

On Mon, Aug 14, 2017 at 11:20 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

What is the value of OID “.1.3.6.1.2.1.1.2.0”

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Paul D
Sent: Monday, August 14, 2017 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

Yes. I am running 1.2.8p14 which doesn’t have that include file, however the OID is in the check file;

“snmp_info” : ( “.1.3.6.1.2.1.33.1”, [

“1.5”, # upsIdentName

“2.7.0”, # upsBatteryTemperature

The value is returned on a walk, but perhaps is being missed during the inventory part of the check script. I will look into it some more.

···

On Mon, Aug 14, 2017 at 11:35 AM, Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

Strange, the instance of ups_bat_temp I have (check_mk_raw 1.4.0p9) suggests it should work.

The ‘check_info’ section includes “ups_generic.include”, which includes this as the second acceptable value.

From: Paul D [mailto:paulmonitoring@gmail.com]
Sent: Monday, August 14, 2017 1:26 PM
To: Stier, Matthew Matthew.Stier@us.fujitsu.com
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] UPS Battery check

.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.476.1.42

.1.3.6.1.4.1.476.1.42.2.1.1.0 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.1.3.0 = “2.200.0”

.1.3.6.1.4.1.476.1.42.2.4.2.1.1.1 = 1

.1.3.6.1.4.1.476.1.42.2.4.2.1.2.1 = .1.3.6.1.4.1.476.1.42.4.2.5

.1.3.6.1.4.1.476.1.42.2.4.2.1.3.1 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.4.2.1.4.1 = “Npower”

.1.3.6.1.4.1.476.1.42.2.4.2.1.5.1 = "V 1.28 "

.1.3.6.1.4.1.476.1.42.2.4.2.1.6.1 = 1

.1.3.6.1.4.1.476.1.42.2.5.1.0 = 0

.1.3.6.1.4.1.476.1.42.3.5.1.5.0 = 5

On Mon, Aug 14, 2017 at 11:20 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

What is the value of OID “.1.3.6.1.2.1.1.2.0”

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Paul D
Sent: Monday, August 14, 2017 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

Your looking to small.

Also within the check_info section is ‘snmp_scan_function’. This function is used to determine if this check applies to this host. Over the ages, this check
has been coded within the ‘snmp_scan_function’ definitions, as a pointer to another function which is the test, or referenced through another file altogether, by way of an ‘includes’ statement.

It usually queries an OID and check the value to see if it is acceptable. The OID ‘sysObjectID’ (1.3.6.1.2.1.1.2.0) is usually used, since the value it returns
can usually be used to identify specific products. (or classes of)

···

Yes. I am running 1.2.8p14 which doesn’t have that include file, however the OID is in the check file;

“snmp_info” : ( “.1.3.6.1.2.1.33.1”, [

“1.5”, # upsIdentName

“2.7.0”, # upsBatteryTemperature

The value is returned on a walk, but perhaps is being missed during the inventory part of the check script. I will look into it some more.

On Mon, Aug 14, 2017 at 11:35 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

Strange, the instance of ups_bat_temp I have (check_mk_raw 1.4.0p9) suggests it should work.

The ‘check_info’ section includes “ups_generic.include”, which includes this as the second acceptable
value.

From: Paul D [mailto:paulmonitoring@gmail.com]
Sent: Monday, August 14, 2017 1:26 PM
To: Stier, Matthew Matthew.Stier@us.fujitsu.com
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] UPS Battery check

.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.476.1.42

.1.3.6.1.4.1.476.1.42.2.1.1.0 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.1.3.0 = “2.200.0”

.1.3.6.1.4.1.476.1.42.2.4.2.1.1.1 = 1

.1.3.6.1.4.1.476.1.42.2.4.2.1.2.1 = .1.3.6.1.4.1.476.1.42.4.2.5

.1.3.6.1.4.1.476.1.42.2.4.2.1.3.1 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.4.2.1.4.1 = “Npower”

.1.3.6.1.4.1.476.1.42.2.4.2.1.5.1 = "V 1.28 "

.1.3.6.1.4.1.476.1.42.2.4.2.1.6.1 = 1

.1.3.6.1.4.1.476.1.42.2.5.1.0 = 0

.1.3.6.1.4.1.476.1.42.3.5.1.5.0 = 5

On Mon, Aug 14, 2017 at 11:20 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

What is the value of OID “.1.3.6.1.2.1.1.2.0”

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Paul D
Sent: Monday, August 14, 2017 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul

Thanks for the pointers. You led me into the right direction.

I modified the snmp_info in liebert_bat_temp check file and it is now working. (again not sure why this wasn’t working to begin with but I have spent enough of mine, and your time looking into it. ::))

#“snmp_info” : (“.1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3”, “1”),

“snmp_info” : (“.1.3.6.1.2.1.33.1.2”, “7”),

Thanks again.

Paul

···

On Thu, Aug 17, 2017 at 12:49 PM, Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

Your looking to small.

Also within the check_info section is ‘snmp_scan_function’. This function is used to determine if this check applies to this host. Over the ages, this check
has been coded within the ‘snmp_scan_function’ definitions, as a pointer to another function which is the test, or referenced through another file altogether, by way of an ‘includes’ statement.

It usually queries an OID and check the value to see if it is acceptable. The OID ‘sysObjectID’ (1.3.6.1.2.1.1.2.0) is usually used, since the value it returns
can usually be used to identify specific products. (or classes of)

From: Paul D [mailto:paulmonitoring@gmail.com]
Sent: Thursday, August 17, 2017 2:16 PM

To: Stier, Matthew Matthew.Stier@us.fujitsu.com
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] UPS Battery check

Yes. I am running 1.2.8p14 which doesn’t have that include file, however the OID is in the check file;

“snmp_info” : ( “.1.3.6.1.2.1.33.1”, [

“1.5”, # upsIdentName

“2.7.0”, # upsBatteryTemperature

The value is returned on a walk, but perhaps is being missed during the inventory part of the check script. I will look into it some more.

On Mon, Aug 14, 2017 at 11:35 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

Strange, the instance of ups_bat_temp I have (check_mk_raw 1.4.0p9) suggests it should work.

The ‘check_info’ section includes “ups_generic.include”, which includes this as the second acceptable
value.

From: Paul D [mailto:paulmonitoring@gmail.com]
Sent: Monday, August 14, 2017 1:26 PM
To: Stier, Matthew Matthew.Stier@us.fujitsu.com
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] UPS Battery check

.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.476.1.42

.1.3.6.1.4.1.476.1.42.2.1.1.0 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.1.3.0 = “2.200.0”

.1.3.6.1.4.1.476.1.42.2.4.2.1.1.1 = 1

.1.3.6.1.4.1.476.1.42.2.4.2.1.2.1 = .1.3.6.1.4.1.476.1.42.4.2.5

.1.3.6.1.4.1.476.1.42.2.4.2.1.3.1 = “Liebert Corporation”

.1.3.6.1.4.1.476.1.42.2.4.2.1.4.1 = “Npower”

.1.3.6.1.4.1.476.1.42.2.4.2.1.5.1 = "V 1.28 "

.1.3.6.1.4.1.476.1.42.2.4.2.1.6.1 = 1

.1.3.6.1.4.1.476.1.42.2.5.1.0 = 0

.1.3.6.1.4.1.476.1.42.3.5.1.5.0 = 5

On Mon, Aug 14, 2017 at 11:20 AM,
Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com wrote:

What is the value of OID “.1.3.6.1.2.1.1.2.0”

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Paul D
Sent: Monday, August 14, 2017 12:12 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] UPS Battery check

Hi,

I am not getting the Battery Temperature check on my Liebert Npower UPS. I notice there is a “liebert_bat_temp” and also generic “ups_bat_temp”.

The liebert one doesn’t return anything, but the generic one does when I walk it manually, and also when runnig an cmk --snmpwalk xxx

Curious as to why it is not being picked up during inventory.

Here is the OID - .1.3.6.1.2.1.33.1

specifically;

OMD[tp2_slave]:~$ snmpwalk -v2c -c blahblah 127.0.0.1 .1.3.6.1.2.1.33.1.2.7

SNMPv2-SMI::mib-2.33.1.2.7.0 = INTEGER: 25

Any pointers appreciated.

Paul