Re: [Nagios-users] service dependencies with host group

2010-04-30 Thread Flyinvap
Hi,

Le Fri, 30 Apr 2010 16:48:03 +0100,
Assaf Flatto  a écrit :

> Take a look here - and it might help you sort this one out

As usual, explanations were in the doc ! Just have to find it.

  define servicedependency{
hostgroup   server
dependent_service_description   service1
service_description service2
execution_failure_criteria  u,w,c
notification_failure_criteria   u,w,c
  }

dependent_hostgroup caused the dependencies on service from all other
hosts. There is always a solution with nagios ;-)

Thank's a lot.

Regards.

-- 
Flyinvap



--
___
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] service dependencies with host group

2010-04-30 Thread Assaf Flatto
Flyinvap wrote:
> Hi,
>
> Is it possible do use service dependencies on with hostgroup ? All
> services are applied to hostgroup :
>
> define service {
> use generic
> nameservice1
> description service1
> hostgroup   server
> check_command   check1
> }
>
> define service {
> use generic
> nameservice2
> description service2
> hostgroup   server
> check_command   check2
> }
>
> Is it possible that nagios doesn't send notification for service1 if
> service2 is not OK ? I try to declare service dependency like :
>
> define servicedependency {
>dependent_hostgroup_nameserver
>dependent_service_description   service1
>hostgroup_name  server
>service_description service2
>inherits_parent 0
>execution_failure_criteria  n
>notification_failure_criteria   w,u,c
> }
>
> It take a long, long, long time to verify config
>
> $ nagios3 -v nagios.cfg
> [...]
> Checking for circular paths between hosts...
> Checking for circular host and service dependencies...
> ^C
>
> I'm afraid I have declared dependencies from each host to all other ...
>
> Regards.
>
>   
Basically what you defined is service 2 is dependent on service1 on ALL 
hosts in the hostgroup server.

and i assume you have a large number of hosts in the group so nagios is 
building a long list of dependencies .
Take a look here - and it might help you sort this one out

http://nagios.sourceforge.net/docs/3_0/objecttricks.html

-- 
Never,Ever Cut A Deal With a Dragon 


I am doing a Charity Bike ride On the 27 of June for the
Capital to Coast Charity. Please help by Donating
http://www.justgiving.com/Lovefilm-capital-to-coast



--
___
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] service dependencies with host group

2010-04-30 Thread Flyinvap
Hi,

Is it possible do use service dependencies on with hostgroup ? All
services are applied to hostgroup :

define service {
use generic
nameservice1
description service1
hostgroup   server
check_command   check1
}

define service {
use generic
nameservice2
description service2
hostgroup   server
check_command   check2
}

Is it possible that nagios doesn't send notification for service1 if
service2 is not OK ? I try to declare service dependency like :

define servicedependency {
   dependent_hostgroup_nameserver
   dependent_service_description   service1
   hostgroup_name  server
   service_description service2
   inherits_parent 0
   execution_failure_criteria  n
   notification_failure_criteria   w,u,c
}

It take a long, long, long time to verify config

$ nagios3 -v nagios.cfg
[...]
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
^C

I'm afraid I have declared dependencies from each host to all other ...

Regards.

-- 
Flyinvap



--
___
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] Service dependencies

2009-12-28 Thread Martin Melin
A service that happens to be a check_ping is not the same thing as the
host check command.

The host check command should be a plugin that determines whether or
not the host is alive - usually a ping, but can be something else.

See http://nagios.sourceforge.net/docs/3_0/hostchecks.html for more
info on this, but as Marc explained, if you set up your host
definition with a correct check_command, what will happen when a host
goes down is this (without setting up regularly scheduled host
checks):

1. A service check fails on the host
2. Nagios immediately schedules a host check for the host
3. If the host check_command fails, notifications for all services on
the host are suppressed until the host check_command clears

which is what you want in this case.

Regards
Martin Melin

On Mon, Dec 28, 2009 at 8:26 PM, Brandino Andreas  wrote:
> Are you sure that it works that way??
> I disabled notifications for "ping" service, but still I receive
> notifications from other services although the host is down
>
> Do I have to enable any other option?
>
> Thank you
> Regards
>
>
>
> Friday, December 25, 2009, 4:19:08 PM, you wrote:
>
>> On Dec 25, 2009, at 5:28 AM, Brandino Andreas wrote:
>
>>> Hi all and happy holidays!
>>>
>>> Lets assume that a host has three service checks (ping, uptime and cpu). If 
>>> for some reason
>>> connection fails, a mail for each service is being sent (with random
>>> order).
>>> Is any way when "uptime" or "cpu" check fails (not when is critical), to
>>> force a "ping service" check and finally send a notification only for that
>>> service??
>>>
>>> This behavior can be achieved somehow? With services dependencies can
>>> I force a check to be performed at specific points?
>
>> No service dependencies needed. Get rid of the ping service check
>> and make it the host check. If a service on a host fails, the host
>> is checked. If the host check returns non-OK, notifications for
>> services are suppressed and only the host down notification is sent.
>
>> --
>> Marc
>
>
>> --
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> ___
>> 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
>
> <> ---  -    -    -  --- <>
>    Brandino Andreas
>    ampra...@gmail.com
> <> ---  -    -    -  --- <>
>
>
> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> ___
> 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 Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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] Service dependencies

2009-12-28 Thread Brandino Andreas
Are you sure that it works that way??
I disabled notifications for "ping" service, but still I receive
notifications from other services although the host is down

Do I have to enable any other option?

Thank you
Regards



Friday, December 25, 2009, 4:19:08 PM, you wrote:

> On Dec 25, 2009, at 5:28 AM, Brandino Andreas wrote:

>> Hi all and happy holidays!
>> 
>> Lets assume that a host has three service checks (ping, uptime and cpu). If 
>> for some reason
>> connection fails, a mail for each service is being sent (with random
>> order).
>> Is any way when "uptime" or "cpu" check fails (not when is critical), to
>> force a "ping service" check and finally send a notification only for that
>> service??
>> 
>> This behavior can be achieved somehow? With services dependencies can
>> I force a check to be performed at specific points?

> No service dependencies needed. Get rid of the ping service check
> and make it the host check. If a service on a host fails, the host
> is checked. If the host check returns non-OK, notifications for
> services are suppressed and only the host down notification is sent.

> --
> Marc


> --
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> ___
> 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

<> ---  ---  --- <> 
Brandino Andreas
ampra...@gmail.com
<> ---  ---  --- <> 


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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] Service dependencies

2009-12-25 Thread Marc Powell

On Dec 25, 2009, at 5:28 AM, Brandino Andreas wrote:

> Hi all and happy holidays!
> 
> Lets assume that a host has three service checks (ping, uptime and cpu). If 
> for some reason
> connection fails, a mail for each service is being sent (with random
> order).
> Is any way when "uptime" or "cpu" check fails (not when is critical), to
> force a "ping service" check and finally send a notification only for that
> service??
> 
> This behavior can be achieved somehow? With services dependencies can
> I force a check to be performed at specific points?

No service dependencies needed. Get rid of the ping service check and make it 
the host check. If a service on a host fails, the host is checked. If the host 
check returns non-OK, notifications for services are suppressed and only the 
host down notification is sent.

--
Marc


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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] Service dependencies

2009-12-25 Thread Brandino Andreas
Hi all and happy holidays!

Lets assume that a host has three service checks (ping, uptime and cpu). If for 
some reason
connection fails, a mail for each service is being sent (with random
order).
Is any way when "uptime" or "cpu" check fails (not when is critical), to
force a "ping service" check and finally send a notification only for that
service??

This behavior can be achieved somehow? With services dependencies can
I force a check to be performed at specific points?

Thank you

<> ---  ---  --- <> 
Brandino Andreas
ampra...@gmail.com
<> ---  ---  --- <> 


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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] service dependencies not catching all

2009-06-10 Thread Andreas Ericsson
Assaf Flatto wrote:
>> It's supposed to do that automatically. Can you provide the relevant
>> excerpts from the logfiles showing it hasn't done so?
> here is apart of the log for one of the servers :
> 
> HOST ALERT: ftp.ssp-intl.com;DOWN;HARD;5;PING CRITICAL - Packet loss = 100%
> [1244607560] SERVICE ALERT: ftp.ssp-intl.com;Root disk 
> space;CRITICAL;HARD;1;CHECK_NRPE: Socket 
> timeout after 10 seconds.
> [1244607580] SERVICE ALERT: ftp.ssp-intl.com;User 
> count;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout 
> after 10 seconds.
> 

No, it's not. This doesn't show that a notification went out, only that
a service went critical on a host that's been determined to be down.

>> It can't be, because then all PING services would depend on themselves
>> which Nagios doesn't allow.
>> The fact that some 26 million dependencies are missing seems to indicate
>> that you've added it to a configuration file that Nagios doesn't parse.
> 
> The file is parsed since other dependency declarations in that file are 
> loaded and present in the 
> existing service dependencies.
> 

In that case you haven't restarted Nagios since you added it, or those
other dependencies are loaded from somewhere else, or you're using a
patched version of Nagios which does something magical with your
asterisks, or you're using some config setting which fscks up the
config parsing somehow, or you're using the pre-cached config option
and aren't actually loading it from the *real* configuration.

That dependency simply is not valid in any version of Nagios, so you
*can't* be actually *using* it.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies not catching all

2009-06-10 Thread Assaf Flatto
>
> It's supposed to do that automatically. Can you provide the relevant
> excerpts from the logfiles showing it hasn't done so?
here is apart of the log for one of the servers :

HOST ALERT: ftp.ssp-intl.com;DOWN;HARD;5;PING CRITICAL - Packet loss = 100%
[1244607560] SERVICE ALERT: ftp.ssp-intl.com;Root disk 
space;CRITICAL;HARD;1;CHECK_NRPE: Socket 
timeout after 10 seconds.
[1244607580] SERVICE ALERT: ftp.ssp-intl.com;User 
count;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout 
after 10 seconds.

> It can't be, because then all PING services would depend on themselves
> which Nagios doesn't allow.
> The fact that some 26 million dependencies are missing seems to indicate
> that you've added it to a configuration file that Nagios doesn't parse.

The file is parsed since other dependency declarations in that file are loaded 
and present in the 
existing service dependencies.

Assaf


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies not catching all

2009-06-10 Thread Andreas Ericsson
Assaf Flatto wrote:
>> There is an automatic service->host dependency that suppresses
>> notifications for all services that are on hosts in a non-UP state, so this
>> seems like an exercise in futility to me.
> 
> In that case can you point me to the location where i configure nagios to 
> respond that way , since 
> it is not working in my setup ( nagios 3.0.6 from source , on SLES 10.2) ?
> 

It's supposed to do that automatically. Can you provide the relevant
excerpts from the logfiles showing it hasn't done so?

>>> define servicedependency{
>>> host_name  *
>>> service_description PING
>>> dependent_host_name*
>>> dependent_service_description   *
>>> execution_failure_criteria  c,u,w
>>> notification_failure_criteria   c,u,w
>>> inherits_parent
>>> }
>>>  In my calculation i should be having a list of 2400 dependencies and in
>>> the "show config- > service dependencies " it should generate a list of
>>> 4800 lines .
>> This would add 360*360*(2400-$services_named_PING) dependencies.
>> Assuming you have one PING service on each host, that's a total of
>> 264384000 service-dependencies. *ALL* those dependencies would be
>> circular, so this simply cannot be how you have configured Nagios.
> 
> I hate to disagree , but this is the setting i have in my nagios and i do no 
> have the "264384000 " 
> dependencies .
> 

It can't be, because then all PING services would depend on themselves
which Nagios doesn't allow.
The fact that some 26 million dependencies are missing seems to indicate
that you've added it to a configuration file that Nagios doesn't parse.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies not catching all

2009-06-10 Thread Assaf Flatto
>
> There is an automatic service->host dependency that suppresses
> notifications for all services that are on hosts in a non-UP state, so this
> seems like an exercise in futility to me.

In that case can you point me to the location where i configure nagios to 
respond that way , since 
it is not working in my setup ( nagios 3.0.6 from source , on SLES 10.2) ?

> > define servicedependency{
> > host_name  *
> > service_description PING
> > dependent_host_name*
> > dependent_service_description   *
> > execution_failure_criteria  c,u,w
> > notification_failure_criteria   c,u,w
> > inherits_parent
> > }
> >  In my calculation i should be having a list of 2400 dependencies and in
> > the "show config- > service dependencies " it should generate a list of
> > 4800 lines .
>
> This would add 360*360*(2400-$services_named_PING) dependencies.
> Assuming you have one PING service on each host, that's a total of
> 264384000 service-dependencies. *ALL* those dependencies would be
> circular, so this simply cannot be how you have configured Nagios.

I hate to disagree , but this is the setting i have in my nagios and i do no 
have the "264384000 " 
dependencies .


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies not catching all

2009-06-10 Thread Andreas Ericsson
Assaf Flatto wrote:
> hello list
> 
> I have an odd issue with service dependencies 
> 
> I have 360 hosts with 2400 services  in my nagios , and i thought i set up an 
> "all encompassing" 
> service dependency in order to get only one alert of a host goes down .
> 

There is an automatic service->host dependency that suppresses notifications
for all services that are on hosts in a non-UP state, so this seems like an
exercise in futility to me.

> define servicedependency{
> host_name  *
> service_description PING
> dependent_host_name*
> dependent_service_description   *
> execution_failure_criteria  c,u,w
> notification_failure_criteria   c,u,w
> inherits_parent 
> }
>  In my calculation i should be having a list of 2400 dependencies and in the 
> "show config- > service 
> dependencies " it should generate a list of 4800 lines .
> 

This would add 360*360*(2400-$services_named_PING) dependencies.
Assuming you have one PING service on each host, that's a total of
264384000 service-dependencies. *ALL* those dependencies would be
circular, so this simply cannot be how you have configured Nagios.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies not catching all

2009-06-10 Thread Assaf Flatto
hello list

I have an odd issue with service dependencies 

I have 360 hosts with 2400 services  in my nagios , and i thought i set up an 
"all encompassing" 
service dependency in order to get only one alert of a host goes down .

define servicedependency{
host_name  *
service_description PING
dependent_host_name*
dependent_service_description   *
execution_failure_criteria  c,u,w
notification_failure_criteria   c,u,w
inherits_parent 
}
 In my calculation i should be having a list of 2400 dependencies and in the 
"show config- > service 
dependencies " it should generate a list of 4800 lines .

However when testing nagios -v i get 
Checking service dependencies...
Checked 968 service dependencies
meaning that a large part of the hosts and service dependencies are not 
captured .

I do have other dependencies for other services (snmp chekcs relaying on the 
snmp service being 
active) , and those are in the 968 .

Can anyone tell me why this happens ?
Should i declare the service dependencies for each host individually - that 
kind of beats the 
purpose of a * declaration in the host.

Thank you 

Assaf



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] service dependencies on a single host?

2008-10-14 Thread Andy Shellam
Hi Thomas,

Thomas Guyot-Sionnest wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 14/10/08 01:29 PM, Michael W. Lucas wrote:
>   
>> Hi,
>>
>> I'm currently monitoring many services on certain hosts via SNMP, and
>> making extensive use of host groups to ease configuration for my
>> several hundred hosts.
>>
>> On occasion, the SNMP service on a host fails.  This triggers dozens
>> of alarms.  I would like to have each service checked via SNMP depend
>> on the base SNMP service, so that when SNMP fails I only get one
>> alarm.  I investigated service dependencies, but they don't seem
>> amenable to hostgroup-friendly configuration.
>>
>> If I do something like:
>>
>> define servicedependency {
>>  hostgroup_name  NetSnmpServers
>>  service_description Snmp
>>  dependent_host_name NetSnmpServers
>>  ...
>> }
>>
>> that obviously isn't going to work.
>>
>> Surely other people have encountered this before?  Any suggestions?
>> 
>
> same-host dependencies (or something similar) implemented in Nagios
> v3.0. Just omit the dependent_host*_name and dependencies will only
> occur within the same hosts. You can therefore apply it to hostsgroups
> without having deps between hosts.
>
> I have a patch for 2.x around if you need.
>   
Fantastic!  I actually wrote a tool to do this back in Nagios 
2.something, but I've lost the original code for it, so I'm glad it's 
been sorted in 3.0.  We need to do the same thing for NRPE - if the NRPE 
daemon fails, we get a bomb of alerts - glad to hear this is no more.

Andy

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] service dependencies on a single host?

2008-10-14 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/10/08 01:29 PM, Michael W. Lucas wrote:
> Hi,
> 
> I'm currently monitoring many services on certain hosts via SNMP, and
> making extensive use of host groups to ease configuration for my
> several hundred hosts.
> 
> On occasion, the SNMP service on a host fails.  This triggers dozens
> of alarms.  I would like to have each service checked via SNMP depend
> on the base SNMP service, so that when SNMP fails I only get one
> alarm.  I investigated service dependencies, but they don't seem
> amenable to hostgroup-friendly configuration.
> 
> If I do something like:
> 
> define servicedependency {
>   hostgroup_name  NetSnmpServers
>   service_description Snmp
>   dependent_host_name NetSnmpServers
>   ...
> }
> 
> that obviously isn't going to work.
> 
> Surely other people have encountered this before?  Any suggestions?

same-host dependencies (or something similar) implemented in Nagios
v3.0. Just omit the dependent_host*_name and dependencies will only
occur within the same hosts. You can therefore apply it to hostsgroups
without having deps between hosts.

I have a patch for 2.x around if you need.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI9ODh6dZ+Kt5BchYRAkcwAKDDmM796MpVMvwUEqMt2YjVsqH6UwCfTOQV
01Ng9QV42iJWfjG4VedN+rk=
=jDzR
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] service dependencies on a single host?

2008-10-14 Thread Michael W. Lucas
Hi,

I'm currently monitoring many services on certain hosts via SNMP, and
making extensive use of host groups to ease configuration for my
several hundred hosts.

On occasion, the SNMP service on a host fails.  This triggers dozens
of alarms.  I would like to have each service checked via SNMP depend
on the base SNMP service, so that when SNMP fails I only get one
alarm.  I investigated service dependencies, but they don't seem
amenable to hostgroup-friendly configuration.

If I do something like:

define servicedependency {
hostgroup_name  NetSnmpServers
service_description Snmp
dependent_host_name NetSnmpServers
...
}

that obviously isn't going to work.

Surely other people have encountered this before?  Any suggestions?

Thanks,
==ml


-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
"My pessimism extends to the point of even suspecting the sincerity of
  the pessimists." -- Jean Rostand, French biologist and philosopher

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] Service Dependencies

2008-07-16 Thread Janet Post
Hello,

I'm pretty sure you just use a ! (bang) to filter out your ping test:

define servicedependency{
   host_name   Mickeymouse
   service_description PING
   dependent_host_name Mickeymouse
   dependent_service_description   *, !PING
   execution_failure_criteria  c,p,u
   notification_failure_criteria   c,u,p
   }

It might need to be on another line.  I haven't used the bang in this
context before,  but it should work.

Janet


On Wed, Jul 16, 2008 at 5:33 AM, Assaf Flatto <[EMAIL PROTECTED]>
wrote:

> Hello
>
> I'm tweaking around with service dependencies and wanted to ask something
> that when i think about it
> will fail , but i  still keep the hope that nagios inner logic will not see
> mt setup so literally
> and work as i hope it will.
>
> I have a host with 23 services checked on it (i have several of those and
> i'm being lazy hence this
> question) :
> i want to define all the services on the server as being dependent on the
> ping ( connectivity comes
> first , after all) , but instead of type all the other services names , i
> want to do the "catch
> all" and be done with is .
> My question is - will nagios be smart enough to understand that the ping is
> not included in the * ?
> seems logical that it will be excluded since it is the Master service , but
> i am don't want to
> assume anything.
>
> define servicedependency{
>host_name   Mickeymouse
>service_description PING
>dependent_host_name Mickeymouse
>dependent_service_description   *
>execution_failure_criteria  c,p,u
>notification_failure_criteria   c,u,p
>}
>
>  Assaf
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential,
> legally
> privileged and/or protected by law. It is intended solely for the use of
> the
> person to whom it is addressed. If you are not the intended recipient,
> please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email
> communications. We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery
> or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service
> Partner UK
> Limited. Should you communicate with anyone at Select Service Partner UK
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and
> Wales
> (company number 05687183) whose registered office is at 1 The Heights,
> Brooklands, Weybridge. Surrey. KT13 0NY
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] Service Dependencies

2008-07-16 Thread Assaf Flatto
Hello 

I'm tweaking around with service dependencies and wanted to ask something that 
when i think about it 
will fail , but i  still keep the hope that nagios inner logic will not see mt 
setup so literally 
and work as i hope it will.

I have a host with 23 services checked on it (i have several of those and i'm 
being lazy hence this 
question) :
i want to define all the services on the server as being dependent on the ping 
( connectivity comes 
first , after all) , but instead of type all the other services names , i want 
to do the "catch 
all" and be done with is .
My question is - will nagios be smart enough to understand that the ping is not 
included in the * ?
seems logical that it will be excluded since it is the Master service , but i 
am don't want to 
assume anything.

define servicedependency{
host_name   Mickeymouse
service_description PING
dependent_host_name Mickeymouse
dependent_service_description   *
execution_failure_criteria  c,p,u
notification_failure_criteria   c,u,p
}

 Assaf





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] Service dependencies

2007-11-05 Thread Matthias Haider
Hi folks,

i am trying to use service dependencies and i am unsure if the
dependencies will get check further than for the "nearest neighbour"?

For example, A depends on B, and B dependes on C
Will in an failure event of A the dependency get checked until C, or
will i have to write an explicit dependency "A depends on C"

thanks in advance,
br,
Matthias Haider
-- 


*
Content Management AG
Dipl.- Phys. Matthias Haider
Im Mediapark 6
50670 Koeln
Germany
Tel.: +49 (0) 221 4545200
Fax.: +49 (0) 221 4545221
E-Mail: [EMAIL PROTECTED]
Internet: www.cm4all.com

Amtsgericht Koeln, HRB 32668
*



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Service dependencies

2007-07-09 Thread Matthew Joyce

Is there a way to configure service dependencies to cater for
redundancies ?

Service_A depends on (Service_B OR Service_C)

Or does it only do Service_A depends on (Service_B AND Service_C)

Thanks

Matthew Joyce 
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] service dependencies and failover

2007-06-05 Thread Masoud Tabrizi
I was thinking more towards using the event handlers and service
dependencies;
With the rapper it would be necessary to wrap each one of the checks in a
separate wrapper script; (if I am not mistaken).


+++
Masoud Tabrizi
[EMAIL PROTECTED]
+++
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phil
Costelloe
Sent: Friday, June 01, 2007 10:00 AM
To: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] service dependencies and failover

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Masoud
Tabrizi

> Trying to monitor db services in a cluster/failover environment using
check_oracle
> plug-in; all NRPE checks are done against the virtual IP of the DB; I
would like to 
> enable the same services on the secondary host yet with a dependency
on the file
> system mount point which would make the DB available. Theoretically
once the file 
> system is available then the services should become active on the
secondary host and 
> inactive on the other.
>
> Any idea how to do this?

If I'm understanding what you want correctly, one way to do it would be
to write a wrapper script for the checks that would look first at
whether the filesystem is mounted. If it isn't, return OK and a message
like "Currently inactive". If it is, call the actual plugin requested
and return whatever that outputs.

Phil
 


Phil Costelloe
Technical Consultant

   
[EMAIL PROTECTED]
http://www.foundation-it.com
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299

 


 

   

 




 
This message contains confidential information and is intended only for
[EMAIL PROTECTED] If you are not
Nagios-users@lists.sourceforge.net you should not disseminate, distribute or
copy this e-mail. Please notify Foundation IT immediately by e-mail if you
have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Foundation IT therefore does not accept
liability for any errors or omissions in the contents of this message, which
arise as a result of e-mail transmission. If verification is required please
request a hard-copy version. 
 
Foundation IT
Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire,
RG18 9SE
Registered in England Number 3281803


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] service dependencies and failover

2007-06-01 Thread Phil Costelloe
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Masoud
Tabrizi

> Trying to monitor db services in a cluster/failover environment using
check_oracle
> plug-in; all NRPE checks are done against the virtual IP of the DB; I
would like to 
> enable the same services on the secondary host yet with a dependency
on the file
> system mount point which would make the DB available. Theoretically
once the file 
> system is available then the services should become active on the
secondary host and 
> inactive on the other.
>
> Any idea how to do this?

If I'm understanding what you want correctly, one way to do it would be
to write a wrapper script for the checks that would look first at
whether the filesystem is mounted. If it isn't, return OK and a message
like "Currently inactive". If it is, call the actual plugin requested
and return whatever that outputs.

Phil
 


Phil Costelloe
Technical Consultant

   
[EMAIL PROTECTED]
http://www.foundation-it.com
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299

 


 

   

 




 
This message contains confidential information and is intended only for [EMAIL 
PROTECTED] If you are not Nagios-users@lists.sourceforge.net you should not 
disseminate, distribute or copy this e-mail. Please notify Foundation IT 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. Foundation IT 
therefore does not accept liability for any errors or omissions in the contents 
of this message, which arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version. 
 
Foundation IT
Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, 
RG18 9SE
Registered in England Number 3281803


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] service dependencies and failover

2007-06-01 Thread Masoud Tabrizi
All,

Trying to monitor db services in a cluster/failover environment using
check_oracle plug-in; all NRPE checks are done against the virtual IP of the
DB; I would like to enable the same services on the secondary host yet with
a dependency on the file system mount point which would make the DB
available. Theoretically once the file system is available then the services
should become active on the secondary host and inactive on the other.

 

Any idea how to do this?

 

Thanks in advance,

 

M 

 

+++

Masoud Tabrizi

[EMAIL PROTECTED]

Phone: (617) 872-2052

+++

 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Service Dependencies - NULL service description

2007-05-14 Thread andy . shellam-lists
Hi,

I raised this back in February with Nagios 2.7
(http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg09830.html),
but just realised I hadn't had an answer to the original thread.  This is
still a problem with Nagios 2.9.  Can anyone confirm what I'm doing wrong?

I have a host called "Sydney-2" which hosts 18 websites.  These websites are
all defined as a check in Nagios in the service group "web_sites". 

The host also has a service check called "Web Service" which checks that
Apache is alive and running.

What I want to do is set up a service dependency of all websites in the
web_sites group on that web service.

According to the manual, this is valid:

define servicedependency {
host_name   Sydney-2
service_description Web Service
dependent_host_name Sydney-2
dependent_servicegroup_name web_sites
execution_failure_criteria  c
notification_failure_criteria   w,u,c,p
inherits_parent 0
}

However, when trying to verify with Nagios:

Error: NULL service description/host name in service dependency definition
Error: Could not register service execution dependency (config file
'/usr/local/nagios/etc/config/service_dependencies.cfg', starting on line 23)

Line 23 is the line that begins the above service dependency.

Any ideas?

Thanks,
Andy.
_
DISCLAIMER

This e-mail was sent through a Mail Network server.
The Mail Network accepts no liability for it's content.




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service Dependencies - how to make a new one

2007-04-17 Thread Merrett, Mike
Hi:
Does anyone know how to make a service dependency work globally?
For example I want to do this but it doesn't seem to work (at least in
3.0a3)
 
define servicedependency {
  hostgroups   2003-servers, 200-servers, XP-servers
  service_descriptionNT_Stats_Port
  dependent_service_description UPTIME
  notification_failure_criteria w,c,u,p
}

WITH
 
define service{
   hostgroup_name2003-servers, 2000-servers, XP-servers
   service_description   UPTIME
   check_command check_nt_uptime
   use  generic-service
}
 
AND
define service{
   hostgroup_name2003-servers, 2000-servers, XP-servers
   service_description   NT_Stats_Port
   check_command check_tcp!1248
   use  generic-service
}
 
I get 2 errors:
Error: A circular notification dependency (which could result in a
deadlock) exists for service 'NT_Stats_Port' on host 'hosta'!
Error: A circular notification dependency (which could result in a
deadlock) exists for service 'UPTIME' on host 'hosta'!

 
 
Thanks in advance
 
Mike Merrett
 
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Service dependencies not disabling notifications

2007-04-16 Thread C. Bensend

> I don't know if it makes a difference, and I may have missed some new
> parameters that have been added since the docs were revised, but I'm not
> sure "p" is a valid failure criterion.

According to the docs, it is.

But nevertheless, I've tried it with and without, and it doesn't
work either way.  :(

Thanks,

Benny


-- 
I've said it before and I'll say it again: If I ever catch a spammer,
I will hang him upside down with rusty barbed wire by his nether-regions
over a pit of rabid lawyers who haven't eaten in days...
  -- Benjamin A. Shelton



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service dependencies not disabling notifications

2007-04-16 Thread Morris, Patrick
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of C. Bensend
> Sent: Sunday, April 15, 2007 7:38 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Service dependencies not disabling 
> notifications
> 

> # Servicedependency definition
> define servicedependency{
> host_name   electron
> service_description nrpe
> dependent_host_name electron
> dependent_service_description   freshclam
> execution_failure_criteria  w,u,c,p
> notification_failure_criteria   w,u,c,p
> }

I don't know if it makes a difference, and I may have missed some new
parameters that have been added since the docs were revised, but I'm not
sure "p" is a valid failure criterion.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service dependencies not disabling notifications

2007-04-15 Thread C. Bensend

> Take a very close look at the output of "nagios -v". It happened to me
> in the past that making a small error in the servicedependency
> definitions would make Nagios discard them as "Lame service dependency"
> without counting it in the warning/error count. This is logged at the
> top and discarded before Nagios enters the objects verification step.
>
> This is likely your problem. Maybe this should cause Nagios to die
> instead of skipping part of the configuration

Thanks for the suggestion, Thomas, but I don't see any problems:


Nagios 2.8
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 03-08-2007
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 77 services.
Checking hosts...
Checked 12 hosts.
Checking host groups...
Checked 4 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 64 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 73 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 11 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight
check


:(

Benny


-- 
I've said it before and I'll say it again: If I ever catch a spammer,
I will hang him upside down with rusty barbed wire by his nether-regions
over a pit of rabid lawyers who haven't eaten in days...
  -- Benjamin A. Shelton



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service dependencies not disabling notifications

2007-04-15 Thread Thomas Guyot-Sionnest
On 15/04/07 10:38 PM, C. Bensend wrote:
> Hey folks,
> 
> 
> 
> nagios -v is happy with this, it does not complain about any config
> errors.  However, if I kill NRPE on electron, I get an alert for
> each of the supposedly dependent services.  I am absolutely at a
> loss to see why.
> 
> I have been through /nagios/docs/xodtemplate.html#servicedependency a
> gazillion times - what in the heck am I missing?  No matter what options I
> give for *_failure_criteria, I cannot get the dependency to NOT alert me
> when NRPE is down on electron.
> 
> This is driving me nuts.  If someone could point out where I'm going
> wrong, I'd _really_ appreciate it.

Take a very close look at the output of "nagios -v". It happened to me
in the past that making a small error in the servicedependency
definitions would make Nagios discard them as "Lame service dependency"
without counting it in the warning/error count. This is logged at the
top and discarded before Nagios enters the objects verification step.

This is likely your problem. Maybe this should cause Nagios to die
instead of skipping part of the configuration

Thomas

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service dependencies not disabling notifications

2007-04-15 Thread C. Bensend

Hey folks,

   I could swear I've asked this before, but neither Google nor the
mailing list archives showed any posts.  My apologies if this is
indeed a repeat, my memory flakes out sometimes.

   I have a v2.8 installation on an OpenBSD machine.  It was built
from source, not installed via packages/ports.

   I have another OpenBSD machine called electron:


# 'electron' host definition
define host{
use generic-host
host_name   electron
alias   OpenBSD workstation - electron
address electron.bennyvision.com
check_command   check-host-alive
max_check_attempts  15
notification_interval   0
notification_period none
notification_optionsd,u,r
contact_groups  admins-email
}


It's just a workstation, I don't care as much if it's offline as if it's
online and something's broken, hence the 'notification_period 0'. I have
three services set up, that are checked via NRPE:


# Service definition
define service{
use generic-service
host_name   electron
service_description clamd
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_procs_nrpe!1:1!clamd }

# Service definition
define service{
use generic-service
host_name   electron
service_description freshclam
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_procs_nrpe!1:1!freshclam }

# Service definition
define service{
use generic-service
host_name   electron
service_description freshclam log
is_volatile 0
check_period24x7
max_check_attempts  6
normal_check_interval   3
retry_check_interval1
contact_groups  admins-email
notification_interval   240
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_freshclam_log_nrpe
}


Basically, I'm checking to make sure clamd and freshclam are running, and
that freshclam is actually updating it's log file, respectively. These all
work just fine, NRPE is executing the checks, it all works. I get notified
just fine if I kill a service or NRPE, and I get the recovery emails as
well when I start them back up.  Yay.

However, I want to set up service dependencies for NRPE on this and all my
other hosts, so if something weird happens to it, I don't get spanked by a
gazillion alerts for each service.  This shouldn't be that difficult, but
I cannot for the life of me get service dependencies working as I think
they should.

I have three service dependencies set up for electron:


# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   clamd
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   freshclam
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

# Servicedependency definition
define servicedependency{
host_name   electron
service_description nrpe
dependent_host_name electron
dependent_service_description   freshclam log
execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}


nagios -v is happy with this, it does not complain about any config
errors.  However, if I kill NRPE on electron, I get an alert for
each of the supposedly dep

Re: [Nagios-users] service dependencies

2007-04-03 Thread Rudy Setiawan
Yeah I got it backwards :)
thank you guys!

Regards,
Rudy


-Original Message-
From: James Tran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 03, 2007 12:07 PM
To: Patrick Morris
Cc: Rudy Setiawan; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] service dependencies

Patrick Morris wrote:
> On Tue, 03 Apr 2007, Rudy Setiawan wrote:
>
>   
>> If nagios check that if PING does not reply, then do not check the
rest
>> of the services (SSH,SMTP and WEB).
>>
>> define servicedependency{
>>
>> host_name   newton.domain.com
>>
>> service_description SSH NEWTON
>>
>> dependent_host_name newton.domain.com
>>
>> dependent_service_description   PING NEWTON
>>
>> execution_failure_criteria  w
>>
>> notification_failure_criteria   u
>>
>> }
>> 
>
> You've got them backwards.
>
>

-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
> ___
> 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
>   
Ok well apparently this works ok now for some reason. If i find out what

went wrong i'll post it here but i don't seem to be getting the same 
problem anymore

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] service dependencies

2007-04-03 Thread James Tran
James Tran wrote:
> Patrick Morris wrote:
>   
>> On Tue, 03 Apr 2007, Rudy Setiawan wrote:
>>
>>   
>> 
>>> If nagios check that if PING does not reply, then do not check the rest
>>> of the services (SSH,SMTP and WEB).
>>>
>>> define servicedependency{
>>>
>>> host_name   newton.domain.com
>>>
>>> service_description SSH NEWTON
>>>
>>> dependent_host_name newton.domain.com
>>>
>>> dependent_service_description   PING NEWTON
>>>
>>> execution_failure_criteria  w
>>>
>>> notification_failure_criteria   u
>>>
>>> }
>>> 
>>>   
>> You've got them backwards.
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> 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
>>   
>> 
> Ok well apparently this works ok now for some reason. If i find out what 
> went wrong i'll post it here but i don't seem to be getting the same 
> problem anymore
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>   
oops sorry wrong thread

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] service dependencies

2007-04-03 Thread James Tran
Patrick Morris wrote:
> On Tue, 03 Apr 2007, Rudy Setiawan wrote:
>
>   
>> If nagios check that if PING does not reply, then do not check the rest
>> of the services (SSH,SMTP and WEB).
>>
>> define servicedependency{
>>
>> host_name   newton.domain.com
>>
>> service_description SSH NEWTON
>>
>> dependent_host_name newton.domain.com
>>
>> dependent_service_description   PING NEWTON
>>
>> execution_failure_criteria  w
>>
>> notification_failure_criteria   u
>>
>> }
>> 
>
> You've got them backwards.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>   
Ok well apparently this works ok now for some reason. If i find out what 
went wrong i'll post it here but i don't seem to be getting the same 
problem anymore

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] service dependencies

2007-04-03 Thread Patrick Morris
On Tue, 03 Apr 2007, Rudy Setiawan wrote:

> If nagios check that if PING does not reply, then do not check the rest
> of the services (SSH,SMTP and WEB).
> 
> define servicedependency{
> 
> host_name   newton.domain.com
> 
> service_description SSH NEWTON
> 
> dependent_host_name newton.domain.com
> 
> dependent_service_description   PING NEWTON
> 
> execution_failure_criteria  w
> 
> notification_failure_criteria   u
> 
> }

You've got them backwards.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] service dependencies

2007-04-03 Thread Rudy Setiawan
Hi All,

 

I have a little bit problem with service dependency syntax


Let's say I have the following host

 

Host 1 with SSH and PING being monitored by nagios.

 

If nagios check that if PING does not reply, then do not check the rest
of the services (SSH,SMTP and WEB).

 

The current config:

 

define service{

use host-generic-service

host_name   newton.domain.com

service_description PING NEWTON

check_command   check_ping!100.0,20%!500.0,60%

}

 

define service{

use host-generic-service

host_name   newton.domain.com

service_description SSH NEWTON

check_command   check_ssh

}

 

define servicedependency{

host_name   newton.domain.com

service_description SSH NEWTON

dependent_host_name newton.domain.com

dependent_service_description   PING NEWTON

execution_failure_criteria  w

notification_failure_criteria   u

}

 

Will this do it? Or am I missing something?

 

Thank you.


Rudy

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Service Dependencies - How do you do yours?

2007-02-28 Thread Andy Shellam (Mailing Lists)
Hari,

I have this exact problem (raised it a few weeks ago.)
I've got it on my to-do list to create a shell script (probably PHP) 
that will create a service_dependencies.cfg file for you with each host 
and it's NRPE services.

I'll try and get round to it this weekend and post on Nagios Exchange.  
I'll probably even post it as a page on my webserver so you won't have 
to have PHP locally.

HTH

Andy.

Hari Sekhon wrote:
> Hi,
>I'm using NRPE to check a lot of things, but it occurs to me that if 
> nrpe goes down, I will receive a storm of emails about all the things 
> that it checks.
>
> So I want to create service_dependencies which say, for example, "all 
> Ram checks must depend on check serviceX on the same host" where 
> "serviceX" is also an nrpe check that always succeeds.
> Therefore, if NRPE breaks for any reason, it should only alert me once 
> for serviceX
>
> Of course, I'm not sure this could be done in a very easily templated 
> way. I've had a look at the templating docs again but it seems to me 
> that group hosts or service together will create a lattice of 
> dependencies across hosts or services which will probably mean that any 
> broken service on any host will prevent all dependent services from 
> sending notifications for any other host.
>
> Any ideas on this?
>
> -h
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Service Dependencies - How do you do yours?

2007-02-28 Thread Hari Sekhon
Hi,
   I'm using NRPE to check a lot of things, but it occurs to me that if 
nrpe goes down, I will receive a storm of emails about all the things 
that it checks.

So I want to create service_dependencies which say, for example, "all 
Ram checks must depend on check serviceX on the same host" where 
"serviceX" is also an nrpe check that always succeeds.
Therefore, if NRPE breaks for any reason, it should only alert me once 
for serviceX

Of course, I'm not sure this could be done in a very easily templated 
way. I've had a look at the templating docs again but it seems to me 
that group hosts or service together will create a lattice of 
dependencies across hosts or services which will probably mean that any 
broken service on any host will prevent all dependent services from 
sending notifications for any other host.

Any ideas on this?

-h

-- 
Hari Sekhon


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Service Dependencies - refer to self

2007-02-07 Thread Andy Shellam (Mailing Lists)

Matthew Joyce wrote:
I like to see this issue come up time and time again, if only to 
hopefully get address in v2.8 or v3
It would be so much simpler if there was a parent_service directive in 
the service definition.
 
Andy, will you share you php script ?
 
Thanks


Hi Matt,

Yep no problem, unfortunately I'm short of time at the moment, but as 
and when I've done it I'll let you have it.


Thanks,

Andy.

 
 
*Matthew Joyce*
02 9382 0051* |* IT Manager* |* Children's Cancer Institute Australia 
for Medical Research
 



*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of
*Andy Shellam (Mailing Lists)
*Sent:* Monday, 5 February 2007 7:24 PM
*To:* moshe sharon
*Cc:* Nagios Users Mailing List
*Subject:* Re: [Nagios-users] Service Dependencies - refer to self

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a

service called NRPE
and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 <http://212.150.36.20>
 
when running this command against NRPE daemon you should get

response "NRPE v2.0"
 
now create your dependencies that this NRPE is the master

server and the other dependent on it.


Yes, that's what I've done, but how do you do it by simply
defining one dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client
service depend on every other NRPE server in the network, not just
the server that service instance runs on.


Andy.

!DSPAM:37,45c9284218511209245668! 



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-06 Thread Matthew Joyce
I like to see this issue come up time and time again, if only to
hopefully get address in v2.8 or v3
It would be so much simpler if there was a parent_service directive in
the service definition.
 
Andy, will you share you php script ?
 
Thanks
 
 
Matthew Joyce 
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research 
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Shellam (Mailing Lists)
Sent: Monday, 5 February 2007 7:24 PM
To: moshe sharon
Cc: Nagios Users Mailing List
Subject: Re: [Nagios-users] Service Dependencies - refer to self


moshe sharon wrote: 

Hi
 
its pretty simple solution without perl script. create a
service called NRPE 
and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20
 
when running this command against NRPE daemon you should
get response "NRPE v2.0"
 
now create your dependencies that this NRPE is the
master server and the other dependent on it.


Yes, that's what I've done, but how do you do it by simply
defining one dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client
service depend on every other NRPE server in the network, not just the
server that service instance runs on.


Andy.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-05 Thread Andy Shellam (Mailing Lists)

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a service 
called NRPE

and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 
 
when running this command against NRPE daemon you should get response 
"NRPE v2.0"
 
now create your dependencies that this NRPE is the master server and 
the other dependent on it.


Yes, that's what I've done, but how do you do it by simply defining one 
dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client service 
depend on every other NRPE server in the network, not just the server 
that service instance runs on.



Andy.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-04 Thread moshe sharon

Hi

its pretty simple solution without perl script. create a service called NRPE

and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20

when running this command against NRPE daemon you should get response "NRPE
v2.0"

now create your dependencies that this NRPE is the master server and the
other dependent on it.

Hope it Help

Moshe Sharon
http://www.centerity.com



On 2/4/07, Andy Shellam (Mailing Lists) <
[EMAIL PROTECTED]> wrote:


Hugo van der Kooij wrote:

On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:



Is there any way to make a service dependency refer to the service's own
host?


In your case I would write a tiny script and generate the service
dependencies. I guess some 20 lines of perl might do the trick if you are
fluent in perl.

Hugo.




Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other
than the very basics.
Was just hoping there may have been an easier way I'd missed in the docs
;)


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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





--
Moshe Sharon
http://www.centerity.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)

Hugo van der Kooij wrote:

On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:

  

Is there any way to make a service dependency refer to the service's own
host?



In your case I would write a tiny script and generate the service 
dependencies. I guess some 20 lines of perl might do the trick if you are 
fluent in perl.


Hugo.

  


Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other 
than the very basics.

Was just hoping there may have been an easier way I'd missed in the docs ;)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-04 Thread Hugo van der Kooij
On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:

> Is there any way to make a service dependency refer to the service's own
> host?

In your case I would write a tiny script and generate the service 
dependencies. I guess some 20 lines of perl might do the trick if you are 
fluent in perl.

Hugo.

-- 
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)
Is there any way to make a service dependency refer to the service's own 
host?

For example:

I have a list of services that perform basic health checking 
(disk-space, swap-space, load, uptime etc) across all servers defined in 
Nagios.
There is also a service on every server that checks that NRPE is running.

What I'd like to do is create a service dependency so that all the basic 
health checks only get checked/notified if NRPE is running.
However, I cannot seem to create a dependency that refers to it's own host.

E.g.

define servicedependency {
hostgroup_nameall_servers
service_descriptionRemote Monitoring Agent
dependent_hostgroup_nameall_servers
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

What this does, and I understand why, is that one server's "Disk Space 
(OS)" service depends on every other server's "Remote Monitoring Agent", 
instead of just it's own.

I'd need something like:

define servicedependency {
host_name_self
service_descriptionRemote Monitoring Agent
dependent_host_name_self
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

So the service "Disk Space (OS)" is dependent on the "Remote Monitoring 
Agent" on that same server.

The only way forward I can see for now is creating a service dependency 
for every host, for every health check service (which for me means 
upwards of 40 dependencies.)

I hope this is a good enough explanation of what I'm trying to do - can 
this be done?

Thanks

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] service dependencies not working

2006-09-14 Thread Matteo Corti
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I tried to configure a service dependency between a couple of HTTP
servers and a MySQL server they depend on.

In dependencies.cgf I have:

define servicedependency{
host_name   mysqlweb
service_description MYSQL
dependent_host_name someserver
dependent_service_description   HTTPS
execution_failure_criteria  n
notification_failure_criteria   w,u,c
}

where mysqlweb is the server where the MYSQL service is running and
someserver is where the HTTP server is running.

Tonight the mysql server disappeared but I continued to receive
notifications for both services.

Any hints or suggestions?

Many thanks,

Matteo

- --
Matteo Corti
ETH Zurich
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFCQOlLEG/T0gggJsRAi4FAJ9SOPbeNUGYZwVTJUi+aERIutthTQCeOBnE
w9Py/bAEY8Z7h7eovNCqZug=
=CDgW
-END PGP SIGNATURE-

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Service dependencies patch for self referring and 1:1 joins

2006-09-01 Thread John P. Rouillard
Hello all:

One of the things I have wanted to do is to create servicedependencies
like:

define servicedependency{
dependent_host_name a,b,c,d,e,f,g,h,i
dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
host_name SELF
service_description SshCheck
notification_failure_criteria c,w
}

that will be interpreted as though I had specified:

define servicedependency{
dependent_host_name a
dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
host_name a
service_description SshCheck
notification_failure_criteria c,w
}

define servicedependency{
dependent_host_name b
dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
host_name b
service_description SshCheck
notification_failure_criteria c,w
}

define servicedependency{
dependent_host_name c
dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
host_name c
service_description SshCheck
notification_failure_criteria c,w
}

...
define servicedependency{
dependent_host_name i
dependent_service_description sa, sb, sc, sd, se, sf, sg, sh, si, sj
host_name i
service_description SshCheck
notification_failure_criteria c,w
}

I found this email:

  http://thread.gmane.org/gmane.network.nagios.user/19511/focus=19511

that points to this patch:

  http://www.xney.com/nagios/nagios-2.0-servicedep.patch

that claims to do exactly what I want and may also work similarly
with:

  define servicedependency{
  dependent_servicegroup_name check_by_ssh
  host_name SELF
  service_description SshCheck
  notification_failure_criteria c,w
  }

Does anybody use this patch? It seems to greatly simplify a very
common case where you have multiple services dependent on another
service running on the SAME host.

Does anybody know if this feature is planned for nagios 3.0?

-- rouilj
John Rouillard
===
My employers don't acknowledge my existence much less my opinions.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] service dependencies problem

2006-05-31 Thread Deborah Martin
One of your (many) definitions is : 

define servicedependency{
  host_name   sonorys_gateway
  service_description PING
  dependent_host_name sonorys_checkpoint
  dependent_service_description   PING
  notification_failure_criteria   c,u
  execution_failure_criteria  c,u

I don't think you can have dependency_service_description being the same as
the 'service_description' as it will just loop. 

In the nagios -v check, you should probably have also seen under 'Checking
service dependencies' an error 
along the lines of 'dependency definition for service '' on
host  is circular (it depends on itself'  

I've just tested this scenario and errors are the same as yours.

I also noticed the errors only occur when the dependent service is the same.
When different, there doesn't appear to be a problem. 

Test this! Remove all of the definitions so that you are only left with the
ones that match in both the service_description and the
dependent_service_description and run the nagios -v check again. You'll get
the 
same errors again. Then add one definition where the descriptions were
different. You'll see the difference. 

hth, 
-Original Message-
From: Grzegorz Rumatowski [mailto:[EMAIL PROTECTED]
Sent: 31 May 2006 10:37
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] service dependencies problem


  Hello,

During checking nagios config with nagios -v I'm getting:

  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein1'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein1'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein2'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein2'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein3'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein3'!

  I've defined following service deps:

  define servicedependency{
  host_name   sonorys_gateway
  service_description PING
  dependent_host_name sonorys_checkpoint
  dependent_service_description   PING
  notification_failure_criteria   c,u
  execution_failure_criteria  c,u
  }

  define servicedependency{
  host_name   sonorys_checkpoint
  service_description PING
  dependent_host_name SILns1,SILns2,SILns3
  dependent_service_description   PING
  notification_failure_criteria   c,u
  execution_failure_criteria  c,u
  }

  define servicedependency{
  host_name   SILns1
  service_description PING
  dependent_host_name YESSS-Firewall
  dependent_service_description   PING
  notification_failure_criteria   c,u
  execution_failure_criteria  c,u
  }

  defi

[Nagios-users] service dependencies problem

2006-05-31 Thread Grzegorz Rumatowski

 Hello,

During checking nagios config with nagios -v I'm getting:

 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'onein1'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'SSH' on host 'onein1'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'onein2'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'SSH' on host 'onein2'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'PING' on host 'onein3'!
 Error: A circular execution dependency (which could result in a
 deadlock) exists for service 'SSH' on host 'onein3'!

 I've defined following service deps:

 define servicedependency{
 host_name   sonorys_gateway
 service_description PING
 dependent_host_name sonorys_checkpoint
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   sonorys_checkpoint
 service_description PING
 dependent_host_name SILns1,SILns2,SILns3
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   SILns1
 service_description PING
 dependent_host_name YESSS-Firewall
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   SILns2
 service_description PING
 dependent_host_name YESSS-Firewall
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   SILns3
 service_description PING
 dependent_host_name YESSS-Firewall
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   sonorys_checkpoint
 service_description PING
 dependent_host_name
 onein1,onein2,onein3,[EMAIL PROTECTED],[EMAIL PROTECTED]
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   sonorys_checkpoint
 service_description PING
 dependent_host_name YESSS-Firewall
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_name   YESSS-Firewall
 service_description PING
 dependent_host_name
 onein1,onein2,[EMAIL PROTECTED],[EMAIL PROTECTED]
 dependent_service_description   PING
 notification_failure_criteria   c,u
 execution_failure_criteria  c,u
 }

 define servicedependency{
 host_nameonein1
 service_descriptionPING
 dependent_host_nameonein1
 dependent_service_descriptionSSH
 notification_failure_criteriac,u
   

Re: [Nagios-users] Service Dependencies

2006-04-05 Thread Carl Davis
Thank you, this now works as I had hoped.

Carl

n Sat, 2006-04-01 at 19:45 +0200, Hugo van der Kooij wrote:
> On Sat, 1 Apr 2006, Carl Davis wrote:
,
> > I think I have service dependencies backwards in my head.  If I were
> > utilizing a flow chart and b required service on a to be up, I would put
> > a as the dependent_service_description and b as the host_name?  I have a
> > long line of wireless links and if the first one fails I do not want to
> > be notified that the others will fail as well.
> >
> > Is the status map built from service dependencies, because it appears
> > correctly, however I get service notifications for everything when we
> > have a link problem.
> 
> The status maps does not care about dependencies. It only uses the parent
> field.
> 
> Assume router arwen and host bilbo. You can only reach bilbo through
> arwen. (Or at least your Nagios checks.)
> 
> Then you would define:
> 
> define hostdependency {
>   dependent_host_name bilbo
>   hostnamearwen
>   .
> 
> I admit it takes some reading and it is propably even more confusing for
> those whose native language is not English.
> 
> I would have expected:
> 
> define hostdependency {
>   hostnamebilbo
>   depend_on_hostname  arwen
>   
> 
> I do recommend to rewrite this to be less ambigious in v3.
> 
> Hugo.
> 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Service Dependencies

2006-04-01 Thread Hugo van der Kooij
On Sat, 1 Apr 2006, Carl Davis wrote:

> I think I have service dependencies backwards in my head.  If I were
> utilizing a flow chart and b required service on a to be up, I would put
> a as the dependent_service_description and b as the host_name?  I have a
> long line of wireless links and if the first one fails I do not want to
> be notified that the others will fail as well.
>
> Is the status map built from service dependencies, because it appears
> correctly, however I get service notifications for everything when we
> have a link problem.

The status maps does not care about dependencies. It only uses the parent
field.

Assume router arwen and host bilbo. You can only reach bilbo through
arwen. (Or at least your Nagios checks.)

Then you would define:

define hostdependency {
dependent_host_name bilbo
hostnamearwen
.

I admit it takes some reading and it is propably even more confusing for
those whose native language is not English.

I would have expected:

define hostdependency {
hostnamebilbo
depend_on_hostname  arwen


I do recommend to rewrite this to be less ambigious in v3.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Service Dependencies

2006-04-01 Thread Carl Davis
I think I have service dependencies backwards in my head.  If I were
utilizing a flow chart and b required service on a to be up, I would put
a as the dependent_service_description and b as the host_name?  I have a
long line of wireless links and if the first one fails I do not want to
be notified that the others will fail as well.

Is the status map built from service dependencies, because it appears
correctly, however I get service notifications for everything when we
have a link problem.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Service dependencies

2006-03-19 Thread Matthew Joyce

Right, I think that is precisely my problem.

I'm using the SNMP service on HOST1 to check SERVICE1, SERVICE2, and
SERVICE3.
If SNMP fail I'm going to get notices for all four.

Is it possible to define a second host HOST1-SNMP withjj the same IP and
set internal dependencies that way ?


Matthew Joyce
02 9382 0051 | 0412 309745 | IT Manager


 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Eli Stair
> Sent: Friday, 17 March 2006 12:48 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Service dependencies
> 
> 
> To be fair, one situation where these wildcard template 
> dependencies don't work is when you want to define a number 
> of dependent services that rely on a service on the same host 
> (i.e. not a number of separate services on different hosts 
> that rely on a single (or wildcardable) host/service).
> 
> I re-wrote my entire config tree with templates at one point, 
> only to find it was wasted effort (in my situation) as I have 
> large numbers of hosts/services all relying on others within 
> the same host, not a single point elsewhere... so they aren't 
> expressible that way.  So I've still got megabytes of config 
> files to generate when there's a change, vs. the idea of 
> changing a simple template and having it propagate :(
> 
> /eli
> 
> Hugo van der Kooij wrote:
> > On Thu, 16 Mar 2006, Matthew Joyce wrote:
> > 
> > 
> >>I check a lot of window services from linux via snmp.
> >>One service is SNMP, if this fails or stops, others will fail.
> >>
> >>An I going to get a heap of notification for each service ?
> >>
> >>I've looked at the service dependency section in the docs, 
> and it looks
> >>like I need to define a dependency for each service, for each host.
> >>That's a lot of defining.
> > 
> > 
> > Not at all. Read the archives for samples of how to use the 
> wildcards in
> > your dependencies definitions.
> > 
> > Hugo.
> > 
> 
> 
> 
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language
> that extends applications into web and mobile media. Attend 
> the live webcast
> and join the prime developer group breaking into this new 
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&;
> dat=121642
> ___
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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] Service dependencies

2006-03-16 Thread Eli Stair


To be fair, one situation where these wildcard template dependencies 
don't work is when you want to define a number of dependent services 
that rely on a service on the same host (i.e. not a number of separate 
services on different hosts that rely on a single (or wildcardable) 
host/service).


I re-wrote my entire config tree with templates at one point, only to 
find it was wasted effort (in my situation) as I have large numbers of 
hosts/services all relying on others within the same host, not a single 
point elsewhere... so they aren't expressible that way.  So I've still 
got megabytes of config files to generate when there's a change, vs. the 
idea of changing a simple template and having it propagate :(


/eli

Hugo van der Kooij wrote:

On Thu, 16 Mar 2006, Matthew Joyce wrote:



I check a lot of window services from linux via snmp.
One service is SNMP, if this fails or stops, others will fail.

An I going to get a heap of notification for each service ?

I've looked at the service dependency section in the docs, and it looks
like I need to define a dependency for each service, for each host.
That's a lot of defining.



Not at all. Read the archives for samples of how to use the wildcards in
your dependencies definitions.

Hugo.





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Service dependencies

2006-03-15 Thread Hugo van der Kooij
On Thu, 16 Mar 2006, Matthew Joyce wrote:

> I check a lot of window services from linux via snmp.
> One service is SNMP, if this fails or stops, others will fail.
>
> An I going to get a heap of notification for each service ?
>
> I've looked at the service dependency section in the docs, and it looks
> like I need to define a dependency for each service, for each host.
> That's a lot of defining.

Not at all. Read the archives for samples of how to use the wildcards in
your dependencies definitions.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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] Service dependencies

2006-03-15 Thread Matthew Joyce
Title: Service dependencies







Hi all,


I check a lot of window services from linux via snmp.

One service is SNMP, if this fails or stops, others will fail.


An I going to get a heap of notification for each service ?


I've looked at the service dependency section in the docs, and it looks like I need to define a dependency for each service, for each host.

That's a lot of defining.


Is there any tools available to help manage configurations ?


thanks




Matthew Joyce

02 9382 0051 | IT Manager | Children's Cancer Institute Australia for Medical Research





[Nagios-users] Service dependencies - question

2006-01-30 Thread Dirk Westfal

Hi, 
what is the best/an economic way to setup dependencies for the following 
scenario: 

40x :
router_site1 (service-dsl)<-> host1 (service1,service2), ...  
hostx(service1,service4)

Per each of the 40 remote sites i have around 2-4 hosts with 5-20 services on 
each to check. 

Since the routers are connected via dsl, there are sometimes link failures. 
This currently makes nagios marking all other services at the remote site as 
critical, sending alerts  (and wrecking the statistic).   

Is there a way to use wildcards in the servicedependency object to define 
something like 'every service on this host depends on service-dsl on 
router_site1' ?


Thanks for help!

Dirk 


--
Dirk Westfal / Frankfurter Verein / Edv Abteilung / Netzwerkverwaltung
Fon: +49  69 79405 447 Fax: +49 69 79405 311


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
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