This is a discussion on Re: How to send a mail if trapsnmpd is not responding - SNMP ; --===============1944622296== Content-Type: multipart/alternative; boundary="----=_Part_3707_32189442.1203345883538" ------=_Part_3707_32189442.1203345883538 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline OK, thanks Dave. On Feb 18, 2008 5:50 PM, Dave Shield wrote: > On 18/02/2008, Vishal N wrote: > > I want to send a mail if trapsnmpd ...
--===============1944622296==
Content-Type: multipart/alternative;
boundary="----=_Part_3707_32189442.1203345883538"
------=_Part_3707_32189442.1203345883538
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
OK, thanks Dave.
On Feb 18, 2008 5:50 PM, Dave Shieldwrote:
> On 18/02/2008, Vishal Nwrote:
> > I want to send a mail if trapsnmpd is not responding.
>
> Not responding to who?
> The agent, or something else?
> Responding to traps or informs, or what?
>
> It is not possible to do this for traps, since the application generating
> a trap has no idea whether it was received or not. That's a fundamental
> characteristic of SNMP traps.
>
> It would in principle be possible to do this for INFORM notifications,
> since these _are_ acknowledged. But the current Net-SNMP agent
> does not include anything of this sort - sending email is a much
> higher level activity than the normal operation of the agent.
>
> It *might* be possible to tweak the agent code to make it do this,
> but I'm not sure how straightforward it would be. The code isn't really
> designed with this sort of thing in mind.
>
> There certainly isn't any documentation for this - you'd be very much
> working on your own.
>
> Dave
>
------=_Part_3707_32189442.1203345883538
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
OK, thanks Dave.On Feb 18, 2008 5:50 PM, Dave Shield <.T.Shield@liverpool.ac.uk">D.T.Shield@liverpool.ac.uk> wrote:
On 18/02/2008, Vishal N <vishalnandanwar@gmail.com> wrote:Not responding to who?
> I want to send a mail if trapsnmpd is not responding.
The agent, or something else?
Responding to traps or informs, or what?
It is not possible to do this for traps, since the application generating
a trap has no idea whether it was received or not. That's a fundamental
characteristic of SNMP traps.
It would in principle be possible to do this for INFORM notifications,
since these _are_ acknowledged. But the current Net-SNMP agent
does not include anything of this sort - sending email is a much
higher level activity than the normal operation of the agent.
It *might* be possible to tweak the agent code to make it do this,
but I'm not sure how straightforward it would be. The code isn't really
designed with this sort of thing in mind.
There certainly isn't any documentation for this - you'd be very much
working on your own.
Dave
------=_Part_3707_32189442.1203345883538--
--===============1944622296==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1944622296==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
--===============1944622296==--