2010/1/12 astal vista <[email protected]>: > I would like to know how to put a script in snmpd.conf file.
Why? What are you trying to do? The snmpd.conf file is designed to hold configuration settings. It wouldn't normally contain a script. There might be some possibilities, but it would be useful to know what you are trying to do here. > I want to monitor a service ...., along with theĀ PID and how much > memory it is occupying and all. The answer to this is the same as when you asked last week. Use the "proc" directive and/or walk the hrSWRunTable/hrSWRunPerfTable. > i can do with the command #ps -eo "%p %y %x %c %C" > > now i want to use the same command in snmpd.conf file > and some OID associated with it. > and retrive the info with snmpwalk command. If you want a direct equivalent of this ps command, then you are going to have to write this yourself. SNMP just lets you retrieve the basic information - it isn't concerned with how this information should be displayed. There's nothing you can do on the agent side to implement this directly. You'll need to write a dedicated client application to query hrSWRunName, hrSWRunPerfCPU and hrSWRunPerfMem Dave ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
