Re: [Nagios-users] Service Escalation via Host Group

2010-12-30 Thread Yueh-Hung Liu
not sure with the cause of your problem
maybe you can check the values of use_regexp_matching and
use_true_regexp_matching.
but by your configuration, all services will be escalated, not only
services of norm-notify.


On Fri, Dec 31, 2010 at 9:03 AM, Marc Haber
 wrote:
> Hi,
>
> I would like to have host and service escalations for all hosts that
> are in a certain host group. The following hostescalation definition
> seems to work fine:
>
> define hostescalation {
>        hostgroup_name                  norm-notify
>        contact_groups                  admins-mail
>        first_notification              1
>        last_notification               0
>        notification_interval           120
>        escalation_options              d,u,r
>        escalation_period               24x7
> }
>
> define hostescalation {
>        hostgroup_name                  norm-notify
>        contact_groups                  admins-sms
>        first_notification              2
>        last_notification               0
>        notification_interval           120
>        escalation_options              d,u,r
>        escalation_period               24x7
> }
>
> The analogous service escalation definition is ignored:
>
> define serviceescalation {
>        host_name                       *
>        service_description             *
>        hostgroup_name                  norm-notify
>        contact_groups                  admins-mail
>        first_notification              1
>        last_notification               0
>        notification_interval           120
>        escalation_options              w,u,c,r
>        escalation_period               24x7
> }
>
> define serviceescalation {
>        host_name                       *
>        service_description             *
>        hostgroup_name                  norm-notify
>        contact_groups                  admins-sms
>        first_notification              2
>        last_notification               0
>        notification_interval           120
>        escalation_options              w,u,c,r
>        escalation_period               24x7
> }
>
> When a service on a host which is member of host group norm-notify
> goes down, notifications go out to the contact group that is mentioned
> in the service definition. The service escalation definition seems to
> be ignored.
>
> Any idea what might be going wrong?
>
> Greetings
> Marc
>
>
> --
> -
> Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
> Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
> Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> 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
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Nagios notification

2010-12-30 Thread Yueh-Hung Liu
send notification once when state changes, set:
notification_interval=0


On Thu, Dec 30, 2010 at 6:36 PM, Hugo van der Kooij
 wrote:
> On Thu, 30 Dec 2010 01:58:38 -0800 (PST), moses neah 
> wrote:
>
> Hi All out there,
> Can anybody help me? I want to achieve the following:
> Nagios should send notification when a host/service state goes critical,
> down, etc
> Notification should be sent only once when a state changes
> and finally I want to know how many ping packets is ideal for nagios to send
>
> First off. Do NOT ever respond this way. You are sending a load of crap to
> the mailinglist which is totally not relevant to your message. Considere
> yourself in read-only mode if you are subscribed in digest mode.
>
> Set the notification interval to a significant high number and you would get
> it once for all intends and purposes.
>
> The defaults should be good enough for you. We can't determine those for
> you. Use your own common sense to see what fits your needs.
>
> Hugo.
>
> --
> hvdko...@vanderkooij.org   http://hugo.vanderkooij.org/
> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> 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
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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 Escalation via Host Group

2010-12-30 Thread Marc Haber
Hi,

I would like to have host and service escalations for all hosts that
are in a certain host group. The following hostescalation definition
seems to work fine:

define hostescalation {
hostgroup_name  norm-notify
contact_groups  admins-mail
first_notification  1
last_notification   0
notification_interval   120
escalation_options  d,u,r
escalation_period   24x7
}

define hostescalation {
hostgroup_name  norm-notify
contact_groups  admins-sms
first_notification  2
last_notification   0
notification_interval   120
escalation_options  d,u,r
escalation_period   24x7
}

The analogous service escalation definition is ignored:

define serviceescalation {
host_name   *
service_description *
hostgroup_name  norm-notify
contact_groups  admins-mail
first_notification  1
last_notification   0
notification_interval   120
escalation_options  w,u,c,r
escalation_period   24x7
}

define serviceescalation {
host_name   *
service_description *
hostgroup_name  norm-notify
contact_groups  admins-sms
first_notification  2
last_notification   0
notification_interval   120
escalation_options  w,u,c,r
escalation_period   24x7
}

When a service on a host which is member of host group norm-notify
goes down, notifications go out to the contact group that is mentioned
in the service definition. The service escalation definition seems to
be ignored.

Any idea what might be going wrong?

Greetings
Marc


-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Scheduling Queue stucked a few minutes afterrestart

2010-12-30 Thread Chris Beattie
Maurizio Pinotti wrote:
> hi Chris, thanks for your reply.. I just upgraded to nagios 
> 3.2.1-2~bpo50+1, but
> nothing has changed :'(

Bummer.  I wonder if the package's nagios.cfg file is different from the 
stock one.

I was using an old nagios.cfg file for a while.  It turned out there 
were new settings in the stock nagios.cfg that I had never integrated 
into mine.  Making my nagios.cfg more like stock didn't fix the problem 
I was having, but it did at least reduce my deviation from a known-good 
config.

-- 
-Chris

--


Nothing in this message is intended to make or accept an offer or to form a 
contract, except that an attachment that is an image of a contract bearing the 
signature of an officer of our company may be or become a contract. This 
message (including any attachments) is intended only for the use of the 
individual or entity to whom it is addressed. It may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product. If 
you are not the intended recipient, we hereby notify you that any use, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this message in error, please notify us immediately by 
telephone and delete this message immediately.

Thank you.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Has anyone written plugin to monitor IIS App WorkerProcess Size ?

2010-12-30 Thread Chris Beattie
James Whittington wrote:
> I’m running NSClient++ on some of my web servers and I was looking for 
> ideas on how you might monitor IIS worker process size.

Could you use check_nt -v COUNTER and check on the Process(w3wp)\Virtual 
Bytes and \Process(w3wp)\Working Set performance counters?  I don't know 
if that will provide sufficient resolution into your worker processes, 
but you could do it with what you've already got.

-- 
-Chris

--


Nothing in this message is intended to make or accept an offer or to form a 
contract, except that an attachment that is an image of a contract bearing the 
signature of an officer of our company may be or become a contract. This 
message (including any attachments) is intended only for the use of the 
individual or entity to whom it is addressed. It may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product. If 
you are not the intended recipient, we hereby notify you that any use, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this message in error, please notify us immediately by 
telephone and delete this message immediately.

Thank you.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] A newbie configuration question

2010-12-30 Thread Jim Avery
On 30 December 2010 17:50, stan  wrote:

> Can I build my service definition files as incomplete defs, and then "use"
> the resultant template in the servicegroup file, where I will fill in the
> approriate members?

I don't think it works like that.  Personally I don't bother with
servicegroups hardly at all.

I use hostgroups to group various kinds of host together.  I then use
the hostgroup in the service definition to apply that service type to
all the hosts in the group.

These concepts are explained in..

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

I also recommend the book "Nagios" by Wolfgang Barth (pub. No Starch
Press) as he has a quite readable way of introducing a lot of the
concepts you need to understand when designing a Nagios configuration.

You'll find that in Nagios there are usually about six ways to achieve
roughly the same thing.  Which one is 'best' will depend on what you
want to do and your own preference.

hth,

Jim

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] A newbie configuration question

2010-12-30 Thread stan
On Thu, Dec 30, 2010 at 12:27:02PM -0500, stan wrote:
> On Thu, Dec 30, 2010 at 01:30:45PM +, Jim Avery wrote:
> > On 30 December 2010 12:44, stan  wrote:
> > 
> > 
> > > I am still confused by why the service def's have a filed for hostname. As
> > > you point out, services don't necisarily relate to hosts. They are
> > > functions provided, or statuses of a machine. and I would think thta
> > > servicegroups would be where the assoctation betwen the service, and
> > > thehosts that you want to check for that service wouldbe.
> > >
> > > Am I missing something?
> > >
> > 
> > Oh, I see.
> > 
> > No, I don't think you are missing anything.
> > 
> OK, I thoguht I had a handle on tnis, but now I am confised again.
> 
> I wanted to create a config directory for services, just like I have for
> hosts. In this direcotry I intended to have a file defining each service I
> want to check. then one level up in the directory tree, I was going to
> create a hostgrous file and a servicegroups file, and I was going to define
> which hosts provide which service, and which service is provided by which
> hosts.
> 
> However, looking at the doc, it appears that hostname is mandontory in a
> service definition. Is there a way I can work around this, to get the
> hosts/services symetry that I am trying to acheive?
> 
Maybe I just figured this out.

Can I build my service definition files as incomplete defs, and then "use"
the resultant template in the servicegroup file, where I will fill in the
approriate members?


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] A newbie configuration question

2010-12-30 Thread stan
On Thu, Dec 30, 2010 at 01:30:45PM +, Jim Avery wrote:
> On 30 December 2010 12:44, stan  wrote:
> 
> 
> > I am still confused by why the service def's have a filed for hostname. As
> > you point out, services don't necisarily relate to hosts. They are
> > functions provided, or statuses of a machine. and I would think thta
> > servicegroups would be where the assoctation betwen the service, and
> > thehosts that you want to check for that service wouldbe.
> >
> > Am I missing something?
> >
> 
> Oh, I see.
> 
> No, I don't think you are missing anything.
> 
OK, I thoguht I had a handle on tnis, but now I am confised again.

I wanted to create a config directory for services, just like I have for
hosts. In this direcotry I intended to have a file defining each service I
want to check. then one level up in the directory tree, I was going to
create a hostgrous file and a servicegroups file, and I was going to define
which hosts provide which service, and which service is provided by which
hosts.

However, looking at the doc, it appears that hostname is mandontory in a
service definition. Is there a way I can work around this, to get the
hosts/services symetry that I am trying to acheive?

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] The right value check_ping comm and‏

2010-12-30 Thread Polifemo, Salvatore
It might be worth while to mention that all the check commands are stored in 
the /usr/local/Nagios/libexec/  directory and that each one can and should be 
run manually to see how they work.  They all support the –h switch to print out 
how to use them.

 

Salvatore Polifemo

Sr. Systems Security Specialist

ConEdison Solutions

100 Summit Lake Drive

Valhalla, NY 10595

 

From: steve f [mailto:a31mod...@hotmail.com] 
Sent: Thursday, December 30, 2010 11:18 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] The right value check_ping command‏

 

The 5 ping value is written in the check as the default value. If you do not 
add any -p value, it pings the host 5x.  Just like if you do not add a -t value 
for a timeout for a check, it defaults to 10 seconds.

You can look at the source code for the check_ping here :

http://nagios-plugins.sourcearchive.com/documentation/1.4/check__ping_8c-source.html

Steve

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] The right value check_ping comm and‏

2010-12-30 Thread steve f

The 5 ping value is written in the check as the default value. If you do not 
add any -p value, it pings the host 5x.  Just like if you do not add a -t value 
for a timeout for a check, it defaults to 10 seconds.

You can look at the source code for the check_ping here :

http://nagios-plugins.sourcearchive.com/documentation/1.4/check__ping_8c-source.html

Steve
  --
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] A newbie configuration question

2010-12-30 Thread stan
On Thu, Dec 30, 2010 at 01:30:45PM +, Jim Avery wrote:
> On 30 December 2010 12:44, stan  wrote:
> 
> 
> > I am still confused by why the service def's have a filed for hostname. As
> > you point out, services don't necisarily relate to hosts. They are
> > functions provided, or statuses of a machine. and I would think thta
> > servicegroups would be where the assoctation betwen the service, and
> > thehosts that you want to check for that service wouldbe.
> >
> > Am I missing something?
> >
> 
> Oh, I see.
> 
> No, I don't think you are missing anything.
> 
> I read somewhere (probably Wolfgang Barth's excellent book) that in
> Nagios each service should be taken to be the combination of both the
> service_description *and* the host_name.  Certainly in Nagios it is
> not possible to have a service which exists without a host.  If you
> look at the objects.cache file (probably under /usr/local/nagios/var/)
> then you will see how Nagios stores each service definition.  Even if
> you have defined services based on a hostgroup, Nagios will actually
> internally regard each service on each host as a separate entity -
> every service will have an entry for both host_name and
> service_description.
> 

AH, thanks for pointing me at thatt file!! It makes a whole lot of things
clearer. Now I understand how Nagios "views" the world. Looks like there a
re a number of different ways to acheive the same end result, and I would
spsect that each one of those makes sense at some time and place to some
person. Not all of them make sense to me at the moment, but thta is OK.

Thanks, again.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Has anyone written plugin to monitor IIS App Worker Process Size ?

2010-12-30 Thread James Whittington
I'm running NSClient++ on some of my web servers and I was looking for ideas on 
how you might monitor IIS worker process size.
We host a number of websites and periodically we will discover one the worker 
processes has grown pretty big.
I am looking for a method to track largest memory usage amongst IIS worker 
processes on Windows 2008 server.

I have some ideas on how to script the check but my solution would have 
privileged account dump process information to a text file and the plugin would 
just be a perl script to parse the text files.  I was curious if others had 
created a vbs or powershell script that would do something similar.

James Whittington
VC3, Inc.


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] Notification email to different addresses

2010-12-30 Thread Jim Avery
On 30 December 2010 14:19, Wilfred de Bondt  wrote:
> Dear all,
>
> Hopefully the people here can help me. I want to send notification
> emails to different email addresses based on which service is failing.
> So in other words, if service A fails email is sent to email address A
> and if service B fails email is sent to email address B but not to A.
>
> Is this even possible within Nagios or do I have to do this in the email
> server itself?

Yes, it's quite easy to configure.

You need to define two contacts, one for each of the email addresses,
then you can specfy which contact will receive the notification using
the 'contacts' directive in your service definition.

See:

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
and
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact

In fact you might find it best to set up contactgroups too, which
makes it easier to move people from one contactgroup to another
without editing all your service definitions.

hth,

Jim

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Notification email to different addresses

2010-12-30 Thread steve f

Wilfred,

Nagios can be configured for notifications on a per service level.  :

Each service definition has a  option that 
specifies what contact groups receive notifications for that particular 
service.  Each contact group can contain one or more individual 
contacts.  When Nagios sends out a service notification, it will notify 
each contact that is a member of any contact groups specified in the 
 option of the service definition.

You can get the info you need here ( for Nagios core 3.x, Nagios XI should have 
simular info in its docs ) 

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

Steve



> From: wilf...@stachanov.com
> To: nagios-users@lists.sourceforge.net
> Date: Thu, 30 Dec 2010 15:19:37 +0100
> Subject: [Nagios-users] Notification email to different addresses
> 
> Dear all,
> 
> Hopefully the people here can help me. I want to send notification
> emails to different email addresses based on which service is failing.
> So in other words, if service A fails email is sent to email address A
> and if service B fails email is sent to email address B but not to A.
> 
> Is this even possible within Nagios or do I have to do this in the email
> server itself?
> 
> Kind regards,
> 
> -- 
> Wilfred de Bondt 
> Systems Engineer
> Stachanov Group:  phone: (+31)205091010
> For more information, see website web: 
> www.stachanov.com/
> www.issuu.com/stachanov
> 
> 
> 
> 
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> 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
  --
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] Notification email to different addresses

2010-12-30 Thread Wilfred de Bondt
Dear all,

Hopefully the people here can help me. I want to send notification
emails to different email addresses based on which service is failing.
So in other words, if service A fails email is sent to email address A
and if service B fails email is sent to email address B but not to A.

Is this even possible within Nagios or do I have to do this in the email
server itself?

Kind regards,

-- 
Wilfred de Bondt 
Systems Engineer
Stachanov Group:  phone: (+31)205091010
For more information, see website web: 
www.stachanov.com/
www.issuu.com/stachanov




--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] A newbie configuration question

2010-12-30 Thread Jim Avery
On 30 December 2010 12:44, stan  wrote:


> I am still confused by why the service def's have a filed for hostname. As
> you point out, services don't necisarily relate to hosts. They are
> functions provided, or statuses of a machine. and I would think thta
> servicegroups would be where the assoctation betwen the service, and
> thehosts that you want to check for that service wouldbe.
>
> Am I missing something?
>

Oh, I see.

No, I don't think you are missing anything.

I read somewhere (probably Wolfgang Barth's excellent book) that in
Nagios each service should be taken to be the combination of both the
service_description *and* the host_name.  Certainly in Nagios it is
not possible to have a service which exists without a host.  If you
look at the objects.cache file (probably under /usr/local/nagios/var/)
then you will see how Nagios stores each service definition.  Even if
you have defined services based on a hostgroup, Nagios will actually
internally regard each service on each host as a separate entity -
every service will have an entry for both host_name and
service_description.

The inbuilt service/host dependency and the host parent/child
relationships are important for Nagios in determining when it should
notify - in particular it won't notify for a service if the host is
down and usually won't notify for a host if the parent host is down.
The logic Nagios uses for determining dependencies and reachability
make Nagios a very powerful tool for ensuring you only receive
notifications for those hosts and services which are actually causing
the problem, not all the hosts and services which are down as a result
of the underlying problem.

I agree with you it can be a little counter-intuitive at times.  In
particular if you only have one service (for example ping) associated
with a host, it's not always obvious whether it would be appropriate
to acknowledge the service or the host when the ping fails.

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] A newbie configuration question

2010-12-30 Thread stan
On Wed, Dec 29, 2010 at 10:52:45PM +, Jim Avery wrote:
> On 29 December 2010 18:36, stan  wrote:
> > I am trying to rationalize a couple of Nagios configurations that have
> > 2different histories, and they seem more different than I think they should
> > be. So, first I want to get the big picture n my head, and decide what
> > seems to be a sensible configuration to support going forward.
> >
> > Basicly I have in mind some thing like this.
> >
> > 1. Define hosts in a file
> > 2. Define services in a file
> > 3, Define commands in a file
> > 4. Aggregate hosts in groups of similar types in a hostgroups file
> > 5. Aggregate services in groups of similar types in a servicegroups file
> >
> >
> > Now, where I start to get confused here is that the service definitions
> > seem to have a filed for one or more hostnames. Why is this?
> 
> Services are often quite agnostic as to what kind of host they relate
> to.  Take for example FTP.  Various host types will accept an FTP
> connection but the service definition for them will always be pretty
> much the same.
> 



Thanks for the thoguhtful reply.

I am still confused by why the service def's have a filed for hostname. As
you point out, services don't necisarily relate to hosts. They are
functions provided, or statuses of a machine. and I would think thta
servicegroups would be where the assoctation betwen the service, and
thehosts that you want to check for that service wouldbe.

Am I missing something?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Nagios notification

2010-12-30 Thread Hugo van der Kooij


On Thu, 30 Dec 2010 01:58:38 -0800 (PST), moses neah  wrote:  

Hi
All out there,
Can anybody help me? I want to achieve the
following:
Nagios should send notification when a host/service state
goes critical, down, etc
Notification should be sent only once when a
state changes
and finally I want to know how many ping packets is ideal
for nagios to send   

First off. Do NOT ever respond this way. You are
sending a load of crap to the mailinglist which is totally not relevant
to your message. Considere yourself in read-only mode if you are
subscribed in digest mode.

Set the notification interval to a
significant high number and you would get it once for all intends and
purposes.

The defaults should be good enough for you. We can't
determine those for you. Use your own common sense to see what fits your
needs.

Hugo.

-- 
hvdko...@vanderkooij.org
http://hugo.vanderkooij.org/
PGP/GPG? Use:
http://hugo.vanderkooij.org/0x58F19981.asc
 --
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] Scheduling Queue stucked a few minutes after restart

2010-12-30 Thread Maurizio Pinotti
hi Chris, thanks for your reply.. I just upgraded to nagios 3.2.1-2~bpo50+1, but
nothing has changed :'(


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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