in reply to Execute a perl script fpr another Computer

In a fully blown production environment this kind of thing is normally handled by centralised monitoring system (ala NetX). You can then write your own SNMP traps in whatever language you like on the client machines.

When a threshold or condition is met your agent would then fire off a trap to the monitoring server, which would do any number of things from paging, emailing, displaying an alert on a display or whatever.

Having said all that, it can be quite tricky to set something like that up as it involves defining business processes, standards and may be just plain overkill.

In that case, I like the simplicity of tachyon's approach using a cgi.

  • Comment on Re: Execute a perl script fpr another Computer

Replies are listed 'Best First'.
Re: Re: Execute a perl script fpr another Computer
by fuzzycow (Sexton) on Jan 02, 2003 at 17:41 UTC
    On the client side you can just use Net::SNMP, it comes with a snmp trap example script.
    On the server side you will need something that is capable of dealing with SNMP traps.

    As far as I know Net::SNMP does not support being on the server-side of the SNMP trap.
    Does anyone have recommendations for freeware SNMP Server ?