X

Send Mail Notification From Zabbix Server Using Gmail

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
  1. Operation type Send message
  2. Send to User groups Zabbix Administrator or Add another user
  3. 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
  1. Operation type Send message
  2. Send to User groups Zabbix Administrator or Add another user
  3. 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.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.

View Comments (4)

  • 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?

Leave a Comment