Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Daniel Wittenberg
Very cool, look forward to using it! Dan -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Tuesday, November 02, 2010 12:56 PM To: Nagios Users List Subject: Re: [Nagios-users] hostgroup with no members - Enhancement On 11/02/2010 04:54 PM, Max Schubert wrote: > To ac

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Andreas Ericsson
On 11/02/2010 04:54 PM, Max Schubert wrote: > To activate the downgrade from error to warning, put > > allow_empty_hostgroups = 1 > > in your nagios.cfg after compiling Nagios with the patch in place. > Neato. I'll apply and push it out tomorrow. -- Andreas Ericsson andreas.

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Michael Friedrich
On 02.11.2010 16:50, Max Schubert wrote: > We have a local patch to turn the error into a warning, patched > against 3.2.0 - we needed this because we have customers who can use > host -> hostgroup -> N related services mappings but we do not control > their configs, we only define the global ser

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Max Schubert
To activate the downgrade from error to warning, put allow_empty_hostgroups = 1 in your nagios.cfg after compiling Nagios with the patch in place. - Max -- Nokia and AT&T present the 2010 Calling All Innovators-North Am

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Max Schubert
On Tue, Nov 2, 2010 at 10:52 AM, Fredrik Barrud wrote: > Hi, > > I would also like to be able to create empty hostgroups with services > assigned. > > The reason for this is that I've setup a nagios installation for a customer > where a host is only member to one hostgroup to inherit services fr

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Fredrik Barrud
Hi, I would also like to be able to create empty hostgroups with services assigned. The reason for this is that I've setup a nagios installation for a customer where a host is only member to one hostgroup to inherit services from other hostgroups, like all->windows->citrix->server and for a few

Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread Greg Pangrazio
Go ask your Database admin for a query that will return a few rows. I can't write the query for you I have no idea what your SQL schemas are or how your database is configured. Greg Pangrazio On Tue, Nov 2, 2010 at 9:50 AM, wrote: > Hi , > > > > Please let me know which plugin I can use to

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Andreas Ericsson
On 11/02/2010 03:56 PM, Daniel Wittenberg wrote: > Maybe it could just be considered a warning and not a fatal error? I > can ignore warnings :) > Yes and no. The code returns NULL for non-existing hostgroups referenced (which should remain an error) and NULL for existing hostgroups without memb

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Daniel Wittenberg
Maybe it could just be considered a warning and not a fatal error? I can ignore warnings :) Dan -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Tuesday, November 02, 2010 9:43 AM To: Daniel Wittenberg Cc: Nagios Users List Subject: Re: [Nagios-users] hostgroup with

Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread ravishankar.gundlapali
Hi , Please let me know which plugin I can use to resolve this issue. Also please let me know the query which I have to use. Thanks, Ravi G From: Greg Pangrazio [mailto:pangr...@gmail.com] Sent: Tuesday, November 02, 2010 8:07 PM To: Nagios Users List Subject: Re: [Nagios-users] S

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Andreas Ericsson
On 11/02/2010 03:16 PM, Daniel Wittenberg wrote: > Basically because all the backend files are controlled via puppet, to a > number of nagios servers, but the actual host assignments are controlled > by third-party package. So, the "base" configs about all the services > are pushed to every server

Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread Greg Pangrazio
I don't use this plugin, but it looks like it doesn't like the "*" between the first and second "!". That spot holds the sql query so try a real query that will return some rows like a select statement. Greg Pangrazio On Tue, Nov 2, 2010 at 9:13 AM, wrote: > Hi, > > I am using Nagios Ve

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Daniel Wittenberg
Basically because all the backend files are controlled via puppet, to a number of nagios servers, but the actual host assignments are controlled by third-party package. So, the "base" configs about all the services are pushed to every server, and then the other tool determines the best "balance" o

[Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread ravishankar.gundlapali
Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers. For the many of the servers the status information is showing following errors. Please see the screenshots below 1) UNKNOWN: No handler for that command 2)

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Andreas Ericsson
On 11/02/2010 02:59 PM, Daniel Wittenberg wrote: > Ok, so this was a basic test, I have a GENERIC_PING check and it had the > fake host in there and was working fine, as soon as I removed it (so no > members defined): > > Error: Could not expand hostgroups and/or hosts specified in service > (conf

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Daniel Wittenberg
Well, we're running 3.2.3, and if I don't have at least 1 member of a hostgroup it throws a fit during the test. Maybe there's something else I have to change, but last we tried it would not work. And no, I don't really want to assign hosts within the service. The way we have it now works grea

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Daniel Wittenberg
Ok, so this was a basic test, I have a GENERIC_PING check and it had the fake host in there and was working fine, as soon as I removed it (so no members defined): Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios/objects/services/GENERIC_PING.cfg', star

Re: [Nagios-users] hostgroup with no members - Enhancement

2010-11-02 Thread Andreas Ericsson
On 11/01/2010 08:57 PM, Daniel Wittenberg wrote: > I'd like to be able to create a hostgroup with no members assigned, but > doesn't appear to work. Empty hostgroups work just fine. The check that says this is so starts at line 12516 in xdata/xodtemplate.c as of latest CVS/git. It's been like that