On Fri, 24 Feb 2006, Dave Shield wrote:

> On Fri, 2006-02-24 at 13:59 +0530, [EMAIL PROTECTED] wrote:
>
> > monitor  -r 5 -e linkUpTrap   "Generate linkUp" ifOperStatus != 2
> > monitor  -r 5 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
>
> >      Since this set-up makes frequently so many system calls...
> > it affects the devices thruput rate.
>
> This is not too surprising, since you have instructed the agent
> to monitor the interfaces every 5 seconds.   This is significantly
> more frequently than the default configuration (every 10 minutes).
>
> Try increasing the delay between monitor probes to something more
> reasonable, or omit the "-r 5" options altogether.
>

The monitoring solution is inherently a terrible inefficient way of
generating data for what is basically an alarm:  you face an unholy choice
between heavy load even when everything is OK, and large delay in being
told that something is wrong.

If you work on a system with "netlink" support (a linux system, for
instance) and don't shrink from a bit of C coding you can make a solution
that gives the alarms immediately, and costs absolutely nothing on
run-time.  The trick is to open a netlink socket and subscribe to link
change messages.  Then generate the alarms using the net-snmp C API
interface.  There is an example in one of the tutorials, and it works, I
have tried it. 100-200 lines of code.

You can either put this code into the master SNMP agent or tack it on
from a separate process using the AGENT-X interface.

best regards

--
Peder Chr. Nørgaard             Senior System Developer, M. Sc.
Ericsson Denmark A/S, Telebit Division
Skanderborgvej 232              tel: +45 30 91 84 31
DK-8260 Viby J, Denmark         fax: +45 89 38 51 01
        e-mail: [EMAIL PROTECTED]
(old e-mail 2000-2003: [EMAIL PROTECTED])
         (old e-mail 1992-2000: [EMAIL PROTECTED])
----------------------------------------------------------------
This communication is confidential and intended solely for the
addressee(s). Any unauthorized review, use, disclosure or distribution
is prohibited. If you believe this message has been sent to you in
error, please notify the sender by replying to this transmission and
delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption,
interruption, unauthorized amendment, tampering and viruses, and we
only send and receive e-mails on the basis that we are not liable for
any such corruption, interception, amendment, tampering or viruses or
any consequences thereof.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to