[Nagios-devel] Web interface: fix for tac.c

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
Guest

[Nagios-devel] Web interface: fix for tac.c

Post by Guest »

This is a multi-part message in MIME format.
--------------05E943D9B88AAADDB4E082CB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

When clicking somewhere in the "Hosts" section (the upper
down/unreachable/up/pending-section) in the "Tactical Overview" page,
SERVICE status details are displayed.
In my opinion this is wrong, because I want to see how long the host has
been down when I click on the "1 Unhandled Problems"-link
(duration-column). "Service status details" should only be displayed,
when clicking on something somewhere in the "Services" section of
tac.cgi.

A patch for that issue is attached to this mail, applicable with:

patch cgi/tac.c %d Down\n",STATUS_CGI,HOST_DOWN,hosts_down);
%d Unreachable\n",STATUS_CGI,HOST_UNREACHABLE,hosts_unreachable);
%d Up\n",STATUS_CGI,HOST_UP,hosts_up);
%d Pending\n",STATUS_CGI,HOST_PENDING,hosts_pending);
---
> printf("%d Down\n",STATUS_CGI,HOST_DOWN,hosts_down);
> printf("%d Unreachable\n",STATUS_CGI,HOST_UNREACHABLE,hosts_unreachable);
> printf("%d Up\n",STATUS_CGI,HOST_UP,hosts_up);
> printf("%d Pending\n",STATUS_CGI,HOST_PENDING,hosts_pending);
1119c1119
%d Unhandled Problems\n",STATUS_CGI,HOST_DOWN,HOST_NO_SCHEDULED_DOWNTIME|HOST_STATE_UNACKNOWLEDGED|HOST_CHECKS_ENABLED,hosts_down_unacknowledged);
---
> printf("%d Unhandled Problems\n",STATUS_CGI,HOST_DOWN,HOST_NO_SCHEDULED_DOWNTIME|HOST_STATE_UNACKNOWLEDGED|HOST_CHECKS_ENABLED,hosts_down_unacknowledged);
1122c1122
%d Scheduled\n",STATUS_CGI,HOST_DOWN,HOST_SCHEDULED_DOWNTIME,hosts_down_scheduled);
---
> printf("%d Scheduled\n",STATUS_CGI,HOST_DOWN,HOST_SCHEDULED_DOWNTIME,hosts_down_scheduled);
1125c1125
%d Acknowledged\n",STATUS_CGI,HOST_DOWN,HOST_STATE_ACKNOWLEDGED,hosts_down_acknowledged);
---
> printf("%d Acknowledged\n",STATUS_CGI,HOST_DOWN,HOST_STATE_ACKNOWLEDGED,hosts_down_acknowledged);
1128c1128
<a href='%s?host=all&style=hostdetail&hoststatustypes=%d&hostpr

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked