Applications Systems

Process Monitor - SNMP error: Value was either too large or too small for a UInt32

The following error appears when attempting to use the Process Monitor - SNMP monitor: Value was either too large or too small for a UInt32. Upon analysis of the application's debug file, we see the following: DEBUG SolarWinds.APM.Probes.ProcessSNMPProbe - Received response for memory size - error code: 0 ERROR SolarWinds.APM.Probes.ProbeBase`1 - Unhandled exception. System.OverflowException: Value was either too large or too small for a UInt32.

First published date

10/11/2018 8:47 PM

Last published date

11/5/2021 6:30 AM

Overview

The following error appears when attempting to use the Process Monitor - SNMP monitor:

Value was either too large or too small for a UInt32.

Upon analysis of the application's debug file, we see the following log:

DEBUG SolarWinds.APM.Probes.ProcessSNMPProbe - Received response for memory size - error code: 0
ERROR SolarWinds.APM.Probes.ProbeBase`1 - Unhandled exception.
System.OverflowException: Value was either too large or too small for a UInt32.

Product section

Server Application Monitor

Cause

The total memory on the system exceeds the allowable size of the SNMP value that reports memory size.

If you look at an SNMPWalk against the target, you will see the following Total Memory value:

.1.3.6.1.2.1.25.2.2.0 = INTEGER: -1118446524

Resolution

Unfortunately there is no resolution as it is a limitation in SNMP.  

Possible workarounds:

  • Use the Service Status - SNMP monitor, which does not monitor process memory usage and therefore does not collect total memory on the system.
  • Use a custom VB, Powershell or Perl script to gather the status of the process and then use a Script Monitor to run the said script.
  • Poll the node using the Windows & Linux Servers: Agent option.