RE: linkup linkdown monitoring impacts the performance

"vishakha s" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi
I read this mail and tried to run with the notification.c you mentioned .It
is generating the trap .But how to use netlink for this .We have to write
some code for opening the socket and what you mean by subscribe to link
change messages.I am not much familiar with this topic .Can you please put
some more light on this exactly how to implement this netlink concept in
net-snmp.

Thanks in advance .
regards
Vishakha

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Peder
Chr. Norgaard
Sent: Friday, February 24, 2006 3:00 PM
To: Dave Shield
Cc: [email protected]; [email protected]
Subject: Re: linkup linkdown monitoring impacts the performance


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=k&kid0944&bid$1720&dat1642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [email protected]


-------------------------------------------------------
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&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.