Good morning everyone, 

I've got some troubles to check our Cisco Catalyst Stacks with Icinga2 and SNMP.
There are four Switches in a stack, everything is fine with the first member 
switch. Members 2-4 are making trouble.
First try gives me an " Reason: (noSuchName) There is no such variable name in 
this MIB.". 
Configuring the SNMP-Version to 2c in the check brings me a "Such Object 
available on this agent at this OID". Thats strange for me, I would have expect 
"No such object available (...)".

The cli brings:
snmpget -c <community> -v 2c <ip> .1.3.6.1.4.1.9.9.13.1.5.1.2.2006
SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.2006 = STRING: "Sw2, PS1 Normal, RPS 
Normal"

Thats what I want to see. These checks are working in Nagios. I've changed my 
check-command to use check_snmp from Nagios, same effect. Other plugins like 
"check_cisco_chassis" just checks the first member, too. 

Does anybody knows these effects? Where is my mistake?

This is my check-command for the second Powersupply:

apply Service "Power Supply 2 State" {
        import "generic-service"
        check_command = "snmp"
        vars.snmp_oid = .1.3.6.1.4.1.9.9.13.1.5.1.2.2006
        vars.snmp_communiy = "bla"
        vars.snmp_ereg = "Sw2, PS1 Normal, RPS Normal"
        vars.snmp_version = "2c"
        assign where match ("2960S-48*", host.vars.model) && match ("true", 
host.vars.stack)
        ignore where match ("false", host.vars.rps)
}

Icinga version is 2.4.1, installed on a CentOS 7 box from the Icinga Repo. The 
debug.log doesn't tell me any errors.

Check_snmp looks like:
/* check_snmp */
object CheckCommand "check_snmp" {
        import "plugin-check-command"
        command = [ PluginDir + "/check_snmp" ]
        arguments = {
        "-C" = "$check_snmp_community$"
        "-H" = "$check_snmp_address$"
        "-P" = "$check_snmp_version$"
        "-o" = "$check_snmp_oid$"
        "-r" = "$check_snmp_regex$"
        }
        vars.check_snmp_address = "$address$"
        vars.check_snmp_version = "2c"
        vars.check_snmp_community = "bla"
}

Thanks in advance.

Kind regards
Heiko
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to