Discussion:
[Nagios-users] Is it possible to recieve a single global notification for all checks?
Alex Flex
2013-08-31 20:17:19 UTC
Permalink
Hello Nginx,

I have a single host, and dozens of services of the same type (http
check) monitored.

When a service goes down it is normal for others to report CRITICAL at
the same time. Intead of generating a notification for each independant
service can I have a SINGLE email consolidate the report on whats on
CRITICAL?

Perhaps using a global handler, however how would this work with the
part of one email per minute if my understanding is that the global
event handler runs independtly for each service?

Anything creative is welcome.

Alex
steve f
2013-08-31 21:41:31 UTC
Permalink
Alex Flex
2013-08-31 22:19:34 UTC
Permalink
Hello Steve,
Post by unknown
I've built a few checks that monitor say 5 partitions or ping 5 ip
addresses and will report back if one or more are down. results line
says 1 is ok, 2 is ok, 3 is down,,, etc.
Is that what you are looking for?
Your solution was to create a single check that at the same time
performs various checks, similar to the check_multi . However I need
each check to be an independent check :( Any other suggestion is
appreciated.
unknown
1970-01-01 00:00:00 UTC
Permalink
--_aa3f1152-b4f5-46c4-851b-f01bf1598d31_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I've built a few checks that monitor say 5 partitions or ping 5 ip addresses and will report back if one or more are down. results line says 1 is ok, 2 is ok, 3 is down,,, etc.

Is that what you are looking for?

I could send the check to you on Tues when I am back in work
Date: Sat, 31 Aug 2013 14:17:19 -0600
Subject: [Nagios-users] Is it possible to recieve a single global notification for all checks?
Hello Nginx,
I have a single host, and dozens of services of the same type (http
check) monitored.
When a service goes down it is normal for others to report CRITICAL at
the same time. Intead of generating a notification for each independant
service can I have a SINGLE email consolidate the report on whats on
CRITICAL?
Perhaps using a global handler, however how would this work with the
part of one email per minute if my understanding is that the global
event handler runs independtly for each service?
Anything creative is welcome.
Alex
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Nagios-users mailing list
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
--_aa3f1152-b4f5-46c4-851b-f01bf1598d31_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head> <body class='hmmessage'><div dir='ltr'>I've built a few checks that monitor say 5 partitions or ping 5 ip addresses and will report back if one or more are down.&nbsp; results line says 1 is ok, 2 is ok, 3 is down,,, etc.<br><br>Is that what you are looking for?<br><br>I could send the check to you on Tues when I am back in work<br><br><div>&gt; Date: Sat, 31 Aug 2013 14:17:19 -0600<br>&gt; From: ***@gmail.com<br>&gt; To: nagios-***@lists.sourceforge.net<br>&gt; Subject: [Nagios-users] Is it possible to recieve a single global notification for all checks?<br>&gt; <br>&gt; Hello Nginx,<br>&gt; <br>&gt; I have a single host, and dozens of services of the same type (http <br>&gt; check) monitored.<br>&gt; <br>&gt; When a service goes down it is normal for others to report CRITICAL at <br>&gt; the same time. Intead of generating a notification for each independant <br>&gt; service can I have a SINGLE email consolidate the report on whats on <br>&gt; CRITICAL?<br>&gt; <br>&gt; Perhaps using a global handler, however how would this work with the <br>&gt; part of one email per minute if my understanding is that the global <br>&gt; event handler runs independtly for each service?<br>&gt; <br>&gt; Anything creative is welcome.<br>&gt; <br>&gt; Alex<br>&gt; <br>&gt; ------------------------------------------------------------------------------<br>&gt; Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!<br>&gt; Discover the easy way to master current and previous Microsoft technologies<br>&gt; and advance your career. Get an incredible 1,500+ hours of step-by-step<br>&gt; tutorial videos with LearnDevNow. Subscribe today and save!<br>&gt; http://pubads.g.doubleclick.net/gampad/clk?id=58040911&amp;iu=/4140/ostg.clktrk<br>&gt; _______________________________________________<br>&gt; Nagios-users mailing list<br>&gt; Nagios-***@lists.sourceforge.net<br>&gt; https://lists.sourceforge.net/lists/listinfo/nagios-users<br>&gt; ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>&gt; ::: Messages without supporting info will risk being sent to /dev/null<br></div> </div></body>
</html>
--_aa3f1152-b4f5-46c4-851b-f01bf1598d31_--
Páll Guðjón Sigurðsson
2013-08-31 23:00:27 UTC
Permalink
I made something the other day that might help you.

check_nagios_services is a plugin that checks the current of other nagios services (via mk-livestatus) and you can set threshold, for example if one of many http checks are critical, return critical as well.

Maybe you can use that as a basis to solve your problem.


https://github.com/palli/monitor-iceland/blob/master/nagios-plugins/check_nagios_services


----- Original Message -----
From: "Alex Flex" <***@gmail.com>
To: "Nagios Users List" <nagios-***@lists.sourceforge.net>
Sent: Saturday, August 31, 2013 10:19:34 PM
Subject: Re: [Nagios-users] Is it possible to recieve a single global notification for all checks?


Hello Steve,


On 08/31/2013 03:41 PM, steve f wrote:


I've built a few checks that monitor say 5 partitions or ping 5 ip addresses and will report back if one or more are down. results line says 1 is ok, 2 is ok, 3 is down,,, etc.

Is that what you are looking for?

Your solution was to create a single check that at the same time performs various checks, similar to the check_multi . However I need each check to be an independent check :( Any other suggestion is appreciated.



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Nagios-users mailing list
Nagios-***@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
Alex Flex
2013-09-02 20:29:13 UTC
Permalink
Hello. Thank you for this,definately it looks like the solution for
me.. although mk-livestatus looks much unknown .

Alex
Paul M Dubuc
2013-09-03 03:13:12 UTC
Permalink
Post by Alex Flex
Hello. Thank you for this,definately it looks like the solution for
me.. although mk-livestatus looks much unknown .
Alex
Maybe Nagios BPI will also work for you.
http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-%28BPI%29/details
Thomas Blanchard
2013-09-03 11:00:59 UTC
Permalink
Hi Alex,

Have you taken a look at the service dependency? Since they all seem to be the same type of check, you can set a parent check which would just monitor the port, the main web site, or the apache process, and the internal nagios mechanisms will trigger only an alert for the parent check if it goes down, hiding all child service checks.

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

is that what you're looking for?

Thomas

-----Original Message-----
From: Alex Flex [mailto:***@gmail.com]
Sent: 31 August 2013 21:17
To: nagios-***@lists.sourceforge.net
Subject: [Nagios-users] Is it possible to recieve a single global notification for all checks?

Hello Nginx,

I have a single host, and dozens of services of the same type (http
check) monitored.

When a service goes down it is normal for others to report CRITICAL at the same time. Intead of generating a notification for each independant service can I have a SINGLE email consolidate the report on whats on CRITICAL?

Perhaps using a global handler, however how would this work with the part of one email per minute if my understanding is that the global event handler runs independtly for each service?

Anything creative is welcome.

Alex

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Nagios-users mailing list
Nagios-***@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 email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use
of the intended recipient(s). Any disclosure, copying, distribution,
posting, or use of the information contained in or attached to this
email is prohibited unless permitted by the sender. If you have
received this email in error, please immediately notify the sender
via return email, telephone, or fax and destroy this original transmission
and its included files without reading or saving it in any manner.
Thank you.

Loading...