Hi,
I want to use a cache for my script extensions in snmp.
My setup looks like this:
/etc/snmp/snmpd.conf
rouser admin
override NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout.0 integer 300
override NET-SNMP-AGENT-MIB::nsCacheEnabled.0 integer 1
extend check_dummy  /var/checks/check_dummy
override NET-SNMP-EXTEND-MIB::nsExtendCacheTime."check_dummy" integer
300

check dummy looks like this:
#!/bin/bash
echo "Testtext"
echo $(date) >> /tmp/snmp.watch
exit 42

Starting snmpd and querying for the information works in general. Thing
is the cache seems to be limited to 5 seconds (according to the date
differences in /tmp/snmp.watch).
But I want snmpd to listen to the settings in the snmpd.conf, so the
cache should keep the results for 5 mins, but it doesnt, although the
settings (those overrides in the snmpd.conf above) are set in the
running snmpd.

Seems none run into this before, atleast I havent found anyone having
this issue.

Kind Regards, stas


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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

Reply via email to