xymon mail service
list Milana Malkic
Hello,
I installed xymon server and xymon clients and everything works fine. Now I want to get mail notification
when something goes wrong. I've added the following lines to my /home/xymon/server/etc/alerts.cfg, but I don't get any mails.
HOST=user-310d13ea7868@xymon.invalid SERVICE=cpu,disk,memory,conn
MAIL user-728d365e48fa@xymon.invalid REPEAT=20 RECOVERED
In the /var/log/xymon/notifications.log I found :
Tue Apr 23 08:17:53 2013 user-5e85947b5cee@xymon.invalid (173.254.244.156) user-728d365e48fa@xymon.invalid[23] 1366719473 200
Tue Apr 23 08:37:56 2013 user-4120233e02e7@xymon.invalid (173.254.244.156) user-728d365e48fa@xymon.invalid[23] 1366720676 200 4449
I've done some researching and I found out that I need to setup mail server on the same machine where is xymon server. I don't know how to do that to work well with xymon, or what mail address should I put in alerts.cfg. I also don't know what mail server is required for xymon.
Please help me.
list Martin Ward
This is more of a generic problem, how to set up a mail server. At the least we would need to know what UNIX you are using (Solaris, RHEL, HP-UX) and what, if any, mail software you have installed (sendmail, Postfix, Qmail). |\/| -- Martin Ward Manager, Technical Services Service Operations DDI:+44 (0) 20 7863 5218 / Fax: +XX (X)XX XXXX XXXX / www.colt.net<http://www.colt.net/>; Colt Technology Services, Unit XX, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW, UK. Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50
▸
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Milana Malkic
Sent: 24 April 2013 09:15
To: xymon at xymon.com
Subject: [Xymon] xymon mail service
Hello,
I installed xymon server and xymon clients and everything works fine. Now I want to get mail notification
when something goes wrong. I've added the following lines to my /home/xymon/server/etc/alerts.cfg, but I don't get any mails.
HOST=user-310d13ea7868@xymon.invalid<mailto:HOST=user-310d13ea7868@xymon.invalid> SERVICE=cpu,disk,memory,conn
MAIL user-728d365e48fa@xymon.invalid<mailto:user-728d365e48fa@xymon.invalid> REPEAT=20 RECOVERED
In the /var/log/xymon/notifications.log I found :
Tue Apr 23 08:17:53 2013 user-5e85947b5cee@xymon.invalid<mailto:user-5e85947b5cee@xymon.invalid> (173.254.244.156) user-728d365e48fa@xymon.invalid[23<mailto:user-728d365e48fa@xymon.invalid[23>] 1366719473 200
Tue Apr 23 08:37:56 2013 user-4120233e02e7@xymon.invalid<mailto:user-4120233e02e7@xymon.invalid> (173.254.244.156) user-728d365e48fa@xymon.invalid[23<mailto:user-728d365e48fa@xymon.invalid[23>] 1366720676 200 4449
▸
I've done some researching and I found out that I need to setup mail server on the same machine where is xymon server. I don't know how to do that to work well with xymon, or what mail address should I put in alerts.cfg. I also don't know what mail server is required for xymon.
Please help me.
[Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
list Andrey Chervonets
You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix". Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/
list Milana Malkic
I am using Centos 5.7, and I have postfix installed. So, I need to configure postfix and create a mail account via postfix. That mail account I have to put in alerts.cfg. I hope that I understood you well. If I am wrong please correct me.
▸
To: xymon at xymon.com From: user-e7fb5c02322c@xymon.invalid Date: Wed, 24 Apr 2013 14:46:36 +0300 Subject: Re: [Xymon] xymon mail service You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix". Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/
list Andrey Chervonets
I have never used the postfix, but per postfix authors words " It is .... mail server that started life.... as an alternative to the widely-used Sendmail program." So this should work. Just try to test if You can send e-mail from OS with mail (or other) program then this should work. echo " test body" | mail -s " test subject " user-7f61532b70d4@xymon.invalid I suppose XyMon Server just tries to send mail using OS tools (like mail) or using direct communication over local 25 port. Just try and check XyMon logs for any problem.
▸
Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/ From: Milana Malkic <user-728d365e48fa@xymon.invalid> To: Andrey Chervonets <user-e7fb5c02322c@xymon.invalid>, "xymon at xymon.com" <xymon at xymon.com>, "user-2d33a6eb6a05@xymon.invalid" <user-2d33a6eb6a05@xymon.invalid>, Date: 24.04.2013 17:37 Subject: RE: [Xymon] xymon mail service I am using Centos 5.7, and I have postfix installed. So, I need to configure postfix and create a mail account via postfix. That mail account I have to put in alerts.cfg. I hope that I understood you well. If I am wrong please correct me. To: xymon at xymon.com From: user-e7fb5c02322c@xymon.invalid Date: Wed, 24 Apr 2013 14:46:36 +0300 Subject: Re: [Xymon] xymon mail service You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix".
list Bruce White
Also, since you are trying to send emails to a @hotmail account, even if you get postfix to accept html from Xymon, you will still need to get those emails to an email server that can talk with other email servers on the internet. That is the only way you'll get mail from your Xymon server all the way to Hotmail. .....Bruce From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Andrey Chervonets Sent: Wednesday, April 24, 2013 9:53 AM To: Milana Malkic Cc: xymon at xymon.com
▸
Subject: Re: [Xymon] xymon mail service I have never used the postfix, but per postfix authors words " It is .... mail server that started life.... as an alternative to the widely-used Sendmail program." So this should work. Just try to test if You can send e-mail from OS with mail (or other) program then this should work. echo " test body" | mail -s " test subject " user-7f61532b70d4@xymon.invalid I suppose XyMon Server just tries to send mail using OS tools (like mail) or using direct communication over local 25 port. Just try and check XyMon logs for any problem. Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/ <http://www.cominder.eu/>; From: Milana Malkic <user-728d365e48fa@xymon.invalid> To: Andrey Chervonets <user-e7fb5c02322c@xymon.invalid>, "xymon at xymon.com" <xymon at xymon.com>, "user-2d33a6eb6a05@xymon.invalid" <user-2d33a6eb6a05@xymon.invalid>, Date: 24.04.2013 17:37 Subject: RE: [Xymon] xymon mail service
Bruce White Senior Enterprise Systems Engineer | Phone: X-XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/ Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
▸
I am using Centos 5.7, and I have postfix installed.
So, I need to configure postfix and create a mail account via postfix.
That mail account I have to put in alerts.cfg.
I hope that I understood you well. If I am wrong please correct me.
To: xymon at xymon.com
From: user-e7fb5c02322c@xymon.invalid
Date: Wed, 24 Apr 2013 14:46:36 +0300
Subject: Re: [Xymon] xymon mail service
You need just regular sendmail working on the host.
If You can send e-mail from OS with mail or mails - then it should work
for XyMon too (sometimes You may also need to adjust sendmail
configuration for masquarading, SMTP gateway etc).
Contact Your system administrator or check web for "how to setup
sendmail on linux or unix".
<
list Martin Ward
Check if Postfix is running at all: $ ps -ef|grep postfix You will need to configure the main.cf file of Postfix to get it working but first, do you know what your smarthost is? If your Xymon server has full access to the Internet then there is no need but if not then you will need to route emails to a machine that knows how to deliver them. Your network admins should know this. This page give examples of Postfix configurations, I would recommend the "Postfix on a null client" and set the "relayhost" to whatever your smarthost server is.
▸
|\/| -- Martin Ward Manager, Technical Services Service Operations DDI:+44 (0) 20 7863 5218 / Fax: +XX (X)XX XXXX XXXX / www.colt.net<http://www.colt.net/>; Colt Technology Services, Unit XX, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW, UK. Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50
▸
From: Milana Malkic [mailto:user-728d365e48fa@xymon.invalid] Sent: 24 April 2013 15:36 To: Andrey Chervonets; xymon at xymon.com; Ward, Martin Subject: RE: [Xymon] xymon mail service I am using Centos 5.7, and I have postfix installed. So, I need to configure postfix and create a mail account via postfix. That mail account I have to put in alerts.cfg. I hope that I understood you well. If I am wrong please correct me. To: xymon at xymon.com<mailto:xymon at xymon.com> From: user-e7fb5c02322c@xymon.invalid<mailto:user-e7fb5c02322c@xymon.invalid> Date: Wed, 24 Apr 2013 14:46:36 +0300 Subject: Re: [Xymon] xymon mail service You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix". Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/ [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
list Milana Malkic
Thank you very much. This was very helpful to me. I will try to make this work and I will post the results. Regards Milana
▸
From: user-2d33a6eb6a05@xymon.invalid
To: user-728d365e48fa@xymon.invalid; user-e7fb5c02322c@xymon.invalid; xymon at xymon.com
Subject: RE: [Xymon] xymon mail service
Date: Wed, 24 Apr 2013 16:15:33 +0000
Check if Postfix is running at all:
$ ps –ef|grep postfix
You will need to configure the main.cf file of Postfix to get it working but first, do you know what your smarthost is? If your Xymon server has full access
to the Internet then there is no need but if not then you will need to route emails to a machine that knows how to deliver them. Your network admins should know this. This page give examples of Postfix configurations, I would recommend the “Postfix on a null
client” and set the “relayhost” to whatever your smarthost server is.
|\/|
--
Martin Ward
Manager, Technical Services
Service Operations
DDI:+44 (0) 20 7863 5218 / Fax: +XX (X)XX XXXX XXXX /
www.colt.net
▸
Colt Technology Services, Unit XX, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW, UK. Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50 From: Milana Malkic [mailto:user-728d365e48fa@xymon.invalid] Sent: 24 April 2013 15:36 To: Andrey Chervonets; xymon at xymon.com; Ward, Martin Subject: RE: [Xymon] xymon mail service I am using Centos 5.7, and I have postfix installed. So, I need to configure postfix and create a mail account via postfix. That mail account I have to put in alerts.cfg. I hope that I understood you well. If I am wrong please correct me. To: From: user-e7fb5c02322c@xymon.invalid Date: Wed, 24 Apr 2013 14:46:36 +0300 Subject: Re: [Xymon] xymon mail service You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix". Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/ [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
list Milana Malkic
Hello, this is what I have done about xymon mail service: I installed QMAIL, following the steps from http://lifewithqmail.org/lwq.html. Next, I installed mailx, and add my e-mail address in alerts.cfg in /home/xymon/server/etc folder. Now I get alerts when something happens to servers. Thank you for your help Regards Milana
▸
From: user-728d365e48fa@xymon.invalid To: user-2d33a6eb6a05@xymon.invalid; user-e7fb5c02322c@xymon.invalid; xymon at xymon.com Subject: RE: [Xymon] xymon mail service Date: Thu, 25 Apr 2013 16:26:46 +0200 Thank you very much. This was very helpful to me. I will try to make this work and I will post the results. Regards Milana From: user-2d33a6eb6a05@xymon.invalid To: user-728d365e48fa@xymon.invalid; user-e7fb5c02322c@xymon.invalid; xymon at xymon.com Subject: RE: [Xymon] xymon mail service Date: Wed, 24 Apr 2013 16:15:33 +0000 Check if Postfix is running at all: $ ps –ef|grep postfix You will need to configure the main.cf file of Postfix to get it working but first, do you know what your smarthost is? If your Xymon server has full access to the Internet then there is no need but if not then you will need to route emails to a machine that knows how to deliver them. Your network admins should know this. This page give examples of Postfix configurations, I would recommend the “Postfix on a null client” and set the “relayhost” to whatever your smarthost server is. |\/| -- Martin Ward Manager, Technical Services Service Operations DDI:+44 (0) 20 7863 5218 / Fax: +XX (X)XX XXXX XXXX / www.colt.net Colt Technology Services, Unit XX, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW, UK. Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50 From: Milana Malkic [mailto:user-728d365e48fa@xymon.invalid] Sent: 24 April 2013 15:36 To: Andrey Chervonets; xymon at xymon.com; Ward, Martin Subject: RE: [Xymon] xymon mail service I am using Centos 5.7, and I have postfix installed. So, I need to configure postfix and create a mail account via postfix. That mail account I have to put in alerts.cfg. I hope that I understood you well. If I am wrong please correct me. To: From: user-e7fb5c02322c@xymon.invalid Date: Wed, 24 Apr 2013 14:46:36 +0300 Subject: Re: [Xymon] xymon mail service You need just regular sendmail working on the host. If You can send e-mail from OS with mail or mails - then it should work for XyMon too (sometimes You may also need to adjust sendmail configuration for masquarading, SMTP gateway etc). Contact Your system administrator or check web for "how to setup sendmail on linux or unix". Best regards, Andrey Chervonets SIA CoMinder http://www.cominder.eu/ [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt