>>>>> On Tue, 5 May 2009 09:47:02 +0200, "Fredrik Arnerup" 
>>>>> <[email protected]> said:

FA> We were thinking of moving away from pass and starting using the exec method
FA> instead because we don't want the sensor programs to know about OID:s, or
FA> anything about snmp.

That's definitely a benefit to the exec script.  They're very simply to
write and it doesn't require SNMP knowledge at all.
 
FA> So the question remains, what triggers snmpd to call these external
FA> programs?

A request to the subtree.  exec calls are cached for a bit, so that will
help you there.

FA> When I start snmpd it seems to call them once every 4 seconds, but after a
FA> while it is as often as 3 times a second, which is far to often.

The overhead you're seeing with execs is best avoidable by using a
better infrastructure.  I'm sorry if you'd have to recode things, but to
be honest the speed rates are something like this (worst to best):

- pass and exec
- pass_persist
- embedded perl
- C

-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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

Reply via email to