Add a URL link to the status information

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stevenhmy
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Add a URL link to the status information

Post by stevenhmy »

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
20190901-1.jpg
this is I want~
Status information
Click here to see test

Anybody knows how to slove it

Thanks
Steven
scottwilkerson
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

Post by scottwilkerson »

This is not available in Nagios Core, but is an option in Nagios XI
https://www.nagios.com/products/nagios-xi/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Add a URL link to the status information

Post by mcapra »

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
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
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

Post by scottwilkerson »

mcapra 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
Thanks @mcapra
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
stevenhmy
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Post by stevenhmy »

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?
scottwilkerson
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

Post by scottwilkerson »

Oh, you can edit the cgi.cfg
change this

Code: Select all

escape_html_tags=1
to this

Code: Select all

escape_html_tags=0
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
stevenhmy
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Post by stevenhmy »

scottwilkerson wrote:Oh, you can edit the cgi.cfg
change this

Code: Select all

escape_html_tags=1
to this

Code: Select all

escape_html_tags=0

Thank you very much
I'll try later :)
scottwilkerson
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

Post by scottwilkerson »

stevenhmy wrote:
scottwilkerson wrote:Oh, you can edit the cgi.cfg
change this

Code: Select all

escape_html_tags=1
to this

Code: Select all

escape_html_tags=0

Thank you very much
I'll try later :)
Sounds good!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
stevenhmy
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Post by stevenhmy »

scottwilkerson wrote:
stevenhmy wrote:
scottwilkerson wrote:Oh, you can edit the cgi.cfg
change this

Code: Select all

escape_html_tags=1
to this

Code: Select all

escape_html_tags=0

Thank you very much
I'll try later :)
Sounds good!

It's working :D
thanks again
scottwilkerson
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

Post by scottwilkerson »

stevenhmy wrote:It's working :D
thanks again
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked