Very little SNMP metrics

CMK version: CheckMK 2.3.0p17
OS version: Debian 12

Description

Hi
I’ve setup my SNMP Monitoring of my cisco switch using the following guide: Monitoring via SNMP - Monitoring of SNMP devices with Checkmk

However I’m only getting quite limited and also the data twice:

I have a Cisco SG300 Switch, I have the custom MiB package (not sure if there is a way to import) and a smpwalk works fine and gives around 250k lines back.

Any ideas how I can get checkmk to give me more stats, for example CPU, disk, ram, FAN, temps, connected devices, more interface data like interfaces with DOWN status.

Thanks for any help :slight_smile:

Just as a side note: you can import custom MIB trees into checkmk (Setup→Events→Event Console rule packs→SNMP MIBs for trap translation) but that won’t help in your case. It helps only if you setup checkmk as a sink for SNMP traps and let a device send traps to checkmk.
Without a custom MIB imported the traps would show up in the event console with their numbers.
If you import a MIB then they would show up with some descriptive text. That’s it.

Oh I see, thanks!

Well what will then be the best way to achieve more metrics here?
Or why exactly are there not more metrics?

Thanks!

Hi,

aren’t there more metrics for the interfaces if you click on the graph icon on an active interface?
I would at least expect Input / Output Bandwith, CRC Errors etc.

Hi

Thanks for all your quick replys :slight_smile:

Yes there are more infos on the grahps icon:

However still many things are missing, like CPU, RAM, Disk, status of other Interfaces, Firmware version, FAN status, temps, …

Thanks for any tips on how to get those metrics!

Regarding your duplicate entries: You probably have entered the ip address in the host configuration twice. Once under the network address section and once below Management board. Please remove the second one.
Regarding fans, cpu and more: CheckMK has thousands of predefined services. If they show things like fans on a device depends on two things:

  1. The scan function of a check does detect that a check may be used on your device (for cisco most of the time these checks reads the systemtype and checks it there is “cisco” as part of the type name.
  2. The check tries to pull the snmp oid it knows for this function. If it could read it from the device the service will be added.
    So one of the conditions will probably not being matched on your device. Cisco SG300 is a “consumer product”. I work a lot with bigger Cisco systems, which support fan, power supply and many more in CheckMK, but I can’t say anything about the smaller Cisco switches.
    By the way: You can use the rule “Network interface and switch port discovery” to switch the interface names to “use description”. So you get rid of the numbered interface names.

Hi Udo

Thanks a lot for your reply!

I just tested the suggestion with switch interface name, however I’m not sure if I’m doing it correctly, here is what I configured:

Here is what I can view after applying, to me it seems like it did not change at all.

So essentially, you mean that there are many checks, but some of them may not match correctly to my switch because it’s a rather small-business / (consumer) switch?

So is there any reliable way to check for such unmatched checks?
Or is there any reliable way I can get “more” data ?

Check out this blog for the use of description or alias as service name for interfaces:

Exactly - but if you think this device should provide more data you can have a look at the repository from @thl-cmk with many network related checks - they are sorted by manufacturer or vendor independent.
CheckMK · GitLab
But i think for these budget switches with only limited management capabilities it will get complicated to find more checks.

Thanks @Yggy that worked wonders :slight_smile:

@andreas-doehler Thanks for pointing that out!

Yeah seems like my switch model is like a halfway version of CiscoIOS, so maybe those ones could work, or has @thl-cmk any specific checks from this (Cisco · GitLab) repo in mind which could (should) work on my SG300 Switch? I couldn’t really find an overview of the supported models.

Huge thanks !!

on my site there are no specific plugins for Cisco SG devices.

If your connected devices support CDP/LLDP you can try the CDP/LLDP inventory plugins. CDP cache or LLDP cache)

Cheers
Thomas

@thl-cmk Huge thanks!

The CDP Plugin seems to work, the LLDP seems not to be integrated into my switch according to the web.

I’ll maybe have to look into adding my own checks via OID from SNMP to get values like CPU, as they are indeed there.

Is there any good documentation on how to get started with writing own checks as simple as possible?

for single OIDs you can use Check SNMP Metric or check_snmp from @r.sander or if you want to write your own plugins you can start with the offical documentation Developing extensions for Checkmk

1 Like

@thl-cmk Huuuge thanks!!

I really tought this would get a big pain to write a custom plugin.

Any reason this is not specifically outline in the docs about SNMP plugin creation?

I was able to build those little checks:

Is there any way to get rid of the OID in the description?

Thanks a lot!

Well it is, I think.