Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
NMIS8 Email
Updated Aug 25, 2017

    NMIS8 Email

    Aug 25, 2017

      Email

      Configure the email section to allow NMIS to send out emails.  The settings are straight forward, the mail server to use, the domain the email is coming from, the email address the email should come from an and option to combine emails so notifications about devices are grouped instead of sent individually.

      • System -> System Configuration -> NMIS Configuration, choose "email" from the drop down.

      If you are using the local host (127.0.0.1) to deliver mail there are a couple of things to remember.  Make sure you have the mail daemon running, on CentOS the default is sendmail:

      sudo chkconfig --list sendmail # sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off # enable sendmail by default sudo chkconfig sendmail on # double check that it will be started sudo chkconfig --list sendmail # sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off # now start the daemon so we can use it right away sudo service sendmail start

       

      If you leave sendmail with it's default configuration it will need a DNS server to resolve domain names for it.  If you don't have DNS setup you will find that emails will be stuck in mail queues.  To check this you can try:

      # to see if there is mail in the mail queue sudo mailq # if you take a look at one of the pieces of mail you will likely find something like this (with your domain name instead of ours) (host map: lookup (opmantek.com): deferred)

       

      You have some options to fix this, here we show how to quickly setup the  dnsmasq daemon, you can also disable the DNS requirement and/or enable SMART_HOST, see http://stackoverflow.com/questions/43970/configuring-sendmail-behind-a-firewall).  As long as your server can currently resolve names (pinging a named host works, ie ping google.com) then this should fix the problem:

      yum install dnsmasq chkconfig dnsmasq on service dnsmasq start

      Send a test email

      The script <nmis_base>/admin/testmail.pl will send an email to the default user contact1.  If you would like to send a test email edit the contact1 contact and set the email address (if your not sure how to do this see the contacts section) .  Then run the script:

      /usr/local/nmis8/admin/testemail.pl # This script will send a test email to the contact contact1 user@opmantek.com # Using the configured email server 127.0.0.1 # 07:44:37 sendEmail to=user@opmantek.com subject=Normal Priority Test Email from NMIS8 # <snip>

      The emails should show up in the inbox you specified shortly after running the script.  If they don't try using the mailq command above, or check out http://www.electrictoolbox.com/show-sendmail-mail-queue/

        Community Home

        NMIS
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        Results will update as you type.
        • Introduction & Setup
        • Configuration
          • Additional CBQoS SNMP Collection
          • Advanced Configuration Options for Optimising NMIS8
          • Cisco SNMP Configuration and Verfication Process
          • Configuration Files for NMIS
          • Configuring Email Server for NMIS Notifications including Gmail server
          • Configuring NMIS for full LDAP Support
          • Configuring NMIS for Multi-Tenancy
          • Configuring NMIS to use Active Directory Authentication (ms-ldap or ms-ldaps)
          • Configuring NMIS to use Internal Authentication
          • Controlling the Collection of Interfaces, Adjustments and Overrides
          • Import Nodes into NMIS8 - bulk import and integration
          • Linking Nodes to other systems including Web, SSH, Telnet and whatever you need.
          • Making Sounds for Critical Events on the NMIS Dashboard
          • Managing Servers and Services with NMIS8
          • Modelling MIBS that use Indexes using the systemHealth section
          • NMIS8 - Installing NMIS in a Non Standard Location
          • NMIS8 Configuration
            • Adding and Editing a Device in NMIS8
            • Cisco router basic SNMP v1 or v2 configuration guide
            • NMIS8 - A Quick Getting Started Guide
            • NMIS8 Contacts
            • NMIS8 Email
            • NMIS8 Escalations
            • NMIS8 Groups
            • NMIS8 Nodes
            • NMIS8 Roles
          • NMIS8 Node Polling Configuration
          • NMIS9 Documentation
          • NMIS 8 - Configuration Options for Server Performance Tuning
          • NMIS 9 - Configuration Options for Server Performance Tuning
          • NMIS - Polling Policy - Configuring Variable Polling Polices
          • NMIS Configuration
          • NMIS Customising the Dashboard Layout - Save Windows and Positions
          • NMIS File Permissions
          • NMIS Threshold Configuration
          • SNMP Traps with Cisco and Other devices
          • Sync or copy NMIS data between two NMIS servers
          • User Management in NMIS
          • Using SNMPv3 with NMIS for Secure Network Management
          • Using Unique Identifiers (UUID) for NMIS Nodes
        • Features
        • Virtual Machine
        • How-To Guides
        • FAQ
        • Release Notes
        • Troubleshooting & Help
        • Opmantek Virtual Machine: Implementing SNMPv3 AES256 in the NMIS9 VM for Secure Network Management
        • NMIS8 VM Installation Guide
        • Virtual Appliance Maintenance: Updating Software
        • NMIS Device Troubleshooting Process
        • Automatically accept EULAs
        • Using NMIS to monitor services
        • Linux Hardening Guides
        • Solutions
        • NMIS9 - WMI Basic Configuration
        • NMIS9 - SNMP Basic Configuration
        • How to Configure WMI on the Windows Server
        • How to test WMI using the wbemtest
        • SNMP Trap and Rsyslog Setup for Ubuntu 20+
        • NMIS_Deps - NMIS Dependency Installer
        • NMIS9 RPC
        • Adding new devices for monitoring using the Administration GUI
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 12, "requestCorrelationId": "c06524bbbedb4584b4c9e512a765cac0"}