Send Mail Notification From Zabbix Server Using Gmail7 min read
Zabbix server is strong monitoring tools. I want to show how to send mail notification from zabbix server using gmail. Get notification from zabbix server using gmail such as services server RAM status, hard disk status, ping status, server restart, cpu status, mysql status etc. Now I have to configure send mail notification from Zabbix Server using gmail.
★ How to Install And Configure Zabbix Agent on Ubuntu
★ Monitor mysql Service In My Zabbix Server
N.B. Must be active your gmail account less secure apps on. Goto Less Secure Apps then click ON.
Example below:
Otherwise you can’t get any mail notification.
Step #01: At first login your Zabbix server using zabbix default user name and password.
Zabbix user name : Admin [must user capital ‘A’]
Default password : zabbix
Zabbix Dashboard as like below image.
Step #02: Goto Administration / Media Types click Email all settings such as below.
Name : ‘Email’
Type : ‘Email’
SMTP server : ‘smtp.gmail.com’
SMTP server port : ‘25′
SMTP hello : ‘gmail.com’
SMTP email : ‘alaminmonirbd@gmail.com’
Connection security : ‘STARTTLS’
SSL verify peer : ‘N/A’
SSL verify host : ‘N/A’
Authentication : ‘Normal password’
Username : ‘alaminmonirbd’
Password : ‘your_gmail_password’
Enabled : ‘Click check mark’
Then click Update
Step #03: Goto users menu on the Administrator down tab then click Admin user.
Now show three tab such as User, Media and Permission. Click Media tab then click Edit. Open popup window as like below image.
Step #04: Select Type, Send to, When active, Use if severity (Not classified, Information, Warning, Average, High, Disaster etc.)
Enabled (Must click check mark). Then click Update.
Now create trigger for ping test your zabbix client machine.
Click Configuration / Hosts then click Triggers. Now create new trigger for ping test click on right corner on the hosts. Type any name (ping test), Severity (High), Expression {YourHostName.agent.ping.nodata(1m)}=1
another settings are all right. Got bottom now click Add button. Successfully created ping test trigger for zabbix client machine.
Step #05: Now goto Configuration / Actions on Click Report problems Zabbix administrators.
you can see on right status is enabled. Open three tabs Actions, Operations and Recovery Operations. The you will see as like image below.
- Actions (Actions setting is host trigger settings)
- Operations and (Operations settings when host may be problem then active this option)
- Recovery Operations (Recovery Operations settings when may be host resolved then active this optin)
- Configure Action feature below:
Create new condition select Trigger type here to search on the right side Select then show will popup window select group on the added my client machine and select Host on the right side client host name.
Now see all trigger on the bottom side. Click Ping Test then click Add then click Operations tab for send custom message for mail notification. Operations feature is trigger status problem and another option Recovery operations feature is trigger status ok.
- Configure Operations feature below:
Operations Edit option as like below image.
Carefully check Operation details such as
- Operation details
- Operation type Send message
- Send to User groups Zabbix Administrator or Add another user
- Send only to Email
Then click Update not button.
- Recovery Operations configure below
Click on right tab Recovery Operations then click operations Edit and check details below:
- Operation details
- Operation type Send message
- Send to User groups Zabbix Administrator or Add another user
- Send only to Email
Step #06: Check notification for created trigger. Goto Monitoring / Triggers and select your host on the right corner.
Show image as like image below:
Step #07: All configuration are ready now check this status.
Two step check this status:
- Stop Zabbix agent my client machine.
I am going to Zabbix client machine and stop agent service. Wait for few minute see red mark on trigger status now going to your gmail inbox and get problem status.
- Start Zabbix client machine.
Now start Zabbix agent service wait for few minute see green status then goto your mail inbox.
If face any problem then see my YouTube video and Subscribe my channel. Please subscribe my channel for more update.
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!
I have configured all the things which you have mentioned in this document, but I’m not getting any alert from Zabbix to my mail id.Can you please help me on this?
Let me know that I need to install any mail server agent like Sendmail or anything to do this? or from Zabbix inbuilt have the capability to trigger the emails?please clarify me on this?
Goto post top and read again. I think solved it.
N.B Must be google less secure apps is on.
Thanks.
Great article. Everything is simple and clearly described
Thanks.