email Notification Messages - add description

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

email Notification Messages - add description

Post by jlee »

Hi,

This is probablay an easy answer.

But I can't find a document to show me how to do it.

In the email Notification Messages - How do I add description field into the the email alert?

Have tried

Description: %description%

but this does not work.

Thanks,
James
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: email Notification Messages - add description

Post by mguthrie »

Take a look at this doc and see if it has what you need:
http://library.nagios.com/library/produ ... -variables
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: email Notification Messages - add description

Post by jlee »

Great ,Thanks I will try it now.

I will let you know how it goes.

Thanks,
James
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: email Notification Messages - add description

Post by mguthrie »

Sounds good
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: email Notification Messages - add description

Post by jlee »

OK

I have tired the following and it not doing what I want it to do.

%hostalias% gives me the host name of the item.

But I want to add the description info all my host into the email Notification Messages. please see attached screen shoot.
How can I do this? There don't seems to be a Variable for it?

Any ideas?

Thanks,
James
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: email Notification Messages - add description

Post by mguthrie »

It's *supposed* to be the %hostalias% variable as you have it. Just to verify, the notification messages are per-user. Has this been updated for the user you're attempting to configure? If so, can you post the full email notification message that you have so far?
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: email Notification Messages - add description

Post by jlee »

Here is the settings i have in nagios:

-----------------------------------------

***** Nagios XI Alert *****
Sun Branding Solutions

Notification Type: %type%
Host: %hostname%
Description: %hostalias%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%

Login to the Nagios URL: %xiserverurl% to acknowledge or investigate further.

-----------------------------------------

But %hostalias% just gives me the host name of the item and not the Description of the item.

Also I notice that %hostname% does not work, if this helps

See attached

Thanks,
James
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: email Notification Messages - add description

Post by mguthrie »

But %hostalias% just gives me the host name of the item and not the Description of the item.
Still haven't quite figured out why that part isn't working...we'll have to test on our end and see what we can figure out.
Also I notice that %hostname% does not work, if this helps
That one should be %host% : )
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: email Notification Messages - add description

Post by jlee »

Just to confirm that %host% works :0)

Let me know how you get on with %hostalias%

Thanks,
James
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: email Notification Messages - add description

Post by mguthrie »

Can you post your contact config for this particular contact? You can access this by going to the Core Config Manager->Contacts, and then clicking the "Download" button. Go ahead and remove real email addresses for privacy.
Locked