Add a URL link to the status information

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Add a URL link to the status information

Postby stevenhmy » Sat Aug 31, 2019 8:27 pm

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
stevenhmy
 
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Postby scottwilkerson » Tue Sep 03, 2019 8:16 am

This is not available in Nagios Core, but is an option in Nagios XI
https://www.nagios.com/products/nagios-xi/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Add a URL link to the status information

Postby mcapra » Tue Sep 03, 2019 10:18 am

You might be able to get a similar effect with notes for a particular host/service:
viewtopic.php?f=7&t=48790&p=252672#p252672

I also get into modifying the source code to add custom elements to the status.cgi page:
viewtopic.php?f=7&t=44185&p=222987#p222987
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3587
Joined: Thu May 05, 2016 3:54 pm

Re: Add a URL link to the status information

Postby scottwilkerson » Tue Sep 03, 2019 10:24 am

mcapra wrote:You might be able to get a similar effect with notes for a particular host/service:
viewtopic.php?f=7&t=48790&p=252672#p252672

I also get into modifying the source code to add custom elements to the status.cgi page:
viewtopic.php?f=7&t=44185&p=222987#p222987


Thanks @mcapra
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Add a URL link to the status information

Postby stevenhmy » Wed Sep 04, 2019 4:14 am

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?
stevenhmy
 
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Postby scottwilkerson » Wed Sep 04, 2019 7:10 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Add a URL link to the status information

Postby stevenhmy » Thu Sep 05, 2019 2:07 am

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 :)
stevenhmy
 
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Postby scottwilkerson » Thu Sep 05, 2019 8:29 am

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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Add a URL link to the status information

Postby stevenhmy » Fri Sep 06, 2019 7:12 am

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
stevenhmy
 
Posts: 4
Joined: Tue Jun 12, 2018 3:00 am

Re: Add a URL link to the status information

Postby scottwilkerson » Fri Sep 06, 2019 7:24 am

stevenhmy wrote:It's working :D
thanks again


Great!

Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 6 guests