-->

DEVOPSZONES

  • Recent blogs

    How to setup Email Notification in CACTI

    How to setup Email Notification in CACTI 

    In this tutorial, we are going to show you how to configure Cacti to send e-mails when an alert trigger is activated.

    In our example, we are going to use Google Gmail as SMTP server.

    • Ubuntu 20.04
    • Cacti 1.2.20


    What is Cacti?

    Cacti is an open-source, web-based network monitoring and graphing tool designed as a front-end application for the open-source, industry-standard data logging tool RRDtool. 


    To configure e-mail as the delivery channel for messages, you need to configure Notification Setup for cacti.

    Configure E-mail Relay

    To Configure E-mail relay, you need following things:

    1.    A Gmail Account

    2.    Gmail App Password

    3.    Postfix setup

    §  Follow Below guide to Configure “Gmail App Password”

    https://www.devopszones.com/2020/03/how-to-create-use-app-passwords-in-gmail.html

    §   Follow Below guide to Configure “SSMTP”

               https://www.devopszones.com/2022/07/how-to-send-mail-through-gmail-on-ubuntu.html

    After Configuring App Password and SSMTP, we now need to configure e-mail Notification is cacti.

    On the Cacti dashboard screen, access the Configuration menu and select the Settings option.

    On the Settings screen, you need to access the Mail/Reporting/DNS tab.

     

    On the Emailing Options, perform the following configuration and click on the Save button.

    • Notify Primary Admin of Issues - Yes
    • Test Email - An email address to test if the Cacti email feature is working.
    • Mail Services - SMTP
    • Ping Mail Server - No
    • From Email Address - Your Gmail address
    • From Name - A name or a description.
    • Word Wrap - 120

    cacti-emailing-options
    cacti-emailing-options

    On the SMTP Options area, perform the following configuration and click on the Save button.

    • SMTP Hostname - smtp.gmail.com
    • SMTP Port - 587
    • SMTP Username - The username of the e-mail account that will send Cacti notifications.
    • SMTP Password - The password of the e-mail account that will send Cacti notifications.
    • SMTP Security - TLS
    • SMTP Timeout - 10

    cacti-SMTP-options
    cacti-SMTP-options

    On the Emailing Options, click on the Send a Test email option.

    Cacti will now try to send a test message.

    cacti_message-settings
    cacti_message-settings


    Here is an example of the message sent by Cacti.

    cacti-Test-Message
    cacti-Test-Message

    No comments