1. What is SNMP?
SNMP (Simple Network Management Protocol) is a network protocol that allows you to monitor certain types of devices with Checkmk, devices that do not support the installation of a Checkmk agent. Devices such as routers, switches, firewalls, printers, appliances, UPSs, hardware sensors, and many others come already equipped with an alternative built-in monitoring interface from the manufacturer: an SNMP agent. Checkmk can use SNMP to monitor such devices.
This article describes how you can easily add and configure SNMP-enabled hosts for monitoring.
1.1. SNMP Instead of the Checkmk Agent
By the way, there are also SNMP agents available for Windows and Linux. However, it is not recommended to use them instead of the Checkmk agent. SNMP does not perform very well, and for monitoring, using SNMP agents the Checkmk server generally requires more CPU and memory per host than when it uses its own Checkmk agent. Furthermore, the data provided via SNMP is incomplete. In some cases, however, monitoring via SNMP may be useful in addition to the Checkmk agent. See the section on Adding devices to monitoring for more information on this topic.
If you just want to get started quickly with SNMP, the brief section on SNMP in Beginner’s Guide will likely suffice. This article, on the other hand, goes into much greater depth and covers all the details and special cases of SNMP monitoring with Checkmk.
Checkmk Ultimate allows for a second method of monitoring SNMP devices using the Checkmk Relay. Relays located on the same network as the SNMP devices to be monitored can also collect data from SNMP devices that the monitoring server cannot reach directly. |
1.2. Two possible communication directions
Checkmk uses a pull method for SNMP monitoring. SNMP terminology uses two terms for this that are unfortunately often confused: Query, and Request. The difference lies in the protocol level:
Query refers to the user’s perspective—that is, which data is to be retrieved: “Hey, SNMP client, get me all available data on the ports of the switch in the broom closet at 27 Kellerstrasse!” The term Query is not included in the SNMP specification, but it appears in the documentation of many tools.
Request always refers to the specific way—that is, how a device delivers data: “Hey, SNMP device, give me the available data for the OID
.1.3.6.1.2.1.1.1.0and then tell me the next OID under which you have data!” Technically, such a task is implemented, for example, as an SNMP GETNEXT request, which the SNMP manager sends to the device’s SNMP agent.
What is viewed as a single Query from the user’s perspective can result in one, several, or even thousands of Requests being generated, depending on what the device supports and how the SNMP library in use works internally.
In response to such a request, Checkmk or the relay sends a UDP packet (port 161) containing an SNMP request to the device, asking it to provide specific data. The device then responds with a UDP packet containing the data (or an error message).
But SNMP has a second variant: SNMP traps. These are unsolicited messages that devices send to configured addresses via UDP (port 162) using the push method. Traps have many disadvantages compared to pull-based queries, which is why they are not widely used for monitoring.
Traps are not reliable. UDP packets can be lost. There is no acknowledgment of receipt.
In most cases, only error messages are sent, but no recovery messages. As a result, the current status is unclear during monitoring.
If thousands of switches send traps simultaneously (e.g., when an important upstream service is unavailable to them), the trap receiver cannot handle the load and may crash. As a result, the monitoring system is overloaded precisely when it is needed most.
If the trap receiver’s IP address changes, all devices must be reconfigured.
Traps are difficult to test. Very few devices even have a function to send a generic test trap—let alone test actual error messages. It is therefore difficult to predict whether an important trap will be processed correctly when the first such event occurs after a few months or years.
If you still want or need to work with traps, the Event Console offers a solution: It can receive traps and generate events from them. The Checkmk Relay does not support receiving traps.
2. SNMP Versions
The SNMP protocol is available in various versions. These versions are not compatible with one another, so the monitoring system and the monitored device must always agree on which protocol version they are currently using. Checkmk supports versions v1, v2c, and v3. In practice, v2c and v3 is used in the vast majority of cases, v1 does not play a role anymore. Here is an overview of all relevant versions of SNMP:
| Version | Features | Checkmk | Practical implications |
|---|---|---|---|
v1 |
Yes |
Found only on very old devices (about 20 or more years old) that do not support v2c or whose v2c support is faulty. |
|
v2c |
Bulk requests, |
Yes |
This is the standard in practice. v2c is a 'light' version of v2, and the 'c' here stands for community, which serves as a password in SNMP. The 64-bit counters are essential for monitoring switch ports with 1 Gbit/s and higher. Bulk requests speed up monitoring by up to a factor of 10. |
v2 |
Security |
No |
Version 2 offers even better security options in addition to the features of v2c.
In practice, version 2 of SNMP is not used.
Checkmk therefore does not support this protocol version.
If you require security, use Version 3 instead. |
v3 |
Security, |
Yes |
Version 3 is used when SNMP traffic needs to be encrypted. With v2c and v1, traffic is transmitted in plain text—including the community string. In practice, Version 3 is less common because it requires significantly more processing power and the configuration effort is also considerably higher than with v2c. The contexts are a concept in which different information is visible within the same area of the SNMP data structure (OID), depending on the context ID. This is used, for example, when partitioning Fibre Channel switches. |
|
SNMPv3 is applied—provided you have enabled the appropriate rule—exclusively to those hosts whose configuration contains SNMPv3-style credentials. SNMPv2c is applied to those hosts for which the rule set Enable SNMPv2c for hosts has been enabled. By default, this rule set is enabled and applies to hosts that are not explicitly configured for SNMPv1. You can define exceptions by using a rule that takes precedence for other hosts. |
3. Preparing devices for monitoring
The first step is to prepare the actual device. Every device that supports SNMP has a configuration option for this somewhere in its setup interface. Make the following settings there:
Go to the configuration for active queries (SNMP GET). Unfortunately, every manufacturer uses its own terminology. Look for the settings that do not configure traps and mention SNMP community somewhere.
Enable SNMP for read-only (or readable) requests.
If your SNMP device restricts access to specific IP addresses: Enter the IP addresses of your Checkmk servers as allowed IP addresses. It may also be useful to include a test site of Checkmk here. Important: If you are running multiple redundant Checkmk servers, do not forget to also specify the IP addresses that will be used after a failover. Specifically with the Checkmk appliance, when operating in a cluster, it uses the IP address of the active node as the source IP address for outgoing connections—not the service IP address. In a distributed environment or when using the Checkmk relays, the IP address of the machine from which the device is being monitored is decisive.
Assign a community if protocol versions v1 and v2c are used.
The SNMP community is a type of password, with the difference being that SNMP does not use a username.
There is a convention that the community is set to public.
This is the default for many devices—including Checkmk.
Of course, one could argue that this is insecure and that a different community should be assigned.
However, with SNMP, the community is transmitted in plain text (except for SNMP Version 3).
Anyone who can eavesdrop on the packets can therefore very easily determine the community.
On the other hand, you have limited access to read-only, and in most cases, the information that can be retrieved via SNMP is not very sensitive.
Furthermore, using different communities across multiple devices makes management very cumbersome. After all, these communities must then be maintained not only in the devices themselves but also in the monitoring system. That is why, in practice, users usually use the same community everywhere-- or at least throughout a region, a department, a data center, and so on.
4. Setting up SNMP in Checkmk
4.1. Adding a device to Checkmk
Add the devices you want to monitor to Checkmk as hosts, as usual. If you have organized your folder structure so that each folder contains only SNMP devices, you can configure the remaining settings directly within the folder. This simplifies the process of later adding additional hosts and also helps to prevent errors.
In Checkmk Ultimate, in the Basic settings box, you can select the Checkmk relay to be used for monitoring the SNMP host if it is not directly accessible from the Checkmk server.
Now, in the host’s (or folder’s) properties, in the Monitoring agents box, set the Checkmk agent / API integrations option to No API integrations, no Checkmk agent:

In the same field, also enable the SNMP option and select SNMPv2 or v3 as the SNMP protocol. Selecting protocol version v1 is a last resort only for very old devices. You should only use this if you know that v2 is definitely not supported, or if the implementation on the device is defective (this can occur occasionally in practice). SNMP version 1 is particularly slow because it does not support bulk access—the speed difference is significant.
The third setting is called SNMP credentials. Here, you must first select a protocol version, since v2c and v3 differ from one another. We explain version 3 in below. If you do not have very high security requirements, v2c is the right choice; alternatively, you can place SNMP communication in a management VLAN to secure it. SNMPv2c requires you to enter the community discussed above.
There is an alternative method for configuring SNMP credentials if you cannot simply inherit them via your folder structure: the rule set Setup > Agents > SNMP rules > SNMP credentials of monitored hosts. This allows you to assign credentials based on host tags, labels, and similar properties. The general rule is that a community defined directly on the host or folder always takes precedence over the rules.
Occasionally, the question arises as to whether it would be possible—or even practical—to monitor Linux or Windows using SNMP instead of the Checkmk agent. The answer is very simple: yes, it is possible; no, it’s not advisable. Why?
The monitoring data provided by the SNMP agent is very limited. Therefore, you’ll need the Checkmk agent anyway for reasonably effective monitoring.
The SNMP agent does not provide any useful data that the Checkmk agent wouldn’t also provide.
The SNMP agent is more cumbersome to set up.
Last but not least, the SNMP protocol requires significantly more CPU and network resources than standard monitoring with Checkmk.
However, there are a few situations in which monitoring via SNMP in addition to the Checkmk agent may be useful. This can apply to both the Checkmk agent for Linux and for Windows. A typical example is when a tool provided by the server manufacturer is installed for a software or hardware component (such as a RAID controller) and only provides monitoring data via SNMP, as is the case with Fujitsu ServerView, for example. In this case, you can, of course, collect additional monitoring data via SNMP, but also be sure to use sufficiently long polling intervals. On Windows, it may also happen that polling via PowerShell is not possible—either due to the version of Windows being used or because there are no cmdlets available for the application.
If, in such a case, you want to monitor the Linux or Windows host using both the Checkmk agent and SNMP, proceed as follows: In the host’s properties, under the Setup menu, set the Monitoring agents, set the Checkmk agent / API integrations option to a value that includes the Checkmk agent (API integrations if configured, else Checkmk agent or Configured API integrations and Checkmk agent). In the same box, enable the SNMP option and set the value to SNMPv2 or v3 or SNMPv1, as described above:

Services that are available via both SNMP and the Checkmk agent (e.g., CPU utilization, file systems, network cards) are then automatically retrieved by the Checkmk agent rather than via SNMP. This automatically prevents duplicate data transmission.
SNMPv3
SNMPv3 provides encryption and true authentication. It also introduces the concept of contexts. This allows a device to display different information at the same location in the SNMP tree—depending on which context ID is included in the requests.
Security
SNMPv3 supports various security levels:
|
No strong user-based authentication, no encryption. The advantage over v2c is that the password is no longer transmitted in plain text but is hashed. |
|
User-based authentication with a name (Security name) and password, but still no encryption. |
|
User-based authentication as with |
You configure the security level in the same place where you set the community, i.e., either in the host properties or, as a rule, in SNMP credentials of monitored hosts. There, instead of SNMP community, select one of the three v3 levels and configure the necessary values:

Contexts
If you have a device that works with contexts, you will need two settings in Checkmk:
First, the device must be queried using SNMPv3.
Then you’ll need a rule in the SNMPv3 contexts to use in requests rule set. Here, select the check plug-in for which contexts should be enabled, and then select the list of contexts for which monitoring data should be retrieved.
Fortunately, situations where you need to work with contexts are very rare, because—unfortunately—the monitoring system cannot automatically recognize them. Manual configuration of the contexts is always necessary.
Using multiple contexts on the same OID branches results in only the data from the first context being retrieved—and services being created for it. If the data from such overlapping contexts is needed in full for monitoring, it is necessary to create one host per context. |
4.2. Diagnostics
Once you have finished configuring the settings, it’s a good idea to take a quick detour to the diagnostics page. To do this, click the Save & run connection tests action button.
Here is an example of the diagnostics for a switch. This tests various SNMP protocol versions simultaneously, namely:
SNMPv1
SNMPv2c
SNMPv2c without bulk requests
SNMPv3
A normal, modern device should respond to all four variants by providing the same data via each, although this may be limited depending on the configuration. The output looks like this, for example:

The four pieces of information displayed mean the following:
|
The device description as hard-coded by the manufacturer in the firmware. This text is very important for Checkmk for automatic service detection. |
|
This field is intended for specifying a contact person and is set by you in the device’s configuration. |
|
This field contains the device’s host name. This field is also configured in the device. The name has no further significance for monitoring and is displayed for informational purposes only. However, it is certainly useful and helpful if the host name matches the host name in Checkmk. |
|
This is a field for purely informational purposes, and you can enter any text you choose regarding the device’s location. |
4.3. Service configuration
Special considerations for SNMP devices
After saving the host properties (and, optionally, the diagnostics), the next step is, as usual, a Service configuration. There are a few special considerations here, because for SNMP devices, service detection occurs internally in a completely different way than for hosts monitored by the Checkmk agent. For the latter, Checkmk can simply examine the agent’s output and—with the help of the individual check plug-ins—identify the relevant points. With SNMP, a bit more work is required. Although Checkmk could perform a complete dump of all SNMP data (SNMP walk) during discovery and search for relevant information within it, there are devices for which a single discovery process would take several hours!
That is why Checkmk takes a more intelligent approach.
It first retrieves only the very first two data entries (OIDs) from the device: the sysDescr and sysObjectID.
This is followed by additional requests as needed.
Based on the results, each of the approximately 1,000 included SNMP check plug-ins then determines whether the device even supports that particular plug-in.
Checkmk refers to this phase as the SNMP scan.
As a result, the software outputs a list of check plug-ins that serve as candidates for the actual service discovery.
The actual detection process then takes place in a second step. The detected plug-ins use locally restricted SNMP requests to retrieve only the specific data they need and use this to identify the services to be monitored. The data retrieved is exactly the same as what will later be collected regularly for monitoring purposes.
For devices on the LAN, the entire process usually doesn’t take very long—taking several seconds is actually the exception. However, if you’re monitoring devices over WAN links with high latency, the entire scan can take several minutes. Naturally, the scan also takes longer for switches with hundreds of ports. It would be very inconvenient if you had to wait that long every time you opened the Services page.
Therefore, the setup normally skips the scan and performs detection using only the check plug-ins that are currently in use on the host. The SNMP walks are already available as cache files from normal monitoring, so detection doesn’t take long. While this allows you to find new entries from existing plug-ins (e.g., new switch ports, hard drives, sensors, VPNs, etc.), it won’t detect entirely new plug-ins.
The Rescan button forces an SNMP scan and subsequently retrieves fresh data via SNMP. This also allows services from completely new plug-ins to be detected. There may be a delay if devices respond slowly.
Standard services
No matter which device you’re monitoring via SNMP, the configuration should include at least the following three services:

The first service in the image is a check that monitors the network ports. The device must have at least one service—which must be active—otherwise, SNMP would not work. Generally, Checkmk is preset to include all ports that are active (operational status 'up') at the time of service discovery in the monitoring. You can configure this using the rule set Setup > Services > Discovery rules > Network interface and switch port discovery.
By the way, in the Beginner’s Guide, you’ll find a chapter with recommendations for Configuring Switch Ports.
The second service is called SNMP Info and displays the four most important pieces of information about the device: the values of the sysDescr, sysName, sysLocation, and sysContact fields.
It serves a purely informational purpose and is always OK.
And finally, there is the Uptime service, which shows you when the device was last rebooted. This service is always OK by default; however, you can set lower and upper thresholds for uptime.
5. Performance and Timing
It is not uncommon for a larger SNMP device to cause 20 or 50 times the fetcher utilization of a host monitored by a Checkmk agent. For this reason, it is important that you familiarize yourself with the performance of monitored devices, identify problematic devices, and proactively implement optimizations.
5.1. Inline SNMP
While Checkmk Community implements SNMP queries in the traditional way using the
snmpget and snmpbulkwalk commands, the commercial editions feature a built-in SNMP engine (Inline-SNMP) that executes SNMP queries very efficiently without creating additional processes.
This roughly halves the CPU load for SNMP processing.
And thanks to the shorter query times, the number of Checkmk processes required simultaneously is reduced, as is the memory usage.
The Checkmk Relay available in Checkmk Ultimate also supports both query methods.
If your Checkmk installation was set up using a very old commercial version or was migrated from Checkmk Community to a commercial version, switch your SNMP devices to Inline-SNMP.
Only in the case of defective implementations should you use the more robust snmpget or snmpbulkwalk.
5.2. Check intervals for SNMP checks
If you are reaching the limits of your resources, or if querying a single device takes longer than 60 seconds, you can increase the interval at which Checkmk contacts the host(s). Using the rule set Normal check interval for service checks, which you can apply specifically to the Checkmk services of hosts, you can extend the general interval from one minute to, for example, two, five, or ten minutes.
There is also a rule set specifically for SNMP checks: Fetch intervals for SNMP sections. This rule set allows you to reduce the interval for individual check plug-ins. It is important to note that you can never set it to be shorter than the interval specified for general monitoring by the Check_MK service.
Overall, however, we recommend configuring monitoring so that the default interval of one minute can be maintained, and the polling interval is increased only in exceptional cases for individual hosts or checks.
5.3. Timing settings for SNMP access
By default, Checkmk expects a response to an SNMP request within one second. In addition, the monitoring software resends each request multiple times before giving up. For devices that respond very slowly or are accessible via a very slow network, it may be necessary to change these parameters. You can do this using the Timing settings for SNMP access rule set:

Note that these settings apply to a single SNMP request. A complete query of a host consists of many individual requests. The total timeout is therefore a multiple of the settings specified here.
5.4. Bulk Walk: number of OIDs per bulk
By default, SNMP transmits ten responses in a single packet per GetBulk request.
Using the rule set Bulk walk: number of OIDs per bulk, you can test whether a higher value (such as 20 or 50) improves performance.
However, this will only be the case if large tables are being transferred to the host—for example, if it is a switch with a very large number of ports.
In practice, there may also be isolated cases where devices experience issues with the default value of ten OIDs per bulk. In such cases, it may be advisable to reduce the number to five, for example.
The fact that the performance of bulk requests drops off sharply when very large numbers of OIDs are transmitted is also due to the fact that SNMP fills packets with dummy data. For example, if 20 OIDs were requested but the device only has 17 to provide, three are filled in. With 50 OIDs, 33 would be padded. Another factor is the memory requirements of the device being queried. Less powerful devices, such as simple network printers, are more likely to handle smaller bulk sizes well.
5.5. Limit SNMP OID ranges
Checkmk normally operates in such a way that it always retrieves information about all switch ports, even if not all of them are being monitored.
This is actually a good thing, because it is usually faster—selective information cannot be retrieved using the efficient bulk requests.
Furthermore, from our perspective, it’s generally advisable to monitor all ports in order to identify defective ports or cables with high error rates.
If ports are not reliably UP, you can also configure the link status DOWN to be treated as OK.
However, there are isolated cases where switches have a very large number of ports and, for whatever reason, respond very slowly or process SNMP very inefficiently, making monitoring impossible when retrieving all port information.
For such cases, in the commercial editions there is the Bulk walk: limit SNMP OID Ranges rule set. This allows you to statically limit the list of queried data (e.g., ports). In the rule’s value, you specify which indices should be retrieved for each specific branch of the OID tree (Section name).
The identification can refer to generic or vendor-specific branches. The default setting for switch ports is generic and is called SNMP interface check with 64-bit counters (using v2c). The following example shows a setting in which data is retrieved via SNMP only for the first two ports:

This filtering takes place before service discovery and monitoring. Depending on the setting for Network interface and switch port discovery, this does not automatically mean that these two ports are actually being monitored. |
6. Troubleshooting
The first RFCs for SNMP date back to 1988. SNMP has been in widespread use since the mid-to-late 1990s. Especially in the early years, many manufacturers implemented the protocol only partially or incorrectly, and even today, compliance with conventions is not guaranteed for every device. Checkmk offers a range of measures to nonetheless extract monitoring data from such devices.
6.1. Defective SNMP implementations
There are devices where SNMP works to some extent, but certain parts of the protocol have not been implemented or have been implemented incorrectly. A particularly common problem is implementations that have been tested with specific query tools but not for conformance to the specification.
If problems occur with the commercial editions of Checkmk, one possible reason may be
that the higher-performance inline SNMP implementation—which is enabled by default there—relies more heavily on compliance with standards than snmpget.
If devices do not respond at all, or do not respond reliably, it sometimes helps to disable inline SNMP for the affected devices and thereby enable the somewhat more robust but significantly slower snmpget.
For command-line testing, with certain options the cmk command provides the additional option --snmp-backend, which accepts the parameters inline (uses Inline-SNMP), classic (uses snmpget), or stored-walk (uses a stored SNMP walks) as a parameter.
If the command-line test was successful, you can use the rule set Hosts using a specific SNMP backend to set the Use Classic backend setting for hosts that should permanently avoid using inline SNMP.
No response to the sysDescr query
The most important way to identify SNMP devices is the string in the sysDescr field.
If a device does not respond to a query for this OID, that device is considered dead.
It will also fail to return any results in service discovery unless you intervene with a special configuration:
For the affected hosts, create a rule under Setup > Agents > SNMP rules > Hosts without system description OID with the option Positive match (Add matching hosts to the set).
Checkmk will then simply assume that everything is fine and skip the sysDescr test.
Although check plug-ins that expect specific parts of this text will not be recognized, this is not an issue in practice, since the affected plug-ins were developed to account for this scenario.
SNMPv2c works, but bulk requests fail
Although some devices support version v2c (and will return a response to this in the diagnostic), the protocol lacks implementation of the GetBulk request command.
Checkmk uses this command to retrieve as much information as possible in a single request; it is therefore very important for performance.
On such a host, some simple SNMP checks will also work, such as SNMP Info or Uptime. However, other services are missing—in particular, the network interfaces, which should actually be present on every device.
If you do have a host where this is the case, you can operate it using v2c, but without bulk requests. For the affected hosts, use the rule Setup > Agents > SNMP rules > Disable bulk walks.
Devices that respond very slowly
There are devices where some SNMP queries take a very, very long time. This is sometimes due to faulty implementations. In such cases, it may help to switch back to SNMPv1 (which is usually much slower, but sometimes still faster than a faulty SNMPv2c). Before you try this, however, you should check whether the manufacturer provides a firmware upgrade that resolves the issue.
A second possible cause is that the device has a large number of switch ports and, at the same time, a slow SNMP implementation. If you only want to monitor a very small number of ports (e.g., just the first two), you can manually configure Checkmk to query data from individual ports only. For details, see the section on Performance.
6.2. Only the standard services are detected
If you add an SNMP device to monitoring and Checkmk only detects the services SNMP Info, Uptime, and the interfaces, there could be several reasons for this:
There are no plug-ins
Checkmk provides about 1,000 check plug-ins for SNMP devices, but of course even this list is never complete. As a result, it often occurs that Checkmk does not provide specific plug-ins for certain devices, and you can then only monitor the standard services mentioned above. Here are your possible options in such a situation:
You may find what you’re looking for on the Checkmk Exchange website, where users can publish their own plug-ins.
You can develop plug-ins yourself. You’ll find an article on the topic of Developing extensions (plug-ins) in this manual.
You can contact our support team or one of our partners and commission the development of the appropriate plug-ins.
Plug-in detection is not working
Sometimes, a newer firmware update on a device can cause Checkmk plug-ins to no longer recognize the device—for example, because text in the device’s system description has changed. In this case, the existing plug-ins must be updated. Create an SNMP-walk and contact our support team.
The device is not providing the required data
Some devices allow you to individually configure access to specific information areas in their SNMP settings. Your device may be configured to provide the standard information but not the sections for device-specific services.
For a few devices, you must use SNMPv3 and Contexts to access the desired data.
6.3. Devices that do not respond to SNMP at all
If not a single version of the SNMP protocol works, there are several possible causes:
The device is not reachable via IP at all. You can check this with a ping test.
The device does not support SNMP at all.
SNMP is not configured correctly (enablement, allowed addresses, community).
A firewall is blocking SNMP. You need to enable UDP port 161 in both directions.
7. Simulation via SNMP walks
7.1. Principle of the SNMP walk
In certain situations, it can be useful to have a complete dump of all SNMP data from a monitored device written to a file (an SNMP walk). You can use this file later to simulate monitoring of the device on another Checkmk server, even if that server has no actual network connection to the device.
We make extensive use of this functionality in support and development to improve existing plug-ins and develop new check plug-ins. This way our developers do not need access to your devices—only SNMP walks.
7.2. Creating a walk via the GUI
You can create an SNMP walk directly via the GUI. This function can be found in the Check_MK action menu for the service and also in the hosts' action menu (entry Download SNMP walk):

In the best-case scenario, creating the walk takes a few seconds, but a few minutes is not uncommon.
To prevent the GUI from possibly being blocked indefinitely by such a task, a timeout of 15 minutes is set by default. If necessary, you can increase this via Setup > General > Global settings > Execution of checks > SNMP walk download timeout.
Once the walk has been generated, you can download the file from the Result line.
7.3. Creating a walk using the command line
Alternatively, you can also create walks using the command line.
To do so, log in to the site from which the device is being monitored.
You can easily create the walk there using the command cmk --snmpwalk and specifying the monitored host (which must be configured for monitoring):
You can also use the -v switch to see more detailed output about the progress:
The file is then saved in the var/check_mk/snmpwalks directory and is named after the host.
It is a text file.
If you’re curious, you can view it using less, for example (press the Q key to exit the program):
The cmk --snmpwalk command has several other useful options:
| Option | Effect |
|---|---|
|
When Checkmk performs a walk on a host, it generally retrieves two subtrees from the SNMP data space. These are specified in the SNMP tree via so-called OIDs (object identifiers). These are |
|
This option works similarly to |
|
The |
|
The |
7.4. Using saved walks for simulation
If you now want to use this walk for a simulation on another (or the same) Checkmk site, place the walk file on that site in the var/check_mk/snmpwalks directory, naming it after the host.
Make sure the site user owns the file and that the permissions are set to 0600 (only the owner may read and write).
Now create a rule in the Simulating SNMP by using a stored SNMP walk rule set that applies to the host in question.
From now on, only the stored file will be used when monitoring the host. There will be no further network access to the host—except for the ping for the host check and any configured active checks. You can easily redirect these to the Checkmk server by setting the host to IP address family: No IP.
8. Files and directories
| Path | Description |
|---|---|
|
SNMP walk files are generated here and are also expected if you want to use them to simulate SNMP data. |
