From: Ken C. <kco...@ry...> - 2016-07-20 12:35:26
|
I too have wanted to do the same and like you didn't get too far. I ended up writing an external script which is basically does SNMP polls for ifAlias, ifDescr, & ifOperStatus and grep out whatever I'm interested and trigger on link down and then update the Xymon display. On Jul 20, 2016 3:18 AM, "Oliver" <r.o...@we...> wrote: > Dear All, > > can you please help me to form a exception template for cisco switches? > I'm looking for a template which should show all interfaces in the list > (if_stat column), but xymon should only trigger alerts, if one of the > uplink interfaces goes down. All other ports are client access ports and > if someone powers off his computer, the port should not become red in > xymon. > > I tried a lot of regex, but had no success. Unfortunately I'm not very > familiar with those expressions, so I'm forced to approach using trial > an error. So here is, what comes next to that, what i want, but as > mentioned, it does not work: > > ifAliasBox : alarm : .*uplink.* > ifAliasBox : noalarm : ((?!uplink).)* > ifName : ignore : Nu.+|Vl.+|Fa.+ > > > A bonus feature would be, if the exclude statement could be multiple > values, e.g.: > > ifAliasBox : noalarm : ((?!uplink|Stack).)* > > > These are my tries which did not work: > > ifAliasBox : noalarm : ((?!uplink).)* > ifAliasBox : noalarm : .*((?!uplink).)* > ifAliasBox : noalarm : .*((?!uplink).).* > ifAliasBox : noalarm : (?:(?!uplink).)* > ifAliasBox : noalarm : ^((?!uplink).)*$ > ifAliasBox : noalarm : ^(?:(?!uplink).)*$ > ifAliasBox : noalarm : ^(.(?!" + uplink + "))*$ > ifAliasBox : noalarm : ^(.*(?!" + uplink + "))*$ > > Thank you for your help! > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support > |