Re: Extending the agent using an extend script written in Python

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/7/23 Hamish Whittal <[email protected]>:
> I get the extend script to run via sudo and
> have tried and tested the "sudo ubc.py"

Running a script via "sudo" is fine for interactive use,
but isn't really appropriate for an extension script.
The first time the agent invokes it, surely sudo will
prompt for a password?

That's certainly the most likely cause of your problems.

Try tweaking your setup so that the script works
when run as a normal user, and see whether that
fixes the crash.

Dave

------------------------------------------------------------------------------
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.