Change result of snmpoid

Hello there,

I have troubles with the status of my SNMPOID result.

I would like to show the result in percentage instead of just a number.

It is supposed to look like this:

This is how it looks like in the old Icinga1.

In icinga 2 it´s displayed like this:
icinga2

This is my configuration:

object Host “coolloopbotleft-Ventil” {
check_command = “snmp”
address = “coolloopbotleft.contoso.com
vars.snmp_oid = “1.3.6.1.4.1.2769.2.1.1.11.3.0”
vars.snmp_version = “2c”
vars.os = “haustechnik”
}

Thanks in advance for your help.

What command is executed for the “snmp” command?

I assume that the check running on Icinga 1 is not the same as the on used with Icinga 2. Am I correct there? You could just use the script from the Icinga 1 system, create a command for that in Icinga 2 and you are good to go.

Next assumption: check_command = "snmp" is the check_snmp script.
This script has these two options you can try:

"-l" = {
            description = "Prefix label for output from plugin"
            value = "$snmp_label$"
        }
"-u" = {
            description = "Units label(s) for output data (e.g., 'sec.')"
            value = "$snmp_units$"
        }
1 Like

Hello there,

thank you very much for your assistance. Now i have copy the old Perl Script. Now it is work.
The topic can be closed.