On Mon, 2005-11-21 at 10:48, Dave Shield wrote:
> On Fri, 2005-11-18 at 09:28 +0000, Mark Harper wrote:
> >        I am unable to set up my snmpd.conf proc command to
> > handle spaces in the path e.g.
> > 
> > /program files/<progname.exe> 
> 
> I presume you've tried the usual technique of quoting the
> PROC parameter?
>   It wouldn't surprise me if this didn't work, though it would
> certainly be helpful if it did (regardless of alternative ps
> commands).  I'd suggest that you log it as a bug, to ensure
> that this doesn't get forgotten.
> 
> 
> > Is there a way to configure NetSnmp to use a different ps?
> 
> See the definition "PSCMD" in the include/net-snmp/net-snmp-config.h
> file.
> 
> Dave

I did try to enclose the proc command path in quotes but this didn't
work. I will log this as a bug shortly.

I managed to change PSCMD within net-snmp-config.h from "/bin/ps -eW" to
"/usr/bin/ps.perl -eW" (make, make install) and this worked!! I think
this is a cheat though as net-snmp-config.h is generated from the files,
configure and configure.in and I'm not sure how to go about altering
these to generate the correct net-snmp-config.h. 

I'm happy for the moment though and thanks for your assistance.

Mark



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to