Hi Javier,

Yes, of course.  I am using it to monitor a Cisco NM-AIC-64 alarm input
card.  This has 56 x discrete alarm inputs, and 8 analogue.  Each can be
programmed with its own level (between 1 and 4), which is sent in an SNMP
trap, and can also be polled.  The card also has 16 x relay outputs, for
which I could write an Action which can be triggered (could be used for
lamps, buzzers. bells etc).

When I get a chance to upgrade to 8.2 with the working Trap handlers, I will
also integrate that side of things.  My aim is that the Traps will provide a
quick alert to an alarm, but the poller will work as a backup route to raise
the required event in case the UDP trap doesn't make it to the NMS.

Apart from this particular interface, the multi-alarm backend could be used
to monitor anything which is able to provide some concept of alarm level
(Critical, Major, Minor, None etc), from a single OID, rather than a simple
binary up/down.

I also have another interface type defined, for Cisco VPDN tunnel sessions.
I am using this to monitor concurrent L2TP user sessions on a Broadband
aggregator.  I will contribute this too, as soon as I can get the aggregate
graph working correctly....  There may be another question coming your way
on that one!

Thanks,
Craig

----- Original Message ----- 
From: "Javier Szyszlican" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Sunday, May 29, 2005 8:41 PM
Subject: Re: [jffnms-users] Alarm / Event severity help


> Craig,
>
> Will you be willing to contribute the interface type that uses this ?
>
> Because I see no point in integrating this alone with nothing that uses
it.
>
> Thanks,
> Javier
>
> Craig Burton wrote:
> > Hi Javier,
> >
> > Thanks for the pointer - I've got it working now.
> >
> > To do it, I created a new backend based on the Alarm backend, called
> > multi_alarm.  Instead of taking just one Event ID as the initial
parameter,
> > it allows you to specify multiple events for the alarms, separated by
"|" -
> > e.g. "critical_alarm=12|major_alarm=13|minor_alarm=14".
> >
> > Depending on the alarm state passed to the backend, it will then raise
the
> > specified Event.
> >
> > I hit on a bit of a problem when it came to clearing the alarm again, as
the
> > standard Alarm plugin will only raise an event for an "Up" type alarm if
the
> > initial "Down" alarm was created by the same event.  As I am now using
> > different events, it failed to clear.
> >
> > I got around this by checking any existing alarm's event type against
the
> > possible values passed to the backend (i.e. any of the events which it
can
> > raise itself).  If it finds a match, the Up event is raised as the same
> > event type as the Down.  This allows the event to be created, and picked
up
> > by the consolidator to clear the alarm.
> >
> > However, to achieve this, I had to modify the have_other_alarm()
function in
> > lib/api.events.inc.php to allow it to take a 0 value as an event ID to
> > search for, and take this as a "don't care" value.  I also had to
include
> > the alarms.type field in the SELECT clause, and array of returned data.
> >
> > The other minor problem I found was with the parameters field in the
> > pollers_backend table.  With having to pass the possible alarms and
events,
> > the CHAR(60) field wasn't enough and the data was being truncated.  I
have
> > therefore modified the table to change the parameters field to a
> > VARCHAR(255).
> >
> > The new backend, modified "have_other_alarm()" function and SQL
modification
> > are in the attached files.
> >
> > I hope they might might find their way into 0.8.3.
> >
> > Cheers,
> > Craig
> >
> > ----- Original Message ----- 
> > From: "Javier Szyszlican" <[EMAIL PROTECTED]>
> > Cc: <[email protected]>
> > Sent: Saturday, May 28, 2005 4:19 PM
> > Subject: Re: [jffnms-users] Alarm / Event severity help
> >
> >
> >
> >>Hi Craig,
> >>
> >>The Event color is only tied to the event, not to the alarm state.
> >>
> >>So if you want another event color, use another "alarm" poller backend
> >
> > that uses
> >
> >>a new event as its parameter.
> >>
> >>Javier
> >>
> >>Craig Burton wrote:
> >>
> >>>Hello,
> >>>
> >>>I am polling an interface with JFFNMS which is able to report multiple
> >>>levels of alarm (rather than just up/down).
> >>>
> >>>I have defined poller group firstly containing a pollerwhich takes the
> >>>interface state (between 1 and 5), translates this into the Alarm
States
> >>>(1=aic_critical|2=aic_major) etc, and feeds into a buffer.
> >>>I then have another poller which takes the description of the alarm
from
> >>>the interface, and again feeds into a buffer.
> >>>The last poller item is the buffer poller, which takes the two values,
> >>>and outputs them into the Alarm backend, which raises an event against
> >>>the interface.
> >>>
> >>>This all appears to be working OK, as the Alam State is being correctly
> >>>reported by the event in the <state> field, and the description in the
> >>><info> field.
> >>>
> >>>However, the alarm severity against the interface is displayed as the
> >>>default severity of the Event, rather than the severity of the defined
> >>>Alarm.  Is this correct?  How do I get it to display with the correct
> >>>colour etc to represent the alarm level?
> >>>
> >>>Is this possible through a single Event, or do I somehow have to define
> >>>multiple events, and discriminate between the different alarm states in
> >>>the Poller items to determine which event to raise?
> >>>
> >>>I'm sure I've just missed something very simple here - I'd appreciate
it
> >>>if you could point me in the right direction.
> >>>
> >>>Thanks,
> >>>Craig
> >>
> >>-- 
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >>Javier Szyszlican, Project Leader, JFFNMS
> >>[EMAIL PROTECTED]
> >>
> >>I hope JFFNMS or I were helpful to you, if you
> >>can, please donate at http://jffnms.org/donate
> >>
> >>
> >>
>
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Javier Szyszlican, Project Leader, JFFNMS
> [EMAIL PROTECTED]
>
> I hope JFFNMS or I were helpful to you, if you
> can, please donate at http://jffnms.org/donate
>
>
>



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to