Add a URL link to the status information
Add a URL link to the status information
Is it possible to add a URL link to the status information column。
I try to write a simple perl script~
printf(" \<a href=test.html\>Click here to see test \</a\>")
but nagios shows like this is I want~
Status information
Click here to see test
Anybody knows how to slove it
Thanks
Steven
I try to write a simple perl script~
printf(" \<a href=test.html\>Click here to see test \</a\>")
but nagios shows like this is I want~
Status information
Click here to see test
Anybody knows how to slove it
Thanks
Steven
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a URL link to the status information
This is not available in Nagios Core, but is an option in Nagios XI
https://www.nagios.com/products/nagios-xi/
https://www.nagios.com/products/nagios-xi/
Re: Add a URL link to the status information
You might be able to get a similar effect with notes for a particular host/service:
https://support.nagios.com/forum/viewto ... 72#p252672
I also get into modifying the source code to add custom elements to the status.cgi page:
https://support.nagios.com/forum/viewto ... 87#p222987
https://support.nagios.com/forum/viewto ... 72#p252672
I also get into modifying the source code to add custom elements to the status.cgi page:
https://support.nagios.com/forum/viewto ... 87#p222987
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a URL link to the status information
Thanks @mcapramcapra wrote:You might be able to get a similar effect with notes for a particular host/service:
https://support.nagios.com/forum/viewto ... 72#p252672
I also get into modifying the source code to add custom elements to the status.cgi page:
https://support.nagios.com/forum/viewto ... 87#p222987
Re: Add a URL link to the status information
Thank for your replies.
I did see someone using the hyperlink in the status information field of the nagios core V3.5. Just, I don't know how he does it. The result of my test, nagios does not Interpret the HTML , or What plug-in do I need to install?
I did see someone using the hyperlink in the status information field of the nagios core V3.5. Just, I don't know how he does it. The result of my test, nagios does not Interpret the HTML , or What plug-in do I need to install?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a URL link to the status information
Oh, you can edit the cgi.cfg
change this
to this
change this
Code: Select all
escape_html_tags=1
Code: Select all
escape_html_tags=0
Re: Add a URL link to the status information
scottwilkerson wrote:Oh, you can edit the cgi.cfg
change thisto thisCode: Select all
escape_html_tags=1
Code: Select all
escape_html_tags=0
Thank you very much
I'll try later
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a URL link to the status information
Sounds good!stevenhmy wrote:scottwilkerson wrote:Oh, you can edit the cgi.cfg
change thisto thisCode: Select all
escape_html_tags=1
Code: Select all
escape_html_tags=0
Thank you very much
I'll try later
Re: Add a URL link to the status information
scottwilkerson wrote:Sounds good!stevenhmy wrote:scottwilkerson wrote:Oh, you can edit the cgi.cfg
change thisto thisCode: Select all
escape_html_tags=1
Code: Select all
escape_html_tags=0
Thank you very much
I'll try later
It's working
thanks again
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a URL link to the status information
Great!stevenhmy wrote:It's working
thanks again
Locking