Service definition 'time-saving tips' possible bug

Jon Lyons jlyons30 at yahoo.com
Tue Oct 29 22:38:03 CET 2002


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....
 Tom Lichti <tom at redpepperracing.com> wrote:Only in certain situations. I had some hosts where a couple of the services 
were defined in a group service, and a couple were single host definitions, 
or definitions that were part of a group that didn't include websrvr-102. 
For instance, websrvr-119 had a service defined that was part of a smaller 
group that didn't include websrvr-107, so it didn't give any warnings for 
that server, yet half of it's services were not registered. If this had 
been the case for all of the services, there would have been no warnings 
from the pre-flight check, yet about 1/6 of my services would not have been 
checked. Regardless, it still took me a long time to figure out what the 
problem REALLY was. This needs to be addressed in the pre-flight check, 
IMHO.

Tom

--On Tuesday, October 29, 2002 1:17 PM -0800 Jon Lyons 
wrote:

>
> Yep, however the hosts after the invaild hostname will provide a warning
> error stating that they have no services defined, so you can tell where
> the error is...

> Tom Lichti wrote:Well, after
> seeing how I could 'save time' with the tips, I spent a day
> re-organizing my services file into templates and multi-host services.
> And it didn't work. So much for saving time. Any service that has
> multiple hosts in the host_name line seem to be completely ignored, and
> do not generate errors with the nagios -v test.
>
> The problem was that I had a host in the list of 'host_name' that didn't
> exist in the hosts definition. It didn't give a warning to that effect
> though, it just stopped processing the hosts after that. For example, I
> had
>
> define service{
> use generic-websrvr-service
> host_name
> websrvr-100,websrvr-101,websrvr-102,websrvr-103,websrvr-104,websrvr-105,we
> bsrvr-106,websrvr-107,websrvr-108,websrvr-109,websrvr-110,websrvr-112,web
> sr
> vr-113,websrvr-114,websrvr-115,websrvr-116,websrvr-117,websrvr-118,websrv
> r- 119
> service_description Disk Space
> check_command check_all_disks_r!!85!95
> }
>
> But websrvr-107 did not exist in the hosts file, so it appears that it
> stops processing the list of hosts if it finds one that does not exist in
> the hosts definitions. Ok, fine, except that there was no warning! Argh.
>
> Anyway, I've fixed my services file, but that was a bit of pain to find.
>
> Tom
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
> -----
>
> Jon Lyons
> Black Honda F3 #800
>
>
> ---------------------------------
> Do you Yahoo!?
> HotJobs - Search new jobs daily now




---------------------------------
Do you Yahoo!?
HotJobs - Search new jobs daily now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021029/f38dbaba/attachment.html>


More information about the Users mailing list