Re: exec question
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On 20/09/06, danny zhong <[email protected]> wrote:
> what i am trying to do at the moment is to run a remote site daemon program.
> this daemon program is used to receive video metadata from other computer.
OK.
Starting/Stopping that daemon is best handled by something other than "exec".
You don't say what O/S you're using - but if this is a Unix-like
system, then I'd suggest you write a simple "/etc/init.d/videodaemon"
script to start/stop the daemon.
That would give you much more flexible control than a purely
SNMP-based approach.
Use the existing startup scripts as a template.
> also i want to use net snmp to monitor this program is running properly.
That's different from actually starting the problem.
> Could you please give me some hints.
Have a look at the 'proc' directive (in snmpd.conf(5)).
This will report whether a particular process is running or not.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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