SNMP OID CheckMK ver 2.4

CMK version: 2.4 RAW
OS version: ubuntu 24.04

Hello,

I have just started using Checkmk and am in the process of setting up my environment.

In my setup, there is equipment with specific OIDs from which I want to retrieve data, but I cannot figure out where to configure this.

Under /lib/nagios/plugins there is only check_pollen; I cannot find “Checkmk extension packages” in the GUI.

I am using the RAW version.

Thanks.

Hi,

checkmk is shipped with MIB-2 and enterprises OID subtrees and uses the snmp agent to retrieve the data. You can set it in the host configuration view including the credentials for snmpv2/v3.

To monitor specific device data not covered by checkmk default subtrees, you can use the /omd/versions/$version/lib/nagios/plugins/check_snmp

Get the help for the options and you can set it over WATO:
Setup > Services > Other services > Integrate Nagios plug-ins
add a rule and use it as follows:
$USER1$/check_snmp $options

This will check only one oid, not sub-tree, so you need to use it with each oid.

Best regards

This menu option is only available in enterprise and cloud edition.
For RAW edition you need to use the “mkp” command line utility.

Not sure with RAW but agents are the same, no?
So you may run the nagios plugin on a remote system via the agent:

@andreas-doehler Can you explain your way via mkp CLI tool? Sounds interesting :wink:

Yes agents are the same, only you need to do the manual configuration compared to enterprise agent bakery.

For the mkp handling on the CLI you have the “mkp” command that can install, activate, deactivate & remove mkp packages.
I also use this commands often in bigger enterprise environments as the installation via GUI is painfully slow.

1 Like

Thank you for your response. We also use the MKP command-line tool quite frequently; however, I was considering whether it might be helpful to use the SNMP Nagios plugin in the RAW edition. If a community package exists to support a specific device, that would of course be ideal.

I have not previously worked with the RAW edition and was therefore a bit surprised to learn that pure Nagios plugins are not supported in the same way as in the other editions. Apologies for any confusion on my part.

regards

Mike

Ah ok - the pure Nagios plugins are supported or used the same way in all editions. I have no problem at RAW compared to enterprise systems with classic Nagios checks.

The only difference is the installation of the MKP with the new classic Nagios check if it is not existing already on the system. The included checks are the same in RAW and enterprise.

1 Like

Hello and thank you for the responses,

I have now installed and activated two plugins, which are visible in the GUI, but I am still missing the Nagios plugin that everyone is talking about.

I am unable to find it or enable it either via the command line or through the GUI.

The intention is to monitor only network equipment, so no agent on those devices.

If booth packages are enabled you should find these two entries under “Setup” –> “HTTP, TCP, email, …” –>

Here you can configure single metrics or some OIDs to fetch with classic check_snmp.

I have now found them, thank you very much.

Is it possible to manipulate these inputs so that the values retrieved via SNMP can be divided or multiplied?

If you want to make a calculation with two values fetched with check_metric then you should use.

Or if it gets more complicated you should consider to write an small SNMP check.
The syntax for check_calculate is not easy for RAW edition users as you cannot fetch the expression from the GUI like in enterprise.

Please have a look here.

A simple SNMP check with 2-3 values is not so hard to build.

Simple SNMP Checks.

or

1 Like

Thanks for the responses. It seems that I may need to create a custom plugin myself.

The issue I noticed yesterday, after receiving help to activate the plugin, is that certain values are not scaled correctly. For example, temperature values are received as 3750, which requires dividing the value by 100 to obtain a human-readable temperature of 37.5.

If you only need the division of the value, you can do this with the check_snmp_metric plugin.