Notify-host-by-email through modem


#1

I want a way to send a email through a modem just in case the mail server goes down or the network switch nagios is connected dies. I am using wvdial to make the internet connection. What command would I used to make nagios dial onto the internet and then send a email?

thanks,


#2

I think it would be easier for you to set up a crontab with a shell script that would check for internet connection and if it isn’t present start it with wvdial. Although it would always stay connected that way until you disconnect it.

And I don’t know how would you send email if your mail server goes down. Maybe it’s the thing that you could also include in the script… Don’t know how to do it, this is a general idea how to set it up. I think that leaving that job to nagios would be much more complicated…