RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Robert Fitzpatrick
On Tue, 2006-01-31 at 21:38 -0600, C. Bensend wrote: His mailserver is on the Nagios host. It uses amavisd. He can monitor it via check_tcp, but if amavisd is not functional, _he's not going to get the email alert._ Because his email isn't going to work. So I think what he's asking, is

Re: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Toto Capuccino
I use nullmailer but it cant run on the same box as the one that runs amvisd2006/2/1, Robert Fitzpatrick [EMAIL PROTECTED]: On Tue, 2006-01-31 at 21:38 -0600, C. Bensend wrote: His mailserver is on the Nagios host.It uses amavisd. He can monitor it via check_tcp, but if amavisd is not functional,

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread C. Bensend
Yes, you got it, but how do I send an email alert sent directly to a remote SMTP gateway? That all depends on your mailserver setup. Is there any way you can bypass the spam/anti-virus to send mail directly? Or, it could certainly be done easily enough with a shell script that connects to a

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Steve Shipway
He can monitor it via check_tcp, but if amavisd is not functional, _he's not going to get the email alert._ Because his email isn't going to work. ... Yes, you got it, but how do I send an email alert sent directly to a remote SMTP gateway? If you are using amavisd, then I take it you

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Jim Pye
Guys Jumping in here. I use a PERL script called sendEmail available from: http://caspian.dotconf.net/menu/Software/SendEmail/ It works from the command line and if you are interested I can give you the nagios command .cfg entries to add. It works on Linux, Windows and being PERL I modified

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Robert Fitzpatrick
On Wed, 2006-02-01 at 14:32 -0600, C. Bensend wrote: Yes, you got it, but how do I send an email alert sent directly to a remote SMTP gateway? That all depends on your mailserver setup. Is there any way you can bypass the spam/anti-virus to send mail directly? Or, it could certainly be

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread C. Bensend
Thanks, how do I get Nagios to run my shell script in place of the normal notification? RTM. :) Hint: misccommands.cfg -- 'And you've got 10 gig of files to put through our mail system?' I ask, squeezing my mouse in a non-approved manner. -- BOFH, 2006-01

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Robert Fitzpatrick
On Thu, 2006-02-02 at 09:51 +1300, Jim Pye wrote: Guys Jumping in here. I use a PERL script called sendEmail available from: http://caspian.dotconf.net/menu/Software/SendEmail/ It works from the command line and if you are interested I can give you the nagios command .cfg entries to

RE: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Jim Pye
No probs In the misccommands.cfg I added the following # 'host-notify-by-sendEmail' send host email via PERL script define command{ command_namehost-notify-by-sendEmail command_line/usr/local/bin/sendEmail -f [EMAIL PROTECTED] -t $CONTACTEMAIL$ -u Host $HOSTSTATE$ alert

Re: [Nagios-users] Monitoring a mail server

2006-01-31 Thread Todd Barbera
Maybe you should try check_proc instead. When you say localhost, I'm assuming you are referring to your Nagios server. Todd - Original Message - From: Robert Fitzpatrick [EMAIL PROTECTED] To: Nagios nagios-users@lists.sourceforge.net Sent: Tuesday, January 31, 2006 8:00 PM Subject:

RE: [Nagios-users] Monitoring a mail server

2006-01-31 Thread David Johnson
Depending upon what you want to check, there are many solutions. I'm not familiar with Amavisd, so I can't say for certain. However it seems that you may to look at: check_smtp, check_mailq, check_proc, and check_tcp (among others). You can even write your own quickly. I'm not sure I understand,

RE: [Nagios-users] Monitoring a mail server

2006-01-31 Thread C. Bensend
Depending upon what you want to check, there are many solutions. I'm not familiar with Amavisd, so I can't say for certain. However it seems that you may to look at: check_smtp, check_mailq, check_proc, and check_tcp (among others). You can even write your own quickly. I'm not sure I