I trying to display onhover popup with Service Notes in the same way as Host Address displayed when you point mouse on a HostName:
I've found in status.c where it coded and can to display there Service Description popup (for test):
Code: Select all
/* service name column */
printf("<td class='status%s'>", status_bg_class);
printf("<table border=0 WIDTH='100%%' cellspacing=0 cellpadding=0>");
printf("<tr>");
printf("<td align='left'>");
printf("<table border=0 cellspacing=0 cellpadding=0>\n");
printf("<tr>\n");
printf("<td align='left' valign=center class='status%s'><a href='%s?type=%d&host=%s", status_bg_class, EXTINFO_CGI, DISPLAY_SERVICE_INFO, url_encode(temp_status->host_name));
printf("&service=%s' title='%s'>", url_encode(temp_status->description), temp_status->description);
printf("%s</a></td>", temp_status->description);
printf("</tr>\n");
printf("</table>\n");
printf("</td>\n");
printf("<td ALIGN=RIGHT class='status%s'>\n", status_bg_class);
printf("<table border=0 cellspacing=0 cellpadding=0>\n");
printf("<tr>\n");
It's works:
I'm not very familiar with programming, so the quastion is how to display service notes instead service description in the popup windows?
It would be ideal if notes popup message will be trunkated to ~150 chars (for example).
Could somebody help me please?