I'm probably doing this the wrong way round, in which case I will happily stand corrected. First here's what I'm trying to do, then how I'm doing it.
I want to monitor the resources, but of only a subset of processes. So, I set up the monitor to watch a private OID, and then configured this OID to pass to my python script. The aim of the script is to translate this tree: hrSWRunName hrSWRunName.1 hrSWRunName.2 hrSWRunPerfCPU hrSWRunPerfCPU.1 hrSWRunPerfCPU.2 to privateOID hrSWRunName.2 hrSWRunPerfCPU.2 where the .2 process is the one I'm interested in. So my python script handles the get() and getnext() by talking back to the agent and filtering out unwanted OIDs, then returning the result back to the calling agent (snmpd) This seemed to work fine - and in fact does work fine when I run from the command-line. However when I make the call via snmpd (using snmpwalk, for example) the call back into the agent fails thus: File "/usr/local/lib/python2.4/site-packages/yapsnmp.py", line 257, in getnext return self.__synch_response__(pdu, printoid=1) File "/usr/local/lib/python2.4/site-packages/yapsnmp.py", line 216, in __synch _response__ raise GetError, errmsg [0]=yapsnmp.GetError [1]=couldn't obtain response Any ideas? Could this be achieved more elegantly without going out to an external script? Thanks dave Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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