Page 1 of 2
email Notification Messages - add description
Posted: Mon Dec 05, 2011 3:56 am
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
Re: email Notification Messages - add description
Posted: Mon Dec 05, 2011 10:31 am
by mguthrie
Take a look at this doc and see if it has what you need:
http://library.nagios.com/library/produ ... -variables
Re: email Notification Messages - add description
Posted: Tue Dec 06, 2011 3:47 am
by jlee
Great ,Thanks I will try it now.
I will let you know how it goes.
Thanks,
James
Re: email Notification Messages - add description
Posted: Tue Dec 06, 2011 10:57 am
by mguthrie
Sounds good
Re: email Notification Messages - add description
Posted: Wed Dec 07, 2011 8:59 am
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
Re: email Notification Messages - add description
Posted: Wed Dec 07, 2011 11:15 am
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?
Re: email Notification Messages - add description
Posted: Wed Dec 07, 2011 11:24 am
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
Re: email Notification Messages - add description
Posted: Wed Dec 07, 2011 5:05 pm
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% : )
Re: email Notification Messages - add description
Posted: Thu Dec 08, 2011 11:03 am
by jlee
Just to confirm that %host% works :0)
Let me know how you get on with %hostalias%
Thanks,
James
Re: email Notification Messages - add description
Posted: Fri Dec 09, 2011 10:35 am
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.