Page 1 of 1
Is it possible to add a URL link to the status information
Posted: Mon Aug 29, 2016 2:55 pm
by bpetershagen
Is it possible to add a URL link to the status information column if there is a warning or Critical status? See example below
Status Status information
Warning Login Errors since last reboot is 692
https://abc.abc.com/Error-9999
Thx Brian
Re: Is it possible to add a URL link to the status informati
Posted: Mon Aug 29, 2016 3:27 pm
by mcapra
What shows up on the "Status Information" column is contingent mostly on the output of the plugin you are using.
If you wanted to append a URL to a specific plugin's output, there isn't really anything stopping you from doing that. That change would be made by modifying the plugin itself (most of the time), though.
What sort of URL are you trying to add to the status information column?
Re: Is it possible to add a URL link to the status informati
Posted: Mon Aug 29, 2016 3:31 pm
by bpetershagen
It is a link to a knowledge base document that is specific to a Service check and gives the support team steps to resolve the issue or to who the issue should be escalated.
Re: Is it possible to add a URL link to the status informati
Posted: Mon Aug 29, 2016 4:39 pm
by tmcdonald
It wouldn't be in the status output, but you might look into the
notes_url setting:
https://assets.nagios.com/downloads/nag ... .html#host
This variable is used to define an optional URL that can be used to provide more information about the host. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing host information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host, emergency contact methods, etc. available to other support staff.
That's from the Core docs, but the setting is still available in XI.
Re: Is it possible to add a URL link to the status informati
Posted: Wed Aug 31, 2016 12:22 pm
by bpetershagen
does this require Nagios to custom edit the page to allow us to see the notes_url? I am being told by my admin that it is a change that will get reverted every time we upgrade and will have to be implemented again each time.
Re: Is it possible to add a URL link to the status informati
Posted: Wed Aug 31, 2016 12:29 pm
by rkennedy
No, as @tcmdonald mentioned this is built in to XI and you just need to modify your host / service definitions that require a notes / notes_url field.
notes: This directive is used to define an optional string of notes pertaining to the host. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified host).
notes_url: This variable is used to define an optional URL that can be used to provide more information about the host. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing host information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host, emergency contact methods, etc. available to other support staff.