On Mon, Dec 27, 2004 at 06:09:38PM +0530, Mohan Srinivas wrote:
| sh .1.3.6.1.4.1.2021.58 qmail-queue-size /sbin/qmail-queue-size
|=20
| So snmpwalk .1.3.6.1.4.1.2021.58 will run the script and get you the
| current queue size(in this case)... There is an exec option in place of t=
he
| "sh" as well.=20
|=20
| I was looking at passing the PID of the process using this option as part=
of
| my snmpget request but just that I don't know how and googling did not
| help...=20
If I understand the problem correctly, you are facing problems, cos the
commands that can be executed by snmpd doesn't take arguments. You
could, probably, write a script which obtains the PID, and does whatever
you wish to do. Put that, in /sbin or wherever, and call it. Would that
resolve the issue?
Regards,
--=20
Chirag Kantharia, puggy.symonds.net/~chyrag/
|