Consider using the perl module Net:Snmp. That offers you the possibility to get multiple values at a time. Multiple values from a single host that is, you'll still have to setup a connection per host. But that goes for snmpwalk too.
I also think there is a good chance it will be faster than calling the external snmpget program. Serge. -----Original Message----- From: Peter Kassies [mailto:[EMAIL PROTECTED] Sent: woensdag 22 augustus 2001 12:02 To: RRD Users (E-mail) Cc: Raymond Vermeer Subject: [rrd-users] increase performance Hello all, We are using RRD to monitor routers and solaris machines (via UCD-SNMP) it works great. We have written a few perl scripts to read the snmp variables into RRD. The Perl scripts are very simple, for example: $CpuIdle = join('',`$snmp_dir/snmpget -O s -p $port $ipaddress xpasswordx enterprises.ucd avis.systemStats.ssCpuIdle.0`); Problem: Currently monitoring about 50 hosts and the limited server we use (a 8 year old Sun Netra-i) has an avg load of 3. And is nearly passing its 5 minute round time to read the information from the routers and server. Question: I want to increase the speed of reading out the systems. Now I'm not the world greatest coder, but I think a lot of speed can be gained by NOT opening a seperate socket for every snmpcall. I can do this by using snmpwalk, storing the info in an temporary array and taking some of that information into RRD. Is this a good idea? Does anybody else have any ideas to increase the performance? Thanks, Peter Kassies ps I don't want to use cricket, had a look at it, but its to complicated for the average maintenance man on our site. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
