Re: [Nagios-users] Nagios running checks way too often

2012-12-04 Thread Claudio Kuenzler
On Tue, Dec 4, 2012 at 4:44 PM, Doug Eubanks  wrote:

> Nagios is checking services way too often.  It's supposed to check once
> every 2 minutes, then failback to checking once every 1 minute on a failure.
>
> I believe this is the relevant parts of the nagios.cfg file:
>

Actually the relevant part for how often a check should be executed is in
the service definition of the check. Mostly the service itself uses a
template with the "use" option. In this case you have to check your
templates.cfg file.

If you don't find it, please post the relevant service definition and the
definition of the template being used by the service.
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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] Nagios running checks way too often

2012-12-04 Thread Doug Eubanks
Nagios is checking services way too often.  It's supposed to check once
every 2 minutes, then failback to checking once every 1 minute on a failure.

I believe this is the relevant parts of the nagios.cfg file:
sleep_time=20
service_interleave_factor=s
max_concurrent_checks=0
service_reaper_frequency=5
interval_length=60
service_check_timeout=75
host_check_timeout=75
obsess_over_services=1
process_performance_data=1
check_for_orphaned_services=0
check_service_freshness=1
service_inter_check_delay_method=s
use_retained_scheduling_info=1
max_service_check_spread=1
host_inter_check_delay_method=s
max_host_check_spread=1
auto_reschedule_checks=1
auto_rescheduling_interval=15
auto_rescheduling_window=30

Nagios Version Information:
nagios-3.4.1-2.el6.i686

Here's the access log from the service being checked.  This is only one
vhost, and that one vhost is only in Nagios as a service once.
198.17.xxx.xxx - - [04/Dec/2012:10:31:41 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:31:41 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:31:44 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:31:50 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:31:50 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:31:50 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:32:37 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:32:37 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:32:38 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:46 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:46 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:48 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:55 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:55 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:33:55 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:34:43 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:34:43 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:34:43 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:35:52 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:35:52 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:35:55 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:01 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:01 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:01 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:49 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:49 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:36:49 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:37:57 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"
198.17.xxx.xxx - - [04/Dec/2012:10:37:57 -0500] "GET / HTTP/1.1" 200 22414
"-" "check_http/v1.4.16 (nagios-plugins 1.4.16)"

Any suggestions?

Thanks,
Doug Eubanks
ad...@dougware.net
K1DUG
(919) 201-8750
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
Na

Re: [Nagios-users] Weird Nagios Problem

2012-12-04 Thread Jeffrey Watts
Martin, I've always used NRPE to run check_load remotely.  If you use SNMP,
you can also write a custom plugin to gather the values that way.  There
might be a plugin that someone else has written, too.

Jeffrey.


On Tue, Dec 4, 2012 at 8:33 AM, Martin Hugo  wrote:

> You are right, it was using check_local_load, is there a remote version of
> this command?
>
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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] Weird Nagios Problem

2012-12-04 Thread Claudio Kuenzler
On Tue, Dec 4, 2012 at 4:26 AM, Martin Hugo  wrote:

> Another issue is one check_Interface_Table that returns 255 out of bounds
> but over 30 others (in the same service group using the same command)
> return normal.


Such an error "255 out of bounds" can happen, when the plugin gives too
much information Nagios could handle.
Happened to me for example when I tried to monitor all ports of a 48-port
switch. You'll have to use some regex or another way to narrow down the
real information you need.
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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] Weird Nagios Problem

2012-12-04 Thread Martin Hugo
You are right, it was using check_local_load, is there a remote version of this 
command?

Thanks.

Marty

-Original Message-
From: C. Bensend [mailto:be...@bennyvision.com] 
Sent: Tuesday, December 04, 2012 6:05 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Weird Nagios Problem


> I have been running Nagios for over a year with no issues.  All of a 
> sudden, all of my current loads on my linux servers all go into 
> warning state at the same time, showing the exact same load, which 
> then increments every hour to critical.  After a while (3 or 4 hours)  
> they all come back down to normal.
>
> Checking on the servers themselves using HTOP shows normal load levels 
> throughout the time period.

Hmmm, yeah.  Check that service and checkcommand definition.  I bet you're 
actually testing the load on the *Nagios* server, and not the individual 
servers you think you're testing it on.

What's the Nagios server's load during that time?  I bet it matches up...


--
"Unless you're a lawyer, you don't understand Oracle licensing.
That applies equally to Oracle employees as well as customers."
  -- Me, 2012-05-10



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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] netapp

2012-12-04 Thread Perfors, Henny
That's right, it is not documented for this plugin.
I cannot find such a plugin. I hope someone has a good solution.



Van: Assaf Flatto [mailto:nag...@flatto.net]
Verzonden: dinsdag 4 december 2012 12:49
Aan: Nagios Users List
Onderwerp: Re: [Nagios-users] netapp

On 04/12/12 11:34, Perfors, Henny wrote:
Hi,

I can get the check_netapp command to check the volumes which it is supposed to 
do, so that is fine.
But can it also check LUNS?

Anyone an idea?

Henry

Does the plugin docs say it can ?

If a feature is not documented for a plugin  , then the chances are it is not 
capable of doing that feature.

have you looked at the monitoring exchange for a plugin that actually say it 
monitors LUNS ?

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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 3.99.95 contact_groups

2012-12-04 Thread Supporto Tecnico - Crazy Network
  Here from object.cache

define servicegroup {
 servicegroup_name   ftp-server
 alias   FTP Server
 }

define service {
 host_name   Server.SysAdminDiary.it
 service_description Server FTP
 check_period24x7
 check_command   check_ftp
 contact_groups  sysadmindiary.it
 notification_period 24x7
 initial_state   o
 hourly_value1
 check_interval  5.00
 retry_interval  2.00
 max_check_attempts  3
 is_volatile 0
 parallelize_check   1
 active_checks_enabled   1
 passive_checks_enabled  1
 obsess  1
 event_handler_enabled   1
 low_flap_threshold  0.00
 high_flap_threshold 0.00
 flap_detection_enabled  1
 flap_detection_options  a
 freshness_threshold 0
 check_freshness 0
 notification_optionsr,c
 notifications_enabled   1
 notification_interval   60.00
 first_notification_delay0.00
 stalking_optionsn
 process_perf_data   1
 icon_image  ftp.png
 retain_status_information   1
 retain_nonstatus_information1
 }


define contact {
 contact_nameandrea.iannucci
 alias   Andrea Iannucci
 service_notification_period 24x7
 host_notification_period24x7
 service_notification_optionsr,c

 host_notification_options   r,d,u
 service_notification_commands   
notify-service-by-email,notify-service-by-sms
 host_notification_commands  
notify-host-by-email,notify-host-by-sms
 email   supp...@crazynetwork.it
 pager   00393388552885
 minimum_value   1
 host_notifications_enabled  1
 service_notifications_enabled   1
 can_submit_commands 1
 retain_status_information   1
 retain_nonstatus_information1
 }



Apparently in contact definition the contact_groups disappear and it 
come with an empty line.

Im preparing the box to send privatly login data so you can check by 
yourself.

Thanks

Il 04/12/2012 11:47, Andreas Ericsson ha scritto:
> On 12/03/2012 04:41 PM, Supporto Tecnico - Crazy Network wrote:
>> Hi,
>>
>> i did re-install nagios again (from git repo) using: git clone
>> git://github.com/ageric/nagios.git
>>
>> But still got same error from debug level 32:
>>
>> [1354549057.568949] [032.0] [pid=4151] ** Service Notification Attempt
>> ** Host: 'Server.SysAdminDiary.it', Service: 'Server FTP', Type: 0,
>> Options: 0, Current State: 2, Last Notification: Thu Jan  1 01:00:00 1970
>> [1354549057.569017] [032.0] [pid=4151] Notification viability test passed.
>> [1354549057.569029] [032.1] [pid=4151] Current notification number: 1
>> (incremented)
>> [1354549057.569040] [032.1] [pid=4151] Service notification will NOT be
>> escalated.
>> [1354549057.569049] [032.1] [pid=4151] Adding normal contacts for
>> service to notification list.
>> [1354549057.569056] [032.0] [pid=4151] No contacts were found for
>> notification purposes.  No notification was sent out.
>>
>> Here contacts file:
>>
>> define contact{
>>namecn-contacts
>>service_notification_period 24x7
>>host_notification_period24x7
>>service_notification_optionsc,r
>>host_notification_options   d,u,r
>>service_notification_commands   notify-service-by-email
>>host_notification_commands  notify-host-by-email
>>register0
>> }
>>
>>
>> define contact{
>>contact_nameandrea.iannucci
>>use cn-contacts
>>alias   Andrea Iannucci
>>email   supp...@crazynetwork.it
>>contact_groups  sysadmindiary.it
>>service_notification_commands
>> notify-service-by-email,notify-service-by-sms
>>host_notification_commands
>> notify-host-by-email,notify-host-by-sms
>>pager   00391234567890
>> }
>>
>> define contactgroup{
>>contactgroup_name   sysadmindiary.it
>>alias   SysAdminDiary.it Staff
>> }
>>
>> Here service definition:
>>
>> define service{
>>namecn-ftp-service
>>active_checks_enabled   1
>>passive_checks_enabled  1
>>parallelize_check   1
>>obsess_over_service 1
>>check_freshness 0
>>notifications_enabled   1
>>event_handler_enabled   1
>>flap_detection_enabled 

Re: [Nagios-users] netapp

2012-12-04 Thread Assaf Flatto

On 04/12/12 11:34, Perfors, Henny wrote:


Hi,

I can get the check_netapp command to check the volumes which it is 
supposed to do, so that is fine.


But can it also check LUNS?

Anyone an idea?

Henry



Does the plugin docs say it can ?

If a feature is not documented for a plugin  , then the chances are it 
is not capable of doing that feature.


have you looked at the monitoring exchange for a plugin that actually 
say it monitors LUNS ?



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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] netapp

2012-12-04 Thread Perfors, Henny
Hi,

I can get the check_netapp command to check the volumes which it is supposed to 
do, so that is fine.
But can it also check LUNS?

Anyone an idea?

Henry

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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 scheduled for one week later....

2012-12-04 Thread Rodrigo Gesswein
Dear Andreas:

> This is wonky. Make it '00:00-07:59,19:01-24:00' instead.

I try, but services still scheduled for one week more (Dec. 11th). I'm
using Nagios versin 3.3.1

Thank you
Rodrigo



On Tue, Dec 4, 2012 at 7:49 AM, Andreas Ericsson  wrote:
> On 12/03/2012 11:57 PM, Rodrigo Gesswein wrote:
>> Dear All:
>>
>>  I have a curios question about 'timeperiod' and 'service'. My 'cfg'
>> files look like:
>>
>> define timeperiod{
>>  timeperiod_name DayTime
>>  alias   DayTime
>>  monday  08:00-19:00
>>  tuesday 08:00-19:00
>>  wednesday   08:00-19:00
>>  thursday08:00-19:00
>>  friday  08:00-19:00
>>  saturday08:00-19:00
>>  sunday  08:00-19:00
>> }
>>
>> define timeperiod{
>>  timeperiod_name NightTime
>>  alias   NightTime
>>  monday  19:01-07:59
>>  tuesday 19:01-07:59
>>  wednesday   19:01-07:59
>>  thursday19:01-07:59
>>  friday  19:01-07:59
>>  saturday19:01-07:59
>>  sunday  19:01-07:59
>> }
>>
>
> This is wonky. Make it '00:00-07:59,19:01-24:00' instead.
>
> --
> 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.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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] Weird Nagios Problem

2012-12-04 Thread C. Bensend

> I have been running Nagios for over a year with no issues.  All of a
> sudden, all of my current loads on my linux servers all go into warning
> state at the same time, showing the exact same load, which then increments
> every hour to critical.  After a while (3 or 4 hours)  they all come back
> down to normal.
>
> Checking on the servers themselves using HTOP shows normal load levels
> throughout the time period.

Hmmm, yeah.  Check that service and checkcommand definition.  I bet
you're actually testing the load on the *Nagios* server, and not
the individual servers you think you're testing it on.

What's the Nagios server's load during that time?  I bet it matches
up...


-- 
"Unless you're a lawyer, you don't understand Oracle licensing.
That applies equally to Oracle employees as well as customers."
  -- Me, 2012-05-10



--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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 scheduled for one week later....

2012-12-04 Thread Andreas Ericsson
On 12/03/2012 11:57 PM, Rodrigo Gesswein wrote:
> Dear All:
> 
>  I have a curios question about 'timeperiod' and 'service'. My 'cfg'
> files look like:
> 
> define timeperiod{
>  timeperiod_name DayTime
>  alias   DayTime
>  monday  08:00-19:00
>  tuesday 08:00-19:00
>  wednesday   08:00-19:00
>  thursday08:00-19:00
>  friday  08:00-19:00
>  saturday08:00-19:00
>  sunday  08:00-19:00
> }
> 
> define timeperiod{
>  timeperiod_name NightTime
>  alias   NightTime
>  monday  19:01-07:59
>  tuesday 19:01-07:59
>  wednesday   19:01-07:59
>  thursday19:01-07:59
>  friday  19:01-07:59
>  saturday19:01-07:59
>  sunday  19:01-07:59
> }
> 

This is wonky. Make it '00:00-07:59,19:01-24:00' instead.

-- 
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.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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 3.99.95 contact_groups

2012-12-04 Thread Andreas Ericsson
On 12/03/2012 04:41 PM, Supporto Tecnico - Crazy Network wrote:
>Hi,
> 
> i did re-install nagios again (from git repo) using: git clone
> git://github.com/ageric/nagios.git
> 
> But still got same error from debug level 32:
> 
> [1354549057.568949] [032.0] [pid=4151] ** Service Notification Attempt
> ** Host: 'Server.SysAdminDiary.it', Service: 'Server FTP', Type: 0,
> Options: 0, Current State: 2, Last Notification: Thu Jan  1 01:00:00 1970
> [1354549057.569017] [032.0] [pid=4151] Notification viability test passed.
> [1354549057.569029] [032.1] [pid=4151] Current notification number: 1
> (incremented)
> [1354549057.569040] [032.1] [pid=4151] Service notification will NOT be
> escalated.
> [1354549057.569049] [032.1] [pid=4151] Adding normal contacts for
> service to notification list.
> [1354549057.569056] [032.0] [pid=4151] No contacts were found for
> notification purposes.  No notification was sent out.
> 
> Here contacts file:
> 
> define contact{
>   namecn-contacts
>   service_notification_period 24x7
>   host_notification_period24x7
>   service_notification_optionsc,r
>   host_notification_options   d,u,r
>   service_notification_commands   notify-service-by-email
>   host_notification_commands  notify-host-by-email
>   register0
> }
> 
> 
> define contact{
>   contact_nameandrea.iannucci
>   use cn-contacts
>   alias   Andrea Iannucci
>   email   supp...@crazynetwork.it
>   contact_groups  sysadmindiary.it
>   service_notification_commands
> notify-service-by-email,notify-service-by-sms
>   host_notification_commands
> notify-host-by-email,notify-host-by-sms
>   pager   00391234567890
> }
> 
> define contactgroup{
>   contactgroup_name   sysadmindiary.it
>   alias   SysAdminDiary.it Staff
> }
> 
> Here service definition:
> 
> define service{
>   namecn-ftp-service
>   active_checks_enabled   1
>   passive_checks_enabled  1
>   parallelize_check   1
>   obsess_over_service 1
>   check_freshness 0
>   notifications_enabled   1
>   event_handler_enabled   1
>   flap_detection_enabled  1
>   process_perf_data   1
>   retain_status_information   1
>   retain_nonstatus_information1
>   is_volatile 0
>   servicegroups   ftp-server
>   service_description Server FTP
>   check_command   check_ftp
>   icon_image  ftp.png
>   check_period24x7
>   max_check_attempts  3
>   normal_check_interval   5
>   retry_check_interval2
>   contact_groups  sysadmindiary.it
>   notification_optionsc,r
>   notification_interval   60
>   notification_period 24x7
>   register0
> }
> 
> define servicegroup {
>   servicegroup_name   ftp-server
>   alias   FTP Server
> }
> 
> Here service call in server host file.
> 
> define service{
>   use cn-ftp-service
>   host_name   Server.SysAdminDiary.it
> }
> 
> Any suggestions/hint?
> 

So contactgroup is inherited from template. That might be a clue. Can
you verify if the contactgroup is present on the proper services in
your objects.cache file?

Also, if you're not keeping secrets in the configuration, it would
help if I could get my hands on it so I can see the problem for myself.
If template inheritance is broken for contacts and/or contactgroups,
that's a pretty serious issue.

-- 
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.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
http

Re: [Nagios-users] servicedependecy is not working

2012-12-04 Thread Andreas Ericsson
On 11/30/2012 05:21 PM, Leonardo Bacha Abrantes wrote:
> Hi guys,
> 
> I use nrpe to monitor my machines and I configured servicedependency (see
> below), however, nagios still sending alerts when nrpe is on critical state.
> 
> define servicedependency{
>   dependent_host_name   srv1
>   dependent_service_description  /var Partition
>   host_name srv1
>   service_descriptionNRPE plugin
>   execution_failure_criteria c,u,p
>   notification_failure_criteria  c,u,p
>  dependency_period   24x7
> }
> 
> Can you help me please ?
> 

Well, you should be getting a notification about 'NRPE plugin' even
with this servicedependency in place. Are you saying you get one for
'/var partition' as well, even if the 'NRPE plugin' check is either
critical, unknown or pending?

-- 
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.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
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