Re: [Nagios-users] hostgroup definition

2010-03-11 Thread Rick Mangus
If the hostgroup.cfg is included by nagios.cfg even indirectly,
"nagios -v nagios.cfg" will include it in verification.  It's not just
verifying syntax or something else that can be done file-by-file, it
checks to make sure that all references in the entire config to hosts
and groups are defined and so on.

--Rick

On Thu, Mar 11, 2010 at 9:01 AM, Gezina Dekker  wrote:
> Assaf,
>
> Thank you fro the reply, but the command does not give me any reply-back. I
> suppose it is because the problem is not in nagios .cfg, but in
> hostgroup.cfg. I have tried to nverivy hostgroup.cfg this way, but it days
> that the name looks suspicious...
>
> Regards
>
> Gezina
>
>> > Running configuration check. CONFIG ERROR!  Restart aborted.  Check
>> > your Nagios configuration
>> >
>> >
>> > I have server a definition for it. if I comment the lines out, the
>> > resatrt is successful.
>> >
>> > I am just missing something???
>> >
>> > Regards and thanks for all the help so far, learned a lot,
>> >
>> > Gezina
>> try running this command
>>
>> /path/to/nagios -v /path/to/nagios.cfg
>>
>> this will give you some indication as to your problem.
>>
>>
>> Assaf
>>
>>
>> --
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] hostgroup definition

2010-03-11 Thread Charles Breite
When you run 

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg  (this
is the default path your may be different)

It verifies the other configs you have specified in Nagios.cfg.

Your errors are coming from nagios.cfg verification. Does that make
sense?

 

From: Gezina Dekker [mailto:gezin...@gmail.com] 
Sent: Thursday, March 11, 2010 9:02 AM
To: Nagios Users List
Subject: Re: [Nagios-users] hostgroup definition

 

Assaf,

 

Thank you fro the reply, but the command does not give me any
reply-back. I suppose it is because the problem is not in nagios .cfg,
but in hostgroup.cfg. I have tried to nverivy hostgroup.cfg this way,
but it days that the name looks suspicious...

 

Regards

 

Gezina

> Running configuration check. CONFIG ERROR!  Restart aborted.
Check
> your Nagios configuration
>
>
> I have server a definition for it. if I comment the lines out,
the
> resatrt is successful.
>
> I am just missing something???
>
> Regards and thanks for all the help so far, learned a lot,
>
> Gezina

try running this command



this will give you some indication as to your problem.


Assaf




--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find
bugs
proactively, and fine-tune applications for parallel
performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS
when reporting any issue.
::: Messages without supporting info will risk being sent to
/dev/null

 

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] hostgroup definition

2010-03-11 Thread Gezina Dekker
Assaf,

Thank you fro the reply, but the command does not give me any reply-back. I
suppose it is because the problem is not in nagios .cfg, but in
hostgroup.cfg. I have tried to nverivy hostgroup.cfg this way, but it days
that the name looks suspicious...

Regards

Gezina

  > Running configuration check. CONFIG ERROR!  Restart aborted.  Check
> > your Nagios configuration
> >
> >
> > I have server a definition for it. if I comment the lines out, the
> > resatrt is successful.
> >
> > I am just missing something???
> >
> > Regards and thanks for all the help so far, learned a lot,
> >
> > Gezina
> try running this command
>
> /path/to/nagios -v /path/to/nagios.cfg
>
> this will give you some indication as to your problem.
>
>
> Assaf
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] hostgroup definition

2010-03-10 Thread Assaf Flatto
Gezina Dekker wrote:
> Hi all,
>  
> Two things remain for me, one emails from nagios, two is hostgroups, 
> and I looked at all the documentation and, cannot find my error...
>  
> define hostgroup{
> hostgroup_name  Linux_group
> alias   No_Call-Out
> memberssvrlinux01
> }
> When I restart after adding this host-group using split.cfg I get the 
> following.
>
> Running configuration check. CONFIG ERROR!  Restart aborted.  Check 
> your Nagios configuration
>
>  
> I have server a definition for it. if I comment the lines out, the 
> resatrt is successful.
>  
> I am just missing something???
>  
> Regards and thanks for all the help so far, learned a lot,
>  
> Gezina
try running this command

/path/to/nagios -v /path/to/nagios.cfg

this will give you some indication as to your problem.


Assaf

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] hostgroup definition

2010-03-10 Thread Gezina Dekker
 Hi all,

Two things remain for me, one emails from nagios, two is hostgroups, and I
looked at all the documentation and, cannot find my error...

define hostgroup{
hostgroup_name  Linux_group
alias   No_Call-Out
memberssvrlinux01
}
When I restart after adding this host-group using split.cfg I get the
following.

Running configuration check. CONFIG ERROR!  Restart aborted.  Check your
Nagios configuration

I have server a definition for it. if I comment the lines out, the resatrt
is successful.

I am just missing something???

Regards and thanks for all the help so far, learned a lot,

Gezina
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Hostgroup definition

2008-05-12 Thread Israel Brewster
On May 12, 2008, at 7:46 AM, Jay R. Ashworth wrote:

> On Mon, May 12, 2008 at 05:03:17PM +0200, Andreas Ericsson wrote:
>> Not really, no, but the hostgroup needs to be defined somewhere.  
>> When it
>> is, you can do something like the following
>>
>> define host {
>>  use template_with_all_required_variables
>>  hostgroups   hostgroup1,hostgroup2,hostgroup4,hostgroupn
>>  }
>
> It doesn't cause any confusion, statistical or otherwise, to put a  
> host
> in more than one group, does it?

Nope. I do this for pretty much all of my hosts, actually. For  
example, all printers are in a "Printer" host group, to associate  
services as well as group all printers together. Additionally, I have  
a host group for each location we have machines in, so a printer in  
Barrow would be in both the printer hostgroup (for the services) and  
the "Barrow" hostgroup (for the location). Makes it easy to find all  
the machines in barrow, as well as all the printers.

---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---
>
>
> Cheers,
> -- jra
> -- 
> Jay R. Ashworth   Baylink  [EMAIL 
> PROTECTED]
> Designer The Things I  
> Think   RFC 2100
> Ashworth & Associates http:// 
> baylink.pitas.com '87 e24
> St Petersburg FL USA  http://photo.imageinc.us +1  
> 727 647 1274
>
>Those who cast the vote decide nothing.
>Those who count the vote decide everything.
>  -- (Joseph Stalin)
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save  
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when  
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hostgroup definition

2008-05-12 Thread Jay R. Ashworth
On Mon, May 12, 2008 at 05:03:17PM +0200, Andreas Ericsson wrote:
> Not really, no, but the hostgroup needs to be defined somewhere. When it
> is, you can do something like the following
> 
> define host {
>   use template_with_all_required_variables
>   hostgroups   hostgroup1,hostgroup2,hostgroup4,hostgroupn
>   }

It doesn't cause any confusion, statistical or otherwise, to put a host
in more than one group, does it?

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hostgroup definition

2008-05-12 Thread Jay R. Ashworth
On Mon, May 12, 2008 at 10:01:56AM -0500, Marc Powell wrote:
> > I know that lots of the documentation about how to configure Nagios's
> > cfg files is in transition from 2.x (where you mostly did it one way)
> > to 3.0 (where you mostly do it another way), but there's a point I'm
> > not clear on.
> 
> I've not done the transition but there don't appear to be significant
> changes from 2.x to 3.x...

The entries themselves, no.  But it did seem to me that the approach to
which things go in what files -- as exemplified by the default sample
configs -- changed a bit, no?

Or do I just think that because the "segregate in cfg_dirs by type of
object; everything in its own file" approach made more sense to me?

> > It seems to me that it would be much easier to maintain if member
> > machines were placed in hostgroups *in each member machine's cfg file*
> > (cause yes, I'm using a separate file for each machine).
> 
> You have been able to do that since 2.x.

Yeah, so I found out; see my other reply.

> You do have to define the hostgroup but you don't have to specify
> members there.
> 
> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostgroup
> 
> hostgroup_members:This _optional_ directive can be used to include
> hosts from other "sub" host groups in this host group. Specify a
> comma-delimited list of short names of other host groups whose members
> should be included in this group.

I did see that, when I actually looked far enough.  :-)

For what it's worth, it doesn't *actually* say that if you are going to
declare an object a member of a hostgroup, you *do* still actually have
to *define* it somewhere, which it probably should.  Certainly it's
implied, but I'm not sure that's good enough, as complicated as Nagios
is.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hostgroup definition

2008-05-12 Thread Andreas Ericsson
Jay R. Ashworth wrote:
> I know that lots of the documentation about how to configure Nagios's
> cfg files is in transition from 2.x (where you mostly did it one way)
> to 3.0 (where you mostly do it another way), but there's a point I'm
> not clear on.
> 
> It seems to me that it would be much easier to maintain if member
> machines were placed in hostgroups *in each member machine's cfg file*
> (cause yes, I'm using a separate file for each machine).
> 

You can do that.

> This doesn't seem to be the way Nagios expects me to do it, and I don't
> see that there's a way to do it this way; you appear to have to define
> the hostgroup in some amorphous 'somewhere', and then add all the hosts
> to it *there* (which means that there are two places you have to change
> when you add a new host, which I'm not fond of).
> 

Not really, no, but the hostgroup needs to be defined somewhere. When it
is, you can do something like the following

define host {
use template_with_all_required_variables
hostgroups   hostgroup1,hostgroup2,hostgroup4,hostgroupn
}

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Hostgroup definition

2008-05-12 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jay R. Ashworth
> Sent: Monday, May 12, 2008 9:32 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Hostgroup definition
> 
> I know that lots of the documentation about how to configure Nagios's
> cfg files is in transition from 2.x (where you mostly did it one way)
> to 3.0 (where you mostly do it another way), but there's a point I'm
> not clear on.

I've not done the transition but there don't appear to be significant
changes from 2.x to 3.x...

> 
> It seems to me that it would be much easier to maintain if member
> machines were placed in hostgroups *in each member machine's cfg file*
> (cause yes, I'm using a separate file for each machine).

You have been able to do that since 2.x.
 
> This doesn't seem to be the way Nagios expects me to do it, and I
don't
> see that there's a way to do it this way; you appear to have to define
> the hostgroup in some amorphous 'somewhere', and then add all the
hosts
> to it *there* (which means that there are two places you have to
change
> when you add a new host, which I'm not fond of).

You do have to define the hostgroup but you don't have to specify
members there.

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostgroup

hostgroup_members:  This _optional_ directive can be used to include
hosts from other "sub" host groups in this host group. Specify a
comma-delimited list of short names of other host groups whose members
should be included in this group.

(emphasis mine)

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host

hostgroups: This directive is used to identify the short name(s) of
the hostgroup(s) that the host belongs to. Multiple hostgroups should be
separated by commas. This directive may be used as an alternative to (or
in addition to) using the members directive in hostgroup definitions.

--
marc

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Hostgroup definition

2008-05-12 Thread Jay R. Ashworth
I know that lots of the documentation about how to configure Nagios's
cfg files is in transition from 2.x (where you mostly did it one way)
to 3.0 (where you mostly do it another way), but there's a point I'm
not clear on.

It seems to me that it would be much easier to maintain if member
machines were placed in hostgroups *in each member machine's cfg file*
(cause yes, I'm using a separate file for each machine).

This doesn't seem to be the way Nagios expects me to do it, and I don't
see that there's a way to do it this way; you appear to have to define
the hostgroup in some amorphous 'somewhere', and then add all the hosts
to it *there* (which means that there are two places you have to change
when you add a new host, which I'm not fond of).

Have any of the DBMS config builder front-ends been updated to 3.0 yet?

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Joseph Stalin)

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null