snmp script

2009-01-30 Thread f.mos...@inwind.it
i wrote a simple script #!/bin/sh echo .1.3.6.1.4.1.11821 echo integer echo 20 i insert in snmpd.conf pass .1.3.6.1.4.1.11821 /home/fede/snmp_script/prova and when i do snmpget -O n -v1 -c public localhost .1.3.6.1.4.1.11821 is's ok . 1.3.6.1.4.1.11821 = INTEGER: 20 now, if i want add anothe

RE: snmp script

2009-01-30 Thread Fernández Piñas , David
-Mensaje original- De: f.mos...@inwind.it [mailto:f.mos...@inwind.it] Enviado el: viernes, 30 de enero de 2009 15:23 Para: net-snmp-users@lists.sourceforge.net Asunto: snmp script i wrote a simple script #!/bin/sh echo .1.3.6.1.4.1.11821 echo integer echo 20 i insert in snmpd.conf pass

snmp script extend cache

2009-03-23 Thread stas.stelle.mailli...@gmail.com
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-S

Re: snmp script extend cache

2009-03-24 Thread Dave Shield
2009/3/23 stas.stelle.mailli...@gmail.com : > Hi, > 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

problems with using custom snmp script

2005-01-26 Thread Alex Ott
Hello all again I try to make snmp agent for use via pass option. I use net-snmp-5.2 from development branch of RedHat FC3. But i have one problem - when i insert pass .1.3.6.1.4.1.11821 /usr/local/dozor/smap/bin/monitor-snmp into snmpd.conf and restart agent, then i always get: DOZOR-MIB::doz

Re: problems with using custom snmp script

2005-02-14 Thread Robert Story
On Thu, 27 Jan 2005 10:04:14 +0300 Alex wrote: AO> I try to make snmp agent for use via pass option. I use net-snmp-5.2 from AO> development branch of RedHat FC3. AO> AO> But i have one problem - when i insert AO> AO> pass .1.3.6.1.4.1.11821 /usr/local/dozor/smap/bin/monitor-snmp AO> AO> into s