Multiple Email Addresses for Single User

I’m trying to have two email addresses for each user. I’m a heavy Nagios Core user and all the contacts are sysadmins that want both a text and email. The way I accomplished this (and hoping to do the same in CheckMK) is having comma separated emails in the nagios core config file. Some info changed to anonymize it. Example below (Some info changed to anonymize it):

define contact {
	contact_name		    50217
	use			                generic-contact
	alias			        Jane Doe
	email			        jane.doe@fakecompany.com,3218675309@1waysms.firstnet.com
}

In Nagios, this would send the notification email to all addresses in the contact, but checkmk seems to not allow this through the webgui.

Any help would be much appreciated!

Why not put the mobile number into the “pager” attribute of the account and use an SMS notification plugin to send the text message?

I was trying to avoid a few different things. 1. Im not familiar with SMStools and the agency I work for does not have an SMS gateway I can use. 2. I didnt want to make two accounts for each person (one with each differen email) simply due to management overhead.

if you want things to work exactly as it works in Nagios its not possible to do that in Checkmk, so you would need to compromise.

But I think you would need to do some work anyways, at least where I work we do not want all alerts to hit a mobile phone, for use we use SMS for escalation and for on-call. Regular alerts are delivered to our personal accounts (and email)

For on-call we have other rules in notifications, with a lot of rules for only production critical servers and services, exclude flapping services, services in scheduled downtime etc.

In notifications you can explicitly configure email addresses, so either you create separate users and contact groups for SMS and assign that to a notification rule or you add all email addresses to the notification rule directly. dont think there are much more options.

We use MS teams so we only need to configure one email address and everyone will get notifications, this works for Slack and other tools as well.

In notifications you can explicitly configure email addresses, so either you create separate users and contact groups for SMS and assign that to a notification rule or you add all email addresses to the notification rule directly. dont think there are much more options.

Thats was I was thinking I would have to do but figured I would see if there was a better way. Thank you both for your help!

I was under the impression any options that would increase administration was not acceptable, here it will increase administration so yea. good that you marked the solution.

You do not need SMStools or a gateway.

You need a notification plugin that takes the pager number and sends an email to number@1waysms.firstnet.com.

See the documentation Notifications - via Email, SMS, ticket system and more for how to create one.

1 Like