Good morning, or afternoon depending on when you read this.
We have a remote server running syslog-ng, and with a script we generate custom traps to send to the SpectroServer. I have created and event in Spectrum that correlates to the trap OID's to generate events however currently we receive too many and I would like to use Event Rules in order to only generate alarms from the most important events.
Here is a snippet of the script used to generate the trap:
my $result = $session->trap(
-enterprise => '1.3.6.1.4.1.107.999',
-generictrap => 6,
-agentaddr => $SourceIP,
-specifictrap => 201,
-timestamp => 100,
-varbindlist => [
'1.3.6.1.4.1.107.999.1', 4, $DeviceName,
'1.3.6.1.4.1.107.999.2', 4, $mesg,
]
);
In Spectrum we receive something like this (I have obviously removed the delicate information) :
Severity : Normal
Date/Time : 08-Mar-2017 15:36:41 CET
Name : fqdn
Network Address : 0.0.0.0
Type : Cat38xxStack
Alarm Title : Host fqdn in vlan 100 is flapping between port Te1/0/10 and port Te2/0/9
Landscape : landscapelocal (0xf00000)
So we receive these traps in Spectrum but as they are all bundled under the same OID, I am trying to filter them with conditions in the Event Rules but have not found the right way to filter words from the message to generate separate alarms.
Could you advise which Event Variable Type would allow me to 'find' the word flapping in the Alarm Title in order to generate a Flapping alarm.
Thanks in advance,
Peter Fields