Re: RPC or SNMP: that is the question..

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, 2005-11-08 at 22:43 -0600, Matthew Boehm wrote:
>   The only other option I could think of was to add in SNMP code into the
> app.  Then I could query the app directly and execute functions inside the
> app.  My only problem with this solution is that I would not be able to
> re/start an instance of the app. If the app isn't running, then the SNMP
> code can't respond to queries.

The usual SNMP-based approach would be to run a separate SNMP agent,
monitoring your application from outside.  That way, you could not only
detect whether it was running or not, but also re-start it if necessary.
The Net-SNMP agent already includes much of the necessary control
framework.  Have a look at the "proc" and "procfix" directives.


That's not the only possible approach, of course.  The dedicated monitor
you describe could work in much the same way, and a single monitor
should be able to watch (and restart) multiple instances of your
application.   This could even serve as the way that the applications
are started in the first place.

Or you could set up a regular cron job to check that all the necessary
servers are running, and restart them if necessary.

Or Les' suggestion of external scripts, contacting over ssh.


The thing that all these approaches have in common, is that the
monitoring is done *external* to the applications themselves.  That's
pretty much a necessity if you need to be able to restart the app
when it falls over.

Dave


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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.