We use this script, it pulls all the environmentals off the switch even in
a stack

https://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-various-hardware-environmental-sensors/details

It works very well on Icinga1 and Icinga2

On Tue, Feb 9, 2016 at 7:33 AM, Jay Newman <[email protected]> wrote:

> If you are able to run an snmpwalk on the switches, I would recommend
> looking for minor differences in the oid's - if port numbering, chassis
> number etc. are even slightly different then the oid's will not match.
> Hope this helps.
>
> Jay
>
>
> > On Feb 9, 2016, at 7:27 AM, Wesemeyer, Heiko <
> [email protected]> wrote:
> >
> > I've put it in quotes, the result is the same.
> > What I dont understand is, that the oid for the first switch
> (".1.3.6.1.4.1.9.9.13.1.5.1.2.1006") is working.
> > I'll look into the snmp packets from the server, maybe there's something
> strange.
> >
> > Kind regars
> > Heiko
> >
> > -----Ursprüngliche Nachricht-----
> > Von: icinga-users [mailto:[email protected]] Im
> Auftrag von Barry Quiel
> > Gesendet: Dienstag, 9. Februar 2016 09:32
> > An: [email protected]
> > Betreff: Re: [icinga-users] SNMP on a Cisco Catalyst Stack
> >
> > Your oid is a string and should be enclosed in quotes:
> >
> > vars.snmp_oid = .1.3.6.1.4.1.9.9.13.1.5.1.2.2006 => vars.snmp_oid =
> ".1.3.6.1.4.1.9.9.13.1.5.1.2.2006"
> >
> >
> >
> >> On 2/8/2016 11:40 PM, Wesemeyer, Heiko wrote:
> >> 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
> >
> > _______________________________________________
> > icinga-users mailing list
> > [email protected]
> > https://lists.icinga.org/mailman/listinfo/icinga-users
> > _______________________________________________
> > icinga-users mailing list
> > [email protected]
> > https://lists.icinga.org/mailman/listinfo/icinga-users
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to