In the past few weeks, I started working with NMIS. The application does a great job monitoring all sorts of devices. I decided to use the free version, so support is mainly based on whatever is found on the web or from NMIS’ email group.
It took me a few tries to enable email relay notifications in NMIS, and the few blogs that I found only touched on enabling email notifications using NMIS itself to deliver emails. In my case, I wanted to use my Exchange 2010 server to be the one responsible for delivering emails on behalf of NMIS.
Here’s what you’ll need:
- A working NMIS environment
- I downloaded the NMIS appliance and got the application to work in an hour.
- A working installation of a mail daemon in the linux box where NMIS is running
- For my environment I used sendmail, so most of these steps are related to sendmail.
- A working installation of Exchange server
Prepare Sendmail To Relay
- Logon to the linux server where NMIS is running from
- Go to /etc/mail directory
- run vi sendmail.cf
- You can use any file editor, I just prefer vi
- If using vi type: /DSsmtp
- / does a search for string DSsmtp
- Once that line is found, then you’ll want to change it to: DSsmtp.YourDomain.com
- Save the file and reload sendmail services
Prepare Exchange Server To Accept Relay
- Logon to your hub Exchange server
- Follow the next screenshot
Configure Emails, Notifications and Escalations in NMIS
It took me quite a bit of time to understand how notifications and escalations work in NMIS; there are many blogs that do a decent job explaining this topic, so I’m not going to go into details.
First, you have to setup Contacts in NMIS. NMIS creates some default contacts, so you can use one of these or create your own.
Note: Take a look at the field Contact, since I chose one of the default contacts created by NMIS, I’m using Contact1
Second, create your email notifications and escalations to send notifications to your contact.
Once again, I’m using a default notification and escalation. Notice that I’m using the same contact name, Contact1, to send notifications.
There is a catch though. This will send email for all Level 1 and Level 4 notifications for ALL devices that you have added to NMIS. Prepare yourself for all the spam!
Let this run for a few days, so you learn what each level of notification is. Basically, Level 0 is severity major, Level 1 is a severity warning; this is based on the email notifications I gathered in a week of spamming. I use this to create filtered notifications, read along.
When you add devices to NMIS, hopefully you created groups and added these devices to different groups. Also, when you add devices to NMIS, you have to indicate what type of device is, and these fields will allow you to filter your notifications based on groups, type, etc. Here’s an example.
In this example, I’m receiving text message notifications for routers in my DataCenter group that generate Level 0 and Level 1 events.