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
tac.cgi header
Re: tac.cgi header
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.
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
https://www.mcapra.com/
https://www.mcapra.com/
Re: tac.cgi header
Thanks mcapra!
tpensel, do you by chance have a ticket opened with us? This is almost the exact same question.
tpensel, do you by chance have a ticket opened with us? This is almost the exact same question.
Re: tac.cgi header
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
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
Re: tac.cgi header
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:
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):
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/na ... issues/481
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:
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):
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/na ... issues/481
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/