<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>RETRY:  CPU Question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Not having received a reply on my previous question, I'll try again. :)  (Please tell me where I can ask this question, if this is the wrong place to ask.)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">My cgi's take about 30 seconds from clicking on their links to displaying something on my screen.  I'm running a P4, 512M Red Hat 7.2 (uname shows Linux 2.4.20).  System idles at 80% CPU free most of the time, until I hit a cgi which drops the idle down to 0%, until the cgi finishes (as mentioned earlier, 25-30seconds later) and the system goes back to 80% idle.  No swap is being used.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I've done the following optimizations:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Placed my critical files on ramdisk.  They are:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios        755 Apr  4 15:43 contactgroups.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios       2822 Apr  4 15:43 contacts.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios      14999 Apr  7 09:43 hostextinfo.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios       1565 Apr  4 15:43 hostgroups.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios      26585 Apr  4 15:43 hosts.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios        536 Apr  4 15:43 hosts-uses.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">drwxr-xr-x    2 nagios   nagios      12288 Apr  3 16:23 lost+found</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios       3092 Apr  4 15:43 misccommands.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios    1987817 Apr  4 15:43 serviceextinfo.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios    1696675 Apr  4 15:43 services.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios       3941 Apr  4 15:43 services-uses.cfg</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rw-r--r--    1 nagios   nagiocmd   759981 Apr  7 09:50 status.log</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rw-rw-r--    1 nagios   nagios     209360 Apr  7 09:43 status.sav</FONT>

<BR><FONT SIZE=2 FACE="Arial">-rwxr-xr-x    1 nagios   nagios       1112 Apr  4 15:43 timeperiods.cfg</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">retention_update_interval=15</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">aggregate_status_updates=15</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My nagios stats are as follows:</FONT>
</P>

<P><SPAN LANG="en-za"><FONT FACE="Times New Roman">Check Execution Time: 0 / 7 / 0.052 sec </FONT></SPAN>

<BR><SPAN LANG="en-za"><FONT FACE="Times New Roman">Check Latency: 0 / 14 / 0.605 sec</FONT></SPAN>

<BR><SPAN LANG="en-za"><FONT FACE="Times New Roman"># Active Checks: 3404 </FONT></SPAN>

<BR><SPAN LANG="en-za"><FONT FACE="Times New Roman"># Passive Checks: 334</FONT></SPAN>

<BR><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">I've done everything that I could implement in the "Tuning Nagios For Maximum Performance" section.</FONT></SPAN>

<BR><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">At one stage I even nfs mounted the nagios directory to another machine from which I let my clients access the cgi's.  Sharing CPU this way worked fine, meaning that whenever the web interface becomes too slow, I'll just add another server in my nagios farm.  The only drawback is that the clients can't write to the nagios.cmd file accross the nfs mount.  Would have been a nice feature if it did work.  Which raises the next question.  Nagios is a distributed NMS system, how about making it a distributed client interface system, if you follow what I mean?  How can I get this done?</FONT></SPAN></P>

<P><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">Is there anything else I can do to get the response time of the cgi's better?  Is this a hardware or software issue?</FONT></SPAN>
</P>

<P><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">Any suggestions will be highly appreciated.</FONT></SPAN>
</P>

<P><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">Thanx</FONT></SPAN>
</P>

<P><SPAN LANG="en-za"><FONT SIZE=2 FACE="Arial">fred</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN>
</P>

</BODY>
</HTML>