Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


net-snmp exec runs script over and over!

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
brendonc



Joined: 28 Jan 2008
Posts: 7

PostPosted: Tue Feb 05, 2008 2:35 pm    Post subject: net-snmp exec runs script over and over! Reply with quote

Greetings:

I set up a snmpdiskio stats under net-snmp i.e.

exec .1.3.6.1.4.1.2021.54 hdNum /usr/local/bin/snmpdiskio hdNum

etc. on our NFS servers, which have 41 disks (LUNs). I noticed a walk was extremely slow, so I put an echo at the top of the script to append to a log file each time it's run. It appears that net-snmp runs the script for EACH index plus a couple extra times (43 times). I've searched high and low and haven't been able to figure out why it's doing this. I've tested this on SLES 9 running net-snmp 5.1.3 and CentOS 4 running 5.1.2. Am I missing something? Why does net-snmp run this script over an over again? Anyone else experience this?

Brendon

UPDATE: net-snmp 5.4.1 using "extend" (exec has been deprecated) does not do this. I'd still like to figure out why exec on the older versions reruns the script over and over!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group