Add snmp cpu value from cisco sg350x to host

Hi,
I am monitoring serveral cisco sg350x switches and some had a problem last week (high cpu) which i was not monitoring (services not detected during scanning).

I found out the oids in the meantime
CPU utilization for 5 minutes
.1.3.6.1.4.1.9.6.1.101.1.9.0
When i run an cmk --snmpget on the host checkmk returns the right value but how to get it to services on the host.
I searched the forum and found the below solution which suggest to create a “Classical active and passive Monitoring check
Add services manually to SNMP device - General - Checkmk Community

The problem: i am unable to find this classical active and passive page
Or is theire another solution?

Thanks in advance

Hi,
I have not much experience with this but created the following .py file after reading the documentation and copied it to the plugin directory:

register.snmp_section(
    name = "sg350cpu",
    detect = startswith(".1.3.6.1.2.1.1.1.0", "SG350X"),
    fetch = SNMPTree(
        base = '.1.3.6.1.4.1.9.6.1.101.1',
        oids = [
            '7.0', # last 5 seconds
            '8.0', # last 1 minute
            '9.0', # last 5 minutes
        ],
    ),
)

cpu output

I guess i am doing something wrong … ?

extra mib info below

sysDescr
1.3.6.1.2.1.1.1 SG350X-48 48-Port Gigabit Stackable Managed Switch

1.3.6.1.4.1.9.6.1.101.1.7.0 (5 seconds)

1.3.6.1.4.1.9.6.1.101.1.8.0 (1 minute)

1.3.6.1.4.1.9.6.1.101.1.9.0 (5 minutes)

Your snmp section is only the first step to a check.
It defines only where to get what data. Now the next step the check function needs to be defined.
In the linked article the points 2.6 to 2.11 are now important.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.