After applying custom plugins, checkmk is display UNKNOWN state

Hi,

I am creating a custom plugins for an SNMP card which monitors our HVAC. After doing the following commands, there was no error on CLI however in CHeckmk dashboard it shows UNKNOWN state. Can anyone help me on this issue?

  • cmk --detect-plugins=hvac_C2 -vl hvac-2
  • cmk --debug -II --detect-plugins=hvac_C2 -vl hvac-2
  • cmk -vv --debug --detect-plugins=hvac_C2 hvac-2

These are the code

import re
from .agent_based_api.v1 import *
from cmk.base.plugins.agent_based.agent_based_api.v1 import (
   get_value_store,
)

def discover_hvac_C2(section):
    yield Service()

def check_hvac_C2(section):
    hvac_snmp_C2 = int(section[0][0])
 
    ##Compressor 1
    if hvac_snmp_C2 == 0:      
        hvac_snmp_value_converted = "Off"
        summary_hvac_C2 = "Compressor2 Status: " + str(hvac_snmp_value_converted)
        #yield Result(state=State.OK,summary=summary_hvac_C2)

    else:
        hvac_snmp_value_converted = "On"
        summary_hvac_C2 = "Compressor2 Status: " + str(hvac_snmp_value_converted)
        #yield Result(state=State.CRIT,summary=summary_hvac_C2)
    
    yield Result(state=State.CRIT,summary=summary_hvac_C2)
    hvac_snmp_C2_name = "Compressor_Status"
    yield Metric(hvac_snmp_C2_name,hvac_snmp_C2)

    

register.snmp_section(
    name = "hvac_C2",
    #detect = contains(".1.3.6.1.2.1.1.1.0","licheepi-zero"),
    detect = exists(".1.3.6.1.4.1.7416.1.2.30019.0"),
    fetch = SNMPTree(
        base = '.1.3.6.1.4.1.7416.1.2',
        oids = ['31.0'],
    ),
)

##register plugins
register.check_plugin(
    name = "hvac_C2",
    sections = ["hvac_C2"],
    service_name='HVAC Compressor 2',
    discovery_function= discover_hvac_C2,
    check_function= check_hvac_C2,
    )

Result from * cmk -vv --debug --detect-plugins=hvac_C2 hvac-2

OMD[cmkvm]:~/local/share/check_mk/checks$ cmk --detect-plugins=hvac_C2 -vl hvac-2
cmk --debug -II --detect-plugins=hvac_C2  -vl hvac-2
Discovering services and host labels on: hvac-2
hvac-2:
+ FETCHING DATA
[SNMPFetcher] Execute data source
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
+ ANALYSE DISCOVERED HOST LABELS
SUCCESS - Found no host labels
+ ANALYSE DISCOVERED SERVICES
+ EXECUTING DISCOVERY PLUGINS (1)
  1 hvac_C2
SUCCESS - Found 1 services
OMD[cmkvm]:~/local/share/check_mk/checks$ cmk -vv --debug --detect-plugins=hvac_C2 hvac-2
Checkmk version 2.1.0p2
Try license usage history update.
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7f202da369d0]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Mode Mode.FORCE_SECTIONS)
[SNMPFetcher] Execute data source
hvac_C2: Fetching data (SNMP walk cache cleared)
Executing BULKWALK of ".1.3.6.1.4.1.7416.1.2.31" on hvac-2
.1.3.6.1.4.1.7416.1.2.31.0 => [b'0'] 'INTEGER'
Not using cache (Mode Mode.FORCE_SECTIONS)
[cpu_tracking] Stop [7f202da369d0 - Snapshot(process=posix.times_result(user=0.08999999999999986, system=0.020000000000000018, children_user=0.0, children_system=0.0, elapsed=0.15000000223517418))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7f202da0b850]
[PiggybackFetcher] Fetch with cache settings: NoCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7f202da0b850 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.0, children_system=0.0, elapsed=0.009999997913837433))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: ['hvac_C2']
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7f202da0b640]
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: loading from disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: already loaded
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
[cpu_tracking] Stop [7f202da0b640 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.0, children_system=0.0, elapsed=0.019999999552965164))]
[snmp] Success, execution time 0.2 sec | execution_time=0.180 user_time=0.090 system_time=0.040 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.040 cmk_time_agent=0.000
OMD[cmkvm]:~/local/share/check_mk/checks$ cmk -vv --debug --detect-plugins=hvac_C2 hvac-2
Checkmk version 2.1.0p2
Try license usage history update.
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7f3a044e2d60]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Mode Mode.FORCE_SECTIONS)
[SNMPFetcher] Execute data source
hvac_C2: Fetching data (SNMP walk cache cleared)
Executing BULKWALK of ".1.3.6.1.4.1.7416.1.2.31" on hvac-2
.1.3.6.1.4.1.7416.1.2.31.0 => [b'0'] 'INTEGER'
Not using cache (Mode Mode.FORCE_SECTIONS)
[cpu_tracking] Stop [7f3a044e2d60 - Snapshot(process=posix.times_result(user=0.0, system=0.08000000000000007, children_user=0.0, children_system=0.0, elapsed=0.12000000104308128))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7f3a043e4490]
[PiggybackFetcher] Fetch with cache settings: NoCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7f3a043e4490 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: ['hvac_C2']
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7f3a043e45b0]
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: loading from disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
HVAC Compressor 2    Compressor2 Status: Off
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: already loaded
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
[cpu_tracking] Stop [7f3a043e45b0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.010000001639127731))]
[snmp] Success, execution time 0.1 sec | execution_time=0.130 user_time=0.000 system_time=0.080 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.040 cmk_time_agent=0.000

If you want to simulate the real check i would test with

cmk -vv --debug hvac-2

I think your detect OID works not correctly.
With the “–detect-plugins” you overrule this part.

Hi Andreas
Thanks for the response

I run the debug file here is the result.

OMD[cmkvm]:~$ cmk -vv --debug hvac-2
Checkmk version 2.1.0p2
Try license usage history update.
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7fc8e2389f40]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 41 sec, allowed is 0 sec)
[SNMPFetcher] Execute data source
  SNMP scan:
       Getting OID .1.3.6.1.2.1.1.1.0: Executing SNMP GET of .1.3.6.1.2.1.1.1.0 on hvac-2
=> [b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'] OCTETSTR
b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Getting OID .1.3.6.1.2.1.1.2.0: Executing SNMP GET of .1.3.6.1.2.1.1.2.0 on hvac-2
=> [b'.1.3.6.1.4.1.8072.3.2.10'] OBJECTID
b'.1.3.6.1.4.1.8072.3.2.10'
       Using cached OID .1.3.6.1.2.1.1.2.0: '.1.3.6.1.4.1.8072.3.2.10'
       Using cached OID .1.3.6.1.2.1.1.2.0: '.1.3.6.1.4.1.8072.3.2.10'
       Getting OID .1.3.6.1.2.1.2.2.1.*: Executing SNMP GETNEXT of .1.3.6.1.2.1.2.2.1 on hvac-2
=> [b'1'] INTEGER
b'1'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
   SNMP scan found                    if snmp_uptime
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Got lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Released lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
if: Fetching data (SNMP walk cache is enabled: Use any locally cached information)
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.1" on hvac-2
.1.3.6.1.2.1.2.2.1.1.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.1.2 => [b'2'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.2" on hvac-2
.1.3.6.1.2.1.2.2.1.2.1 => [b'lo'] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.2.2 => [b'eth0'] 'OCTETSTR'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.3" on hvac-2
.1.3.6.1.2.1.2.2.1.3.1 => [b'24'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.3.2 => [b'6'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.5" on hvac-2
.1.3.6.1.2.1.2.2.1.5.1 => [b'10000000'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.5.2 => [b'100000000'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.8" on hvac-2
.1.3.6.1.2.1.2.2.1.8.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.8.2 => [b'1'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.10" on hvac-2
.1.3.6.1.2.1.2.2.1.10.1 => [b'119039120'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.10.2 => [b'306953803'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.11" on hvac-2
.1.3.6.1.2.1.2.2.1.11.1 => [b'1482025'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.11.2 => [b'2036758'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.12" on hvac-2
.1.3.6.1.2.1.2.2.1.12.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.12.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.13" on hvac-2
.1.3.6.1.2.1.2.2.1.13.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.13.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.14" on hvac-2
.1.3.6.1.2.1.2.2.1.14.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.14.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.16" on hvac-2
.1.3.6.1.2.1.2.2.1.16.1 => [b'119039120'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.16.2 => [b'198582998'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.17" on hvac-2
.1.3.6.1.2.1.2.2.1.17.1 => [b'1482025'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.17.2 => [b'1232366'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.18" on hvac-2
.1.3.6.1.2.1.2.2.1.18.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.18.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.19" on hvac-2
.1.3.6.1.2.1.2.2.1.19.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.19.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.20" on hvac-2
.1.3.6.1.2.1.2.2.1.20.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.20.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.21" on hvac-2
.1.3.6.1.2.1.2.2.1.21.1 => [b'0'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.21.2 => [b'0'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.6" on hvac-2
.1.3.6.1.2.1.2.2.1.6.1 => [b''] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.6.2 => [b'\x02\x03\xfaY\xaeI'] 'OCTETSTR'
snmp_uptime: Fetching data (SNMP walk cache is enabled: Use any locally cached information)
Executing BULKWALK of ".1.3.6.1.2.1.1.3" on hvac-2
.1.3.6.1.2.1.1.3.0 => [b'28593365'] 'TICKS'
Executing BULKWALK of ".1.3.6.1.2.1.25.1.1" on hvac-2
.1.3.6.1.2.1.25.1.1.0 => [b'225965107'] 'TICKS'
Write data to cache file /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
[cpu_tracking] Stop [7fc8e2389f40 - Snapshot(process=posix.times_result(user=0.030000000000000027, system=0.020000000000000004, children_user=0.0, children_system=0.0, elapsed=0.23000000044703484))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7fc8e2288f10]
[PiggybackFetcher] Fetch with cache settings: NoCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7fc8e2288f10 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: ['if', 'snmp_uptime']
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7fc8e22885e0]
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: loading from disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
HVAC Compressor 2    PEND - Check plugin received no monitoring data
Interface 2          [eth0], (up), MAC: 02:03:FA:59:AE:49, Speed: 100 MBit/s, In: 138 B/s (<0.01%), Out: 224 B/s (<0.01%)
Uptime               Up since Jun 15 2024 14:41:03, Uptime: 26 days 3 hours
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: already loaded
value store: writing to disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
[cpu_tracking] Stop [7fc8e22885e0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.009999997913837433))]
[snmp] Success, Missing monitoring data for plugins: hvac_C2(!), execution time 0.2 sec | execution_time=0.240 user_time=0.040 system_time=0.020 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.180 cmk_time_agent=0.000

The detect OID works when I run snmpwalk actually.

OMD[cmkvm]:~$  snmpwalk -v3 -u <someletters> -A "<someletters>" -l authNoPriv -a MD5 -Onqet 10.224.1.35 1.3.6.1.4.1.7416.1.2.30016
.1.3.6.1.4.1.7416.1.2.30016.0 "53.6"

You need to check with “snmpget” for the detect OID.
In your code you have another OID →

vs.

My bad it should be .30016.0
I changed my OID detect however it still the same. Still “Check plugin received no monitoring data”

OMD[cmkvm]:~$ cmk -vv --debug hvac-2
Checkmk version 2.1.0p2
Try license usage history update.
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cmkvm/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7fbcd1cd3d90]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 43 sec, allowed is 0 sec)
[SNMPFetcher] Execute data source
  SNMP scan:
       Getting OID .1.3.6.1.2.1.1.1.0: Executing SNMP GET of .1.3.6.1.2.1.1.1.0 on hvac-2
=> [b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'] OCTETSTR
b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Getting OID .1.3.6.1.2.1.1.2.0: Executing SNMP GET of .1.3.6.1.2.1.1.2.0 on hvac-2
=> [b'.1.3.6.1.4.1.8072.3.2.10'] OBJECTID
b'.1.3.6.1.4.1.8072.3.2.10'
       Getting OID .1.3.6.1.2.1.2.2.1.*: Executing SNMP GETNEXT of .1.3.6.1.2.1.2.2.1 on hvac-2
=> [b'1'] INTEGER
b'1'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.2.0: '.1.3.6.1.4.1.8072.3.2.10'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.2.0: '.1.3.6.1.4.1.8072.3.2.10'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
   SNMP scan found                    if snmp_uptime
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Got lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Released lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
if: Fetching data (SNMP walk cache is enabled: Use any locally cached information)
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.1" on hvac-2
.1.3.6.1.2.1.2.2.1.1.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.1.2 => [b'2'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.2" on hvac-2
.1.3.6.1.2.1.2.2.1.2.1 => [b'lo'] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.2.2 => [b'eth0'] 'OCTETSTR'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.3" on hvac-2
.1.3.6.1.2.1.2.2.1.3.1 => [b'24'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.3.2 => [b'6'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.5" on hvac-2
.1.3.6.1.2.1.2.2.1.5.1 => [b'10000000'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.5.2 => [b'100000000'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.8" on hvac-2
.1.3.6.1.2.1.2.2.1.8.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.8.2 => [b'1'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.10" on hvac-2
.1.3.6.1.2.1.2.2.1.10.1 => [b'119083252'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.10.2 => [b'307577291'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.11" on hvac-2
.1.3.6.1.2.1.2.2.1.11.1 => [b'1482617'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.11.2 => [b'2041334'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.12" on hvac-2
.1.3.6.1.2.1.2.2.1.12.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.12.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.13" on hvac-2
.1.3.6.1.2.1.2.2.1.13.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.13.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.14" on hvac-2
.1.3.6.1.2.1.2.2.1.14.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.14.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.16" on hvac-2
.1.3.6.1.2.1.2.2.1.16.1 => [b'119083252'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.16.2 => [b'199648343'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.17" on hvac-2
.1.3.6.1.2.1.2.2.1.17.1 => [b'1482617'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.17.2 => [b'1236942'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.18" on hvac-2
.1.3.6.1.2.1.2.2.1.18.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.18.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.19" on hvac-2
.1.3.6.1.2.1.2.2.1.19.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.19.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.20" on hvac-2
.1.3.6.1.2.1.2.2.1.20.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.20.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.21" on hvac-2
.1.3.6.1.2.1.2.2.1.21.1 => [b'0'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.21.2 => [b'0'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.6" on hvac-2
.1.3.6.1.2.1.2.2.1.6.1 => [b''] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.6.2 => [b'\x02\x03\xfaY\xaeI'] 'OCTETSTR'
snmp_uptime: Fetching data (SNMP walk cache is enabled: Use any locally cached information)
Executing BULKWALK of ".1.3.6.1.2.1.1.3" on hvac-2
.1.3.6.1.2.1.1.3.0 => [b'28846448'] 'TICKS'
Executing BULKWALK of ".1.3.6.1.2.1.25.1.1" on hvac-2
.1.3.6.1.2.1.25.1.1.0 => [b'226218191'] 'TICKS'
Write data to cache file /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/checking/hvac-2
[cpu_tracking] Stop [7fbcd1cd3d90 - Snapshot(process=posix.times_result(user=0.0, system=0.04999999999999999, children_user=0.0, children_system=0.0, elapsed=0.21000000089406967))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7fbcd1c48040]
[PiggybackFetcher] Fetch with cache settings: NoCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7fbcd1c48040 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: ['if', 'snmp_uptime']
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7fbcd1c48100]
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: loading from disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
HVAC Compressor 2    PEND - Check plugin received no monitoring data
Interface 2          [eth0], (up), MAC: 02:03:FA:59:AE:49, Speed: 100 MBit/s, In: 406 B/s (<0.01%), Out: 719 B/s (<0.01%)
Uptime               Up since Jun 15 2024 14:41:04, Uptime: 26 days 4 hours
value store: synchronizing
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
value store: already loaded
value store: writing to disk
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/counters/hvac-2
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
[cpu_tracking] Stop [7fbcd1c48100 - Snapshot(process=posix.times_result(user=0.0, system=0.010000000000000009, children_user=0.0, children_system=0.0, elapsed=0.0))]
[snmp] Success, Missing monitoring data for plugins: hvac_C2(!), execution time 0.2 sec | execution_time=0.210 user_time=0.000 system_time=0.060 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.160 cmk_time_agent=0.000```

The SNMP get seems working too

OMD[cmkvm]:~$  snmpget -v3 -l authNoPriv -a md5 -u <some > -A <some> -m "" -M "" -On -OQ -Oe -Ot 10.224.1.34 .1.3.6.1.4.1.7416.1.2.30016.0
.1.3.6.1.4.1.7416.1.2.30016.0 = "54.1"
OMD[cmkvm]:~$  snmpget -v3 -l authNoPriv -a md5 -u <some> -A <some> -m "" -M "" -On -OQ -Oe -Ot 10.224.1.34 .1.3.6.1.4.1.7416.1.2.31.0
.1.3.6.1.4.1.7416.1.2.31.0 = 0

Relevant is first the detection without the “force”.

cmk --debug -vvII hvac-2

After the “SNMP scan” the line is relevant where you see the found plugins.

Here is what I got.

OMD[cmkvm]:~$ cmk --debug -vvII hvac-2
Discovering services and host labels on: hvac-2
hvac-2:
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7f817239edc0]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 153 sec, allowed is 120 sec)
[SNMPFetcher] Execute data source
  SNMP scan:
       Getting OID .1.3.6.1.2.1.1.1.0: Executing SNMP GET of .1.3.6.1.2.1.1.1.0 on hvac-2
=> [b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'] OCTETSTR
b'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Getting OID .1.3.6.1.2.1.1.2.0: Executing SNMP GET of .1.3.6.1.2.1.1.2.0 on hvac-2
=> [b'.1.3.6.1.4.1.8072.3.2.10'] OBJECTID
b'.1.3.6.1.4.1.8072.3.2.10'
       Using cached OID .1.3.6.1.2.1.1.1.0: 'Linux root 4.13.16-licheepi-zero+ #10 SMP Mon Mar 29 09:35:19 CST 2021 armv7l'
       Getting OID .1.3.6.1.2.1.31.1.1.1.6.*: Executing SNMP GETNEXT of .1.3.6.1.2.1.31.1.1.1.6 on hvac-2
=> [None] TICKS
failed.
       Getting OID .1.3.6.1.2.1.2.2.1.*: Executing SNMP GETNEXT of .1.3.6.1.2.1.2.2.1 on hvac-2
=> [b'1'] INTEGER
b'1'
   SNMP scan found                    if snmp_uptime
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Got lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
Released lock on /omd/sites/cmkvm/tmp/check_mk/snmp_scan_cache/hvac-2.10.224.1.35
if: Fetching data (SNMP walk cache cleared)
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.1" on hvac-2
.1.3.6.1.2.1.2.2.1.1.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.1.2 => [b'2'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.2" on hvac-2
.1.3.6.1.2.1.2.2.1.2.1 => [b'lo'] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.2.2 => [b'eth0'] 'OCTETSTR'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.3" on hvac-2
.1.3.6.1.2.1.2.2.1.3.1 => [b'24'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.3.2 => [b'6'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.5" on hvac-2
.1.3.6.1.2.1.2.2.1.5.1 => [b'10000000'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.5.2 => [b'100000000'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.8" on hvac-2
.1.3.6.1.2.1.2.2.1.8.1 => [b'1'] 'INTEGER'
.1.3.6.1.2.1.2.2.1.8.2 => [b'1'] 'INTEGER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.10" on hvac-2
.1.3.6.1.2.1.2.2.1.10.1 => [b'119148832'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.10.2 => [b'308285701'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.11" on hvac-2
.1.3.6.1.2.1.2.2.1.11.1 => [b'1483472'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.11.2 => [b'2046596'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.12" on hvac-2
.1.3.6.1.2.1.2.2.1.12.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.12.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.13" on hvac-2
.1.3.6.1.2.1.2.2.1.13.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.13.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.14" on hvac-2
.1.3.6.1.2.1.2.2.1.14.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.14.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.16" on hvac-2
.1.3.6.1.2.1.2.2.1.16.1 => [b'119148832'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.16.2 => [b'200857524'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.17" on hvac-2
.1.3.6.1.2.1.2.2.1.17.1 => [b'1483472'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.17.2 => [b'1242204'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.18" on hvac-2
.1.3.6.1.2.1.2.2.1.18.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.18.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.19" on hvac-2
.1.3.6.1.2.1.2.2.1.19.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.19.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.20" on hvac-2
.1.3.6.1.2.1.2.2.1.20.1 => [b'0'] 'COUNTER'
.1.3.6.1.2.1.2.2.1.20.2 => [b'0'] 'COUNTER'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.21" on hvac-2
.1.3.6.1.2.1.2.2.1.21.1 => [b'0'] 'GAUGE'
.1.3.6.1.2.1.2.2.1.21.2 => [b'0'] 'GAUGE'
Executing BULKWALK of ".1.3.6.1.2.1.2.2.1.6" on hvac-2
.1.3.6.1.2.1.2.2.1.6.1 => [b''] 'OCTETSTR'
.1.3.6.1.2.1.2.2.1.6.2 => [b'\x02\x03\xfaY\xaeI'] 'OCTETSTR'
snmp_uptime: Fetching data (SNMP walk cache cleared)
Executing BULKWALK of ".1.3.6.1.2.1.1.3" on hvac-2
.1.3.6.1.2.1.1.3.0 => [b'29193795'] 'TICKS'
Executing BULKWALK of ".1.3.6.1.2.1.25.1.1" on hvac-2
.1.3.6.1.2.1.25.1.1.0 => [b'226565538'] 'TICKS'
Write data to cache file /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/discovery/hvac-2
Trying to acquire lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/discovery/hvac-2
Got lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/discovery/hvac-2
Releasing lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/discovery/hvac-2
Released lock on /omd/sites/cmkvm/tmp/check_mk/data_source_cache/snmp/discovery/hvac-2
[cpu_tracking] Stop [7f817239edc0 - Snapshot(process=posix.times_result(user=0.0, system=0.09, children_user=0.0, children_system=0.0, elapsed=0.2799999974668026))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7f8172246460]
[PiggybackFetcher] Fetch with cache settings: NoCache(hvac-2, base_path=/omd/sites/cmkvm/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'hvac-2'. Skip processing.
No piggyback files for '10.224.1.35'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7f8172246460 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: ['if', 'snmp_uptime']
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
+ ANALYSE DISCOVERED HOST LABELS
Trying host label discovery with: if, snmp_uptime
Trying host label discovery with: 
SUCCESS - Found no host labels
+ ANALYSE DISCOVERED SERVICES
+ EXECUTING DISCOVERY PLUGINS (3)
  Trying discovery with: interfaces, uptime, docker_container_status_uptime
  1 interfaces
  1 uptime

Is it possible that you have a rule active that disables nearly all SNMP sections?
It’s a little bit short, the scan.

1 Like

Yes, Actually i worked with cmk support because the snmp card has some limited allowable oid that can be scanned and since cmk is doing all snmp section by default, cmk tends to timeout which causes not to detect snmp_uptime and interface. hence they recommend to allow only interface and snmp_uptime.
What should I allow in snmp section in order for the script to detect the custom OID?

your own section hvac_C2 maybe ?

No, hvac_c2 is a actually the plugin I created.

Here is your section with the name that @thl-cmk said.
You need to enable this section to be found for your device.

@andreas-doehler and @thl-cmk thank you both for your input. Yeah this fix my issue.
really appreciate your quick responses!

1 Like