Re: [Nagios-users] Notifications for Services that are "Up"

2011-09-02 Thread Jim Avery
On 2 September 2011 15:59, Michael Loiselle  wrote:
> Is it possible to receive a notification for a specific
> service that is in the “up” position?

If you really must do that, then assuming the check is an active one,
then it should be pretty trivial to run the plugin from cron and email
you whatever based on the exit code.  All that is done completely
outside Nagios.

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Notifications for Services that are "Up"

2011-09-02 Thread Terry Carmen
Quoting Mike Lindsey :

> On 9/2/11 7:59 AM, Michael Loiselle wrote:
>> I am currently running Nagios 3.3.1 on Ubuntu 10.04 and everything  
>> is working great.  I am monitoring 30 Windows servers with  
>> NSClient++, and that is working as well.  Is it possible to receive  
>> a notification for a specific service that is in the "up" position?

Just to toss another fly in the ointment, it's dangerous to test a  
service by examining what Windows thinks it's doing. Many times a  
service says it's "up" but is actually dead.

It would be more reliable to write a plugin that would actually  
examine the service to see if it can/is actually working. For example,  
with a database, you can do a SELECT on a known quantity and compare  
the result to what it should be.

What specific service are you trying to monitor?

Terry




--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Notifications for Services that are "Up"

2011-09-02 Thread Mike Lindsey

On 9/2/11 7:59 AM, Michael Loiselle wrote:
I am currently running Nagios 3.3.1 on Ubuntu 10.04 and everything is 
working great.  I am monitoring 30 Windows servers with NSClient++, 
and that is working as well.  Is it possible to receive a notification 
for a specific service that is in the "up" position?  In other words, 
I would like to get a notification every 4 hours, confirming that a 
service is actually running.  If it stops on Friday evening, I do not 
want to wait until Monday morning to find out it is not running.  I 
would personally rather receive a message every four hours.  
Notifications are currently set up and working flawlessly, so I just 
need to know what I need to change in the config files to get this to 
work.  Any help is appreciated.
Not entirely sure what you're trying to solve here?  Generally it is 
good if you can get to a place where you trust your monitoring system.  
It should be telling you if something has broken, but if something 
continues to run well, the monitoring system should shut up and not 
bother you.


If it stops on Friday evening, you should get an email immediately (or 
as soon as Nagios notices it...)  If by "it stops" you mean "Nagios 
stops" then that's a separate problem - I have a secondary system that 
ONLY monitors my primary Nagios infrastructure.  If the primary system 
fails, the secondary system emails me - well, pages me, my secondary, 
all of ProdOps, etc.


TL;DR:  No easy way to have an OK service automatically email.  Nagios 
makes noise when things are broken, not when they're working.


--
Mike Lindsey

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
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] Passive host count

2011-09-02 Thread trm asn
On Fri, Sep 2, 2011 at 7:14 AM, Morris, Patrick wrote:

> On Wed, Aug 24, 2011 at 11:01 AM, trm asn  wrote:
> > Hi List,
> >
> > I have one Active+Passive checks nagios server . Under tac.cgi , the
> passive host checks count is 0.
> >
> > # Active Host / Service Checks:584 / 44
> > # Passive Host / Service Checks:0 / 2544
> >
> > Is there any workaround to make this fix.
>
> Are you actually sending passive checks for any hosts?  That would be
> somewhat unusual, and I suspect Nagios is reporting those numbers
> correctly.
>
>
I have made under the host deceleration , eventhough I am getting
passive_host count = 0

active_checks_enabled   0
passive_checks_enabled1


Any suggestion .

/\
dE
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
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] servicedependency not working properly

2011-09-02 Thread Paul M Dubuc
Steve Glasser wrote:
> Hi list,
>
> We often have nagios checks time out when servers are under heavy load.  One 
> check tests nrpe, if that fails or times out I want notifications for other 
> services on the same host to be suppressed.  To do this I am using 
> servicedepenency.
>
> Looking at nagios logs I can see that all other checks, both nrpe and remote, 
> are running before test_nrpe.  That means, at least for the first cycle of 
> failed checks, that notifications for all services will be sent.
>
> Is it possible to control the order in which nagios checks run?  Or am I just 
> doing something wrong?  Please see sample config below:
>
> define servicedependency {
>  host_name   vm-foo2
>  service_description test_nrpe
>  dependent_host_name vm-foo2
>  dependent_service_description   
> nrpe_check_load,nrpe_check_ntp_time,nrpe_check_root,nrpe_check_swap,nrpe_check_ro_mounts
>  notification_failure_criteria   c,u
>  execution_failure_criteria  n
> }
>
> Thanks,

I think the problem is that you have 'n' set for the 
execution_failure_criteria.  That means the dependent services will 
always be checked.  Try setting this to 'c,u' instead (same as 
notification_failure_critera)

 From the documentation: 
http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#servicedependency

> execution_failure_criteria:   This directive is used to specify the
> criteria that determine when the dependent service should not be
> actively checked. If the master service is in one of the failure
> states we specify, the dependent service will not be actively
> checked. Valid options are a combination of one or more of the
> following (multiple options are separated with commas): o = fail on
> an OK state, w = fail on a WARNING state, u = fail on an UNKNOWN
> state, c = fail on a CRITICAL state, and p = fail on a pending state
> (e.g. the service has not yet been checked).  If you specify n (none)
> as an option, the execution dependency will never fail and checks of
> the dependent service will always be actively checked (if other
> conditions allow for it to be). Example: If you specify o,c,u in this
> field, the dependent service will not be actively checked if the
> master service is in either an OK, a CRITICAL, or an UNKNOWN state.


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
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] Notifications for Services that are "Up"

2011-09-02 Thread Michael Loiselle
Hello,

I am currently running Nagios 3.3.1 on Ubuntu 10.04 and everything is working 
great.  I am monitoring 30 Windows servers with NSClient++, and that is working 
as well.  Is it possible to receive a notification for a specific service that 
is in the "up" position?  In other words, I would like to get a notification 
every 4 hours, confirming that a service is actually running.  If it stops on 
Friday evening, I do not want to wait until Monday morning to find out it is 
not running.  I would personally rather receive a message every four hours.  
Notifications are currently set up and working flawlessly, so I just need to 
know what I need to change in the config files to get this to work.  Any help 
is appreciated.

Thanks,
Mike


The information contained in this email and any attachments is confidential and 
may be subject to copyright or other intellectual property protection. If you 
are not the intended recipient, you are not authorized to use or disclose this 
information, and we request that you notify us by reply mail or telephone and 
delete the original message from your mail system.
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
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