<P>For sure, it would also be nice if the preflight checks actaully checked the cgi.cfg file. I spent almost half a day trying track down a coredump with the statusmap.cgi, and it turned out to be a missing "p" for the physical_html_path variable....
<P> <B><I>Tom Lichti <tom@redpepperracing.com></I></B> wrote:
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Only in certain situations. I had some hosts where a couple of the services <BR>were defined in a group service, and a couple were single host definitions, <BR>or definitions that were part of a group that didn't include websrvr-102. <BR>For instance, websrvr-119 had a service defined that was part of a smaller <BR>group that didn't include websrvr-107, so it didn't give any warnings for <BR>that server, yet half of it's services were not registered. If this had <BR>been the case for all of the services, there would have been no warnings <BR>from the pre-flight check, yet about 1/6 of my services would not have been <BR>checked. Regardless, it still took me a long time to figure out what the <BR>problem REALLY was. This needs to be addressed in the pre-flight check, <BR>IMHO.<BR><BR>Tom<BR><BR>--On Tuesday, October 29, 2002 1:17 PM -0800 Jon Lyons <JLYONS30@YAHOO.COM><BR>wrote:<BR><BR>>
 <BR>> Yep, however the hosts after the invaild hostname will provide a warning<BR>> error stating that they have no services defined, so you can tell where<BR>> the error is...<BR><BR>> Tom Lichti <TOM@REDPEPPERRACING.COM>wrote:Well, after<BR>> seeing how I could 'save time' with the tips, I spent a day<BR>> re-organizing my services file into templates and multi-host services.<BR>> And it didn't work. So much for saving time. Any service that has<BR>> multiple hosts in the host_name line seem to be completely ignored, and<BR>> do not generate errors with the nagios -v test.<BR>><BR>> The problem was that I had a host in the list of 'host_name' that didn't<BR>> exist in the hosts definition. It didn't give a warning to that effect<BR>> though, it just stopped processing the hosts after that. For example, I<BR>> had<BR>><BR>> define service{<BR>> use generic-websrvr-service<BR>> host_name<BR>> websrvr-100,websrvr-101,w
 ebsrvr-102,websrvr-103,websrvr-104,websrvr-105,we<BR>> bsrvr-106,websrvr-107,websrvr-108,websrvr-109,websrvr-110,websrvr-112,web<BR>> sr<BR>> vr-113,websrvr-114,websrvr-115,websrvr-116,websrvr-117,websrvr-118,websrv<BR>> r- 119<BR>> service_description Disk Space<BR>> check_command check_all_disks_r!!85!95<BR>> }<BR>><BR>> But websrvr-107 did not exist in the hosts file, so it appears that it<BR>> stops processing the list of hosts if it finds one that does not exist in<BR>> the hosts definitions. Ok, fine, except that there was no warning! Argh.<BR>><BR>> Anyway, I've fixed my services file, but that was a bit of pain to find.<BR>><BR>> Tom<BR>><BR>><BR>> -------------------------------------------------------<BR>> This sf.net email is sponsored by:ThinkGeek<BR>> Welcome to geek heaven.<BR>> http://thinkgeek.com/sf<BR>> _______________________________________________<BR>> Nagios-users mailing list<BR>>
  Nagios-users@lists.sourceforge.net<BR>> https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>><BR>> -----<BR>><BR>> Jon Lyons<BR>> Black Honda F3 #800<BR>><BR>><BR>> ---------------------------------<BR>> Do you Yahoo!?<BR>> HotJobs - Search new jobs daily now<BR><BR></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/careers/mailsig/*http://www.hotjobs.com ">HotJobs</a> - Search new jobs daily now