RE: How often is pass called?

2009-05-26 Thread Fredrik Arnerup
 What is doing the polling?

FA As far as I can tell, nothing.

 I disagree.  pass scripts shouldn't be run randomly.  Turn on the -d
switch to figure out what's doing the polling.

Ok, I can't make sense of the log though. Excerpt below.

 (disman event mib support could certainly trigger it too, of course)

We do use the monitor directive.

/Fredrik Arnerup




Received 1 bytes from callback: 39 on fd 83
: 10.


Sending 1 bytes to callback: 39 on fd 83
: 0F.


Received 1 bytes from callback: 1 on fd 4
: 00.

Received SNMP packet(s) from callback: 1 on fd 4
  GETNEXT message
-- SNMPv2-SMI::enterprises.666.3.3

Sending 1 bytes to callback: 1 on fd 4
: 00.


Received 1 bytes from callback: 39 on fd 83
: 10.


Sending 1 bytes to callback: 39 on fd 83
: 10.


Received 1 bytes from callback: 1 on fd 4
: 10.

Received SNMP packet(s) from callback: 1 on fd 4
  GETNEXT message
-- SNMPv2-SMI::enterprises.666.3.4

Sending 1 bytes to callback: 1 on fd 4
: 00.


Received 1 bytes from callback: 39 on fd 83
: 0F.


Sending 1 bytes to callback: 39 on fd 83
: 0F.


Received 1 bytes from callback: 1 on fd 4
: 0F.

Received SNMP packet(s) from callback: 1 on fd 4
  GETNEXT message
-- SNMPv2-SMI::enterprises.666.3.5





--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How often is pass called?

2009-05-18 Thread Wes Hardaker
 On Tue, 5 May 2009 16:04:47 +0200, Fredrik Arnerup 
 fredrik.arne...@edgeware.tv said:

 What is doing the polling?

FA As far as I can tell, nothing.

I disagree.  pass scripts shouldn't be run randomly.  Turn on the -d
switch to figure out what's doing the polling.

(disman event mib support could certainly trigger it too, of course)
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: How often is pass called?

2009-05-05 Thread Fredrik Arnerup
 FA Is is possible to control the interval between calls?

 Using the pass_persist method is a better way to accomplish external data
than pass for exactly that reason: it leaves the process running and just
interacts with it as needed.  You can even implement caching within it if
you want that as well.
 --
 Wes Hardaker
 Cobham Analytic Solutions

That means rewriting all our sensor programs.
We were thinking of moving away from pass and starting using the exec method
instead because we don't want the sensor programs to know about OID:s, or
anything about snmp.
So the question remains, what triggers snmpd to call these external
programs?
When I start snmpd it seems to call them once every 4 seconds, but after a
while it is as often as 3 times a second, which is far to often.

/Fredrik Arnerup



--
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How often is pass called?

2009-05-05 Thread Wes Hardaker
 On Tue, 5 May 2009 09:47:02 +0200, Fredrik Arnerup 
 fredrik.arne...@edgeware.tv 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: How often is pass called?

2009-05-05 Thread Fredrik Arnerup
 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.

That's good to know.

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

I disabled port 161 in the firewall, so the only things that could make
requests are the monitor statements.
But the poll rate is still increasing. Now it's almost 4 calls per second
(66 forks per second).

/Fredrik Arnerup


--
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How often is pass called?

2009-05-05 Thread Wes Hardaker
 On Tue, 5 May 2009 13:55:14 +0200, Fredrik Arnerup 
 fredrik.arne...@edgeware.tv said:

FA But the poll rate is still increasing. Now it's almost 4 calls per second
FA (66 forks per second).

What is doing the polling?  Make it increase it's timeout value (use
-t 10 if it's our command line tools).
-- 
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: How often is pass called?

2009-05-05 Thread Fredrik Arnerup
 FA But the poll rate is still increasing. Now it's almost 4 calls per 
 FA second
 FA (66 forks per second).
 
 What is doing the polling?  Make it increase it's timeout value (use -t
10 if it's our command line tools).

As far as I can tell, nothing.
All we have is a bunch of pass statements like pass .1.3.6.1.4.1.666.3
/usr/sbin/fan-sensor
and then some monitor statements like monitor -r 5 -u testUser
fanRotationTrap .1.3.6.1.4.1.666.3 3000 6000.
External requests are blocked in the firewall and nothing else on the
machine should be using snmp.

/Fredrik Arnerup


--
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How often is pass called?

2009-05-05 Thread Thomas Anders
Wes Hardaker wrote:
 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

Not to mention that exec is deprecated in favour of extend, but with more 
or less the same overhead.


+Thomas
 


--
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


How often is pass called?

2009-05-04 Thread Fredrik Arnerup
Hello,

 

We have a configuration where we have a number of sensor programs which are
called using the pass directive.

Snmpd was consuming quite a lot of cpu, so I checked the process with strace
and it seems each sensor value is being polled twice a second.

Since we have 18 sensor values, this means 36 forks per second.

 

Is is possible to control the interval between calls?

The 0.5 second interval seems to be regardless of whether clients are making
requests to the agent.

We have set traps with monitor on some of the sensors, but the interval
for those is 5 seconds.

 

Thanks for any help,

/Fredrik Arnerup

 

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How often is pass called?

2009-05-04 Thread Wes Hardaker
 On Mon, 4 May 2009 11:58:48 +0200, Fredrik Arnerup 
 fredrik.arne...@edgeware.tv said:

FA Is is possible to control the interval between calls?

Using the pass_persist method is a better way to accomplish external
data than pass for exactly that reason: it leaves the process running
and just interacts with it as needed.  You can even implement caching
within it if you want that as well.
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users