Host extended notes
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Host extended notes
We are using a url in the host/service extended notes, to get easier to the specific doumentation page for the alert/notifiaction.
How would I separate more information in this notes section, lets say after the url I wanted to also enter a phone number to call etc.
would that be:
url; other content?
Thanks a lot
How would I separate more information in this notes section, lets say after the url I wanted to also enter a phone number to call etc.
would that be:
url; other content?
Thanks a lot
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Host extended notes
Take a look at the Service Notifications and Host Notifications columns in https://assets.nagios.com/downloads/nag ... olist.html
$CONTACTPAGER$ would seem the obvious fit for a phone #, if you aren't already using a page #: https://assets.nagios.com/downloads/nag ... ntactpager
$CONTACTPAGER$ would seem the obvious fit for a phone #, if you aren't already using a page #: https://assets.nagios.com/downloads/nag ... ntactpager
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: Host extended notes
thanks a lot, but is there no easier way to just use the notes section I already use in centreon and add some more information after the url
right now I have a url to our online documentation, but when oncall we would like the tech to be able to also see the isp and support number to safe time and dial directly from the notification email
thanks
right now I have a url to our online documentation, but when oncall we would like the tech to be able to also see the isp and support number to safe time and dial directly from the notification email
thanks
Re: Host extended notes
You cannot use "url; other content" in the "notes_url" directive, as this is going to break the URL. However, you could place your other info, e.g. a phone number in the "notes" directive.
Example:
In the GUI:
Example:
Code: Select all
define host {
host_name localhost
...
notes 651-204-9102
notes_url https://support.nagios.com/forum/
...
}
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: Host extended notes
I would like to have this in the email notification showing up behind or below the link to the monitoring section in the documentation.
So the oncall tech can see right away the host/modem/gateway etc., isp and contact number/support and hits call even in the car/train etc.
See attached screenshot
Thanks
So the oncall tech can see right away the host/modem/gateway etc., isp and contact number/support and hits call even in the car/train etc.
See attached screenshot
Thanks
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: Host extended notes
I might be able to use url for the documentation link and the notes section for ips, name, number etc?
Thanks
Thanks
Re: Host extended notes
You are using a URL in the "Notes" field ("notes" directive). I would recommend adding the URL to the "URL" field ("notes_url" directive). This way, you could add a string to "notes", e.g. a phone number without breaking the URL (as it is defined in a different field).I would like to have this in the email notification showing up behind or below the link to the monitoring section in the documentation.
You will have to find a way to split the data into different fields:
Code: Select all
notes note_string
notes_url url
action_url url
This way, I believe you will be able to see all of the data under the "Host Extended Infos" tab in Centreon.
P.S.
I say "I believe" as I am pretty confident that you will see the info on this page, but I haven't actually tested it. Centreon is NOT supported here as this is a Nagios Support forum. We will do our best to help you out, however if the solution above doesn't work for you, you will have to contact the Centreon support.
Be sure to check out our Knowledgebase for helpful articles and solutions!
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: Host extended notes
wow you guys are awesome!lmiltchev wrote:You are using a URL in the "Notes" field ("notes" directive). I would recommend adding the URL to the "URL" field ("notes_url" directive). This way, you could add a string to "notes", e.g. a phone number without breaking the URL (as it is defined in a different field).I would like to have this in the email notification showing up behind or below the link to the monitoring section in the documentation.
You will have to find a way to split the data into different fields:https://assets.nagios.com/downloads/nag ... .html#hostCode: Select all
notes note_string notes_url url action_url url
This way, I believe you will be able to see all of the data under the "Host Extended Infos" tab in Centreon.
P.S.
I say "I believe" as I am pretty confident that you will see the info on this page, but I haven't actually tested it. Centreon is NOT supported here as this is a Nagios Support forum. We will do our best to help you out, however if the solution above doesn't work for you, you will have to contact the Centreon support.
use nagios custom variables, and then append to your email notifications. as @lmiltchev mentioned, i don't know how this functions for Centreon. your best bet is over there for support.martin@boxit.net wrote:I might be able to use url for the documentation link and the notes section for ips, name, number etc?
Thanks
Re: Host extended notes
@martin@boxit.net I will be closing this topic now. If you have any more questions/issues, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!