passive checks via smtp? or similar

Demetri Mouratis dmourati at cm.math.uiuc.edu
Wed Jan 12 00:37:28 CET 2005


On Tue, 11 Jan 2005, Matt Johnson wrote:

> Hi all,
>
> I'm trying to monitor a host the other side of a very
> restrictive firewall.
>
> The host *can* send mail via smtp to the nagios server
> (my side). Is there a simple (and not very secure) way
> of having nagios expect regular emails from a host, or
> it registers that host as unknown or down?
>
> I know this has flaws, but it *seems* to be all I
> have..?
>
> Thanks for any advice to think round this one.

I'm doing exactly this for the same reasons you mention above.  I figured
outbound SMTP would be perceived as innocuous by even the most anal (best)
firewall admin.

In my case, I have many distributed Nagios boxes talking to one central.
I use global service event handlers to send the data through SMTP after
first passing it to GPG for encryption.

The messages arrive at the central box and are GPG decrypted and dumped
into the nagios.cmd command pipe for processing.  I set up a single
freshness check on a service called distributed-nagios.  This way, a break
in the flow of SMTP messages will trigger an alert that indicates an
underlying problem as oppsed to a problem on the distributed side itself.

Hope that helps.
---------------------------------------------------------------------
Demetri Mouratis
dmourati at linfactory.com



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list