tac.cgi header

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.

tac.cgi header

Postby tpensel » Fri Feb 09, 2018 7:37 am

Hi,

i am trying get rid of the header of the tac.cgi. &noheader does not work like in status.cgi.

Thanks in advance

Tom
tpensel
 
Posts: 2
Joined: Fri Feb 09, 2018 7:35 am

Re: tac.cgi header

Postby mcapra » Fri Feb 09, 2018 12:57 pm

Can you show the exact url you used? tac.c works almost exactly the same as status.c in this regard.

It's worth mentioning that, for GET variables in a URL, & always needs to follow ?. If your URL only has one GET variable, then you should do something like ?noheader instead of &noheader.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3077
Joined: Thu May 05, 2016 3:54 pm

Re: tac.cgi header

Postby kyang » Fri Feb 09, 2018 2:06 pm

Thanks mcapra!

tpensel, do you by chance have a ticket opened with us? This is almost the exact same question.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1505
Joined: Tue Jul 25, 2017 3:35 pm

Re: tac.cgi header

Postby tpensel » Sat Feb 10, 2018 11:41 am

Hi everybody,

I did Not Open a Ticket at Nagios. Yes of course i changed &noheader to ?noheader cause i pass only one parameter. But did not work ether
tpensel
 
Posts: 2
Joined: Fri Feb 09, 2018 7:35 am

Re: tac.cgi header

Postby mcapra » Mon Feb 12, 2018 11:06 am

Apologies if the ? and & differences seem trivial, but it's important to qualify any potential bugs as thoroughly as possible.

That said, I seem to be encountering the same problems. That is because this section of the tactical overview that I've highlighted in red:

2018_02_12_09_50_14_Nagios_Tactical_Monitoring_Overview.png


Isn't actually part of the "header". I put "header" in quotes because, well, very similar chunks of a page (like status.cgi) disappear with the noheader parameter.

That aside, this section drawn with the display_tac_overview function. Which runs regardless of the noheader option.

That said, it is actually impossible for the header to be drawn on this page because the display_header boolean is initialized to FALSE and had no condition in which it is set to TRUE. In a true Scooby-Doo moment, here is what the *actual* header for tac.cgi looks like (highlighted in green):

2018_02_12_10_00_18_Nagios_Tactical_Monitoring_Overview.png


Which does respect the noheader option.

That said, perhaps display_tac_overview shouldn't have a call to display_info_table in it to be consistent with other Nagios Core pages and the behavior of noheader. I dunno. I've filed a GitHub issue with my findings:
https://github.com/NagiosEnterprises/nagioscore/issues/481
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3077
Joined: Thu May 05, 2016 3:54 pm

Re: tac.cgi header

Postby kyang » Mon Feb 12, 2018 12:18 pm

Thanks @mcapra!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1505
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 18 guests