<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Michael,<BR>
 <BR>
Thank you very much! It did the trick :-)<BR>
 <BR>
Regards,<BR>
h<BR><BR> <BR>
<BR>
<HR id=stopSpelling>
Date: Fri, 16 Jul 2010 15:06:39 +0200<BR>From: michael.friedrich@univie.ac.at<BR>To: nagios-users@lists.sourceforge.net<BR>Subject: Re: [Nagios-users] Adding a line to GUI<BR><BR>Honia A wrote: 
<BLOCKQUOTE cite=mid:BAY147-w48D26E5851DB210C7B79DAAEBC0@phx.gbl>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Thanks for your reply Bret. <BR> <BR>I would like the second idea (keep that message on all the pages in that same gray box). So I looked into that directory you mentioned (/usr/local/nagios/sbin) but they are all the compiled cgi files. When I opened them with UltraEdit and Notepad, they were not editable, the lines look something like this (below).<BR> <BR>Is there any way I could edit them or may be there are pre-compiled versions of the files which I could edit?<BR></BLOCKQUOTE><BR>you have to edit the appropriate .c files and then recompile the cgis out of them. since this a generic box, it's only defined once.<BR><BR>$ grep -r display_info_table *<BR><BR>points to cgi/cgiutils.c<BR><BR>Within this function you will see a bunch of html code within printf calls. There you can edit/add your preferred line.<BR><BR>e.g. adding below<BR><BR>        if(current_authdata!=NULL)<BR>                printf("Logged in as <i>%s</i><BR>\n",(!strcmp(current_authdata->username,""))?"?":current_authdata->username);<BR><BR>this<BR><BR>        printf("<i><font color=red>beware of the nagios root, don't change anything!</font></i><BR>\n");<BR><BR>After that, run make clean && make cgis && sudo make install-cgis<BR><BR>Should do the trick ;-)<BR><BR>Kind regards,<BR>Michael<BR><BR><BR><PRE class=ecxmoz-signature>-- 
DI (FH) Michael Friedrich
<A class=ecxmoz-txt-link-abbreviated href="mailto:michael.friedrich@univie.ac.at">michael.friedrich@univie.ac.at</A>
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria  
</PRE>                                      <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1' target='_new'>Learn more.</a></body>
</html>