[Nagios-users] passive checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Hi all,


Reading through the docs about passive checks and the
possible actions in case of stale information, it seems
it is possible to turn on a freshness functionality
so that after a certain timeout active checks are used
instead.
In my case this may not necessarily be feasible
as the nodes to monitor are remote ones behind a
firewall: is it possible instead to just trigger (email)
an alarm when the information is found to be stale?
I don't need much more as I can then ping the maintainers
of the remote nodes about a possible problem

Thanks in advance for any info you may provide

Cheers

Alessandro


-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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.0.5 email notifications fail {Spam?}

2009-01-12 Thread alex alex
Hi again,
Yes, there is another template named generic-contact but it's identical to
the generic (excepting the name).
But here's a good news: I have some notifications (finnaly, it seems that
the notification works). And the bad news is that I get only emails like:



Return-Path: nag...@localhost.localdomain
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost.localdomain (8.14.1/8.14.1) with ESMTP id n0CAArp4003801
for nag...@localhost.localdomain; Mon, 12 Jan 2009 12:10:53 +0200
Received: (from nag...@localhost)
by localhost.localdomain (8.14.1/8.14.1/Submit) id n0CAArxq003799
for nag...@localhost; Mon, 12 Jan 2009 12:10:53 +0200
Date: Mon, 12 Jan 2009 12:10:53 +0200
From: nag...@localhost.localdomain
Message-Id: 200901121010.n0caarxq003...@localhost.localdomain
To: nag...@localhost.localdomain

Subject: ** $ Host Alert: host1 is UP **

* Nagios *

Notification: FLAPPINGSTOP
Host: host1
State: UP
Address: 172.30.129.67
Info: PING OK - Packet loss = 0%, RTA = 11.74 ms

Date/Time: Sun Jan 11 15:10:11 EET 2009


Or for a service

Subject: ** FLAPPINGSTOP Service Alert: host1/is_alive is OK **

* Nagios *

Notification Type: FLAPPINGSTOP

Service: is_alive
Host: host1
Address: 172.24.14.242
State: OK

Date/Time: Mon Jan 12 12:10:53 EET 2009

Additional Info:

PING OK - Packet loss = 0%, RTA = 131.99 ms




Is it the right behaviour (to put flapping instead up/down if the flapping
is enabled) ? The thresholds for flapp are set at 25% and 50%.

Anyhow, some notifications are sent and that's the main good news. I think
from now only some small changes must be done in my configs to tune the
uinstallation.

Thank you again,

Alex

On Sat, Jan 10, 2009 at 1:11 AM, Marc Powell m...@ena.com wrote:


 On Jan 9, 2009, at 11:26 AM, alex alex wrote:

  Hi again,
  I've just disabled events handler. I think youwere right. The dead
  emails were from events handler, not from notifications. No new
  notifications failed in letter.dead It seems that in event handler,
  the $CONTACTEMAIL$ is not set.
  But now, even stranger, no notification is sent. I mean I enabled
  debug in nagios.cfg and the result is:
  [1231482452.131909] [032.0] [pid=16674] ** Host Notification Attempt
  ** Host: 'h
  ost1', Type: 0, Options: 0, Current State: 1, Last Notification: Thu
  Jan  1
   02:00:00 1970
  [1231482452.132086] [032.0] [pid=16674] Notification viability test
  passed.
  [1231482452.132104] [032.1] [pid=16674] Current notification number:
  1 (incremen
  ted)
  [1231482452.132127] [032.1] [pid=16674] Host notification will NOT
  be escalated.
  [1231482452.132241] [032.1] [pid=16674] Adding normal contacts for
  host to notif
  ication list.
  [1231482452.132504] [032.0] [pid=16674] No contacts were notified.
  Next possibl
  e notification time: Thu Jan  1 02:00:00 1970
  [1231482452.132524] [032.0] [pid=16674] 0 contacts were notified.
  Now more than ever I don't understand why no contacts were notified!
  It can mean that normal contacts doesn't exist?
 

  From a previous e-mail --

 define contact {
 contact_namenagios
 use generic-contact
 alias   nagios
 email   nag...@localhost
 }

 define contact {
 namegeneric
 host_notification_period24din2_7din7
 service_notification_period 24din2_7din7
 host_notification_options   d,u,r,n,f
 service_notification_optionsu,c,w,r,n,f
 host_notification_commands  notify-host-by-email
 service_notification_commands   notify-service-by-email
 register0
 }

 Your contact 'nagios' uses a template named 'generic-contact'. Do the
 host and service_notification_periods in that template include the
 time when the notification above was supposed to go out? The contact
 template you provided is named 'generic' not 'generic-contact' so
 there must be another template that needs to be looked at.

 --
 Marc



 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 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

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB___

Re: [Nagios-users] passive checks and possible actions in case of stale information

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote:

 firewall: is it possible instead to just trigger (email)
 an alarm when the information is found to be stale?

Yes, the Example given in the documentation is exactly this solution...

--
Marc

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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.0.5 email notifications fail {Spam?}

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 5:44 AM, alex alex wrote:
 Notification: FLAPPINGSTOP
 Host: host1
 State: UP
 Or for a service

 Notification Type: FLAPPINGSTOP

 Service: is_alive
 Host: host1
 Is it the right behaviour (to put flapping instead up/down if the  
 flapping is enabled) ?

Yes, if the host or service were in a flapping state, which these  
were. flapping is different than a normal up/down and that  
notification type is provided should you want or need to make that  
distinction. If you'd rather just receive up/down notifications,  
disable notifications for flapping.

 Anyhow, some notifications are sent and that's the main good news. I  
 think from now only some small changes must be done in my configs to  
 tune the uinstallation.

Good =)

--
Marc


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] check_ping stuck on 'PENDING'

2009-01-12 Thread Robert Yeo
The operation I am employing is Check CPU Load but the symptoms were the
same as Michiel's check ping.

Hopefully all the information is there now.

Thanks!

Rob Yeo

# Finearts Nagios 2 Server
define host{

host_nameDgh_000_012_FairUse
aliasFinearts Nagios 2 Server
address  155.xxx.xxx.xxx

use  server-high-priority
hostgroups   Dgh_Servers
parents  Dgh_Switch_02
icon_image   mac40.png
statusmap_image  mac40.gd2
}

# '003 DGH Servers' server group definition
define hostgroup{
hostgroup_name   Dgh_Servers
aliasDGH_SERVERS
}

# 'check_nrpe' command definition
define command {
command_name check_nrpe
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u
}'

define service{
hostgroup_nameNmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art

_104_014_FilmServer,!Nmw_104_092_Nagios3

service_descriptionCheck CPU Load
usemedium-high-priority-service
check_command  check_nrpe!check_load
}

define servicedependency{
hostgroup_name  Nmw_Servers,Wi_Servers
host_name  
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3

service_description Check NRPE
dependent_hostgroup_nameNmw_Servers,Wi_Servers
dependent_host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3
dependent_service_descriptionCheck CPU Load,Check Free Space,Current
Users,Total Processes,Zombie Processes

execution_failure_criteria  w,u,c,p
notification_failure_criteria   w,u,c,p
}

define host{
namegeneric-host
notifications_enabled   1
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
register0
}

define host{
nameserver-high-priority
use generic-host
check_period24x7
check_interval  2
max_check_attempts  2
check_command   check-host-alive
notification_period 24x7
notification_interval   120
notification_optionsd,r,f
contact_groups  nagiosadmin
register0
}


define service{
namemedium-high-priority-service
use generic-service
check_period24x7
max_check_attempts  5
normal_check_interval   5
retry_check_interval2
 contact_groups nagiosadmin
notification_optionsc,r,f
notification_interval   180
notification_period extendedworkhours
register0
}

define service{
namegeneric-service
active_checks_enabled   1
passive_checks_enabled  1
parallelize_check   1
obsess_over_service 0
check_freshness 0
notifications_enabled   1
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
is_volatile 0
register0
}

# 'extendedworkhours' timeperiod definition
define timeperiod{
timeperiod_nameextendedworkhours
alias   Extended Work Hours
sunday  10:00-22:00
monday  07:00-22:00
tuesday 07:00-22:00
wednesday   07:00-22:00
thursday07:00-22:00
friday  07:00-22:00
saturday10:00-22:00
}

# '24x7' timeperiod definition
define timeperiod{
timeperiod_name24x7
alias   24 Hours A Day, 7 Days A Week
sunday  00:00-24:00
monday  00:00-24:00
tuesday 00:00-24:00
wednesday   00:00-24:00
thursday00:00-24:00
friday  00:00-24:00
saturday00:00-24:00
}

Nagios 3.0.6 on 10.4.11 OSX.

The service check is stuck in pending for the DGH server, and is returning
fine for 2 of the NMW servers, but not all of them.

Thanks,

Rob Yeo


Re: [Nagios-users] send warnings to one group and critical to another

2009-01-12 Thread Shai
ping

On Mon, Jan 5, 2009 at 9:28 AM, Shai sha...@gmail.com wrote:

 Hi,

 I have two different user groups.
 I have a service which is currently sending both WARNING and CRITICAL
 notifications to both.
 I would like WARNING and CRITICAL to be sent to group A and CRITICAL only
 to group B.

 How can I accomplish this?

 Shai

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB___
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 checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Hi Marc

Could you send me the exact link in case?

Thanks again

cheers

Alessandro

Marc Powell ha scritto:
 On Jan 12, 2009, at 4:40 AM, Alessandro Usai wrote:
 
 firewall: is it possible instead to just trigger (email)
 an alarm when the information is found to be stale?
 
 Yes, the Example given in the documentation is exactly this solution...
 
 --
 Marc
 
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 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

-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] send warnings to one group and critical to another

2009-01-12 Thread jmoseley
Shai, look in the mailing list archives - as late as yesterday, there is a
thread that already covers your exact scenario.


James Moseley




   
 Shai  
 sha...@gmail.com 
   To 
   nagios-users@lists.sourceforge.net  
 01/12/2009 09:11   cc 
 AM
   Subject 
   Re: [Nagios-users] send warnings to 
   one group and critical to   
   another 
   
   
   
   
   
   




ping

On Mon, Jan 5, 2009 at 9:28 AM, Shai sha...@gmail.com wrote:
  Hi,

  I have two different user groups.
  I have a service which is currently sending both WARNING and CRITICAL
  notifications to both.
  I would like WARNING and CRITICAL to be sent to group A and CRITICAL only
  to group B.

  How can I accomplish this?

  Shai
--

Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB___
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


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 checks and possible actions in case of stale information

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote:

 Hi Marc

 Could you send me the exact link in case?

No. It's not difficult to find browsing the index, through Google or  
simply using grep on your local copy of the docs. Looking for it  
yourself will do you far more good than me just giving it to you.

--
Marc

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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 checks and possible actions in case of stale information

2009-01-12 Thread Alessandro Usai
Perhaps I should have mentioned that I could not find
the example you referred to, which is why I asked for the
exact link...

But thanks anyway

cheers

Alessandro

Marc Powell ha scritto:
 On Jan 12, 2009, at 9:14 AM, Alessandro Usai wrote:
 
 Hi Marc

 Could you send me the exact link in case?
 
 No. It's not difficult to find browsing the index, through Google or  
 simply using grep on your local copy of the docs. Looking for it  
 yourself will do you far more good than me just giving it to you.
 
 --
 Marc
 
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 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

-- 
SWITCH
Serving Swiss Universities
--
Dr. Alessandro Usai
P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 72, fax +41 44 268 15 68
alessandro.u...@switch.ch, http://www.switch.ch

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-12 Thread Grant Lowe
Hi James,

One question/problem with this.  I'm not getting any pages or email on when 
services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie 
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of 
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Sunday, January 11, 2009 5:38:33 PM
Subject: Re: [Nagios-users] Elevated alerts

You've got it backwards below.  In the original email, you wanted only
warnings to go to email and warnings and critical alerts to go the 'pager'
address.  Remove the 'c' from the service notification options for the
email config and add a 'w' for the paging config.


James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/11/2009 06:21   cc 
 PMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




Hi James,

I think I understand it a little bit better.  As far as numerical users, do
you mean when a page is sent to a paging service, somehow, the user name is
converted to, a numerical user that the paging service uses?  That makes
sense I guess because you have to have a phone number to call for the page.

As far as the notification tags, do these look correct, with what I'm
trying to do?

define contact{
# Email config
...
host_notification_options d,u,r,f,s
service_notification_options  w,c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
...
}

And the other:

define contact{
# Paging config
...
host_notification_options d,u,r,f,s
service_notification_options  c,u,r,f,s
host_notification_commandsnotify-host-by-email
service_notification_commands notify-service-by-email
# host_notification_commandsnotify-host-by-pager
# service_notification_commands notify-service-by-pager
...
}



Thanks for hanging in there with me!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Saturday, January 10, 2009 5:18:29 PM
Subject: Re: [Nagios-users] Elevated alerts

In the 'email' contact config, you need all the service notification
options: w,c,u,r,f,s

This is because you want warning and critical alerts sent to email.

In the 'paging' config, gid rid of the following lines:

host_notification_commandsnotify-host-by-pager
service_notification_commands notify-service-by-pager
# Added pager line 01/09/2009
pagergl...@pager.company.com

Then change the service notifications to: c,u,r,f,s

The way you have it now, the paging contact will not get critical alerts.
If your paging email address has a text username (glowe), you need to use
the notify-by-email arguments.  If the user is numerical, then yes, you can
use the notify-by-pager commands.  I mentioned this in my last email.  I've
never researched it, for I've found that if I have a non-numerical user in
an email address and I use the notify-by-pager default CONTACTPAGER macro,
the 

Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-12 Thread Robert Yeo

The ! is to remove servers that have been included already in the line above
in the hostgroup_name, that way I do not need to spell them all out
individually or create different groups if you have one server that doesn't
fit with everything.  Basically I do not want to monitor Check CPU Load on
every server in the Nmw_Servers group, so I exclude them on the next line.
I thought this was OK to do this?

I will remove the host_name in case the ! is making things weird and my
service dependencies as well and let you know what happens.

Thanks for the help!

Rob Yeo



On 1/12/09 8:26 AM, jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
wrote:

 First, what's with the '!' preceding many of your hosts names?   Second, in
 your service and service dependency configs, why are you defining both
 hosts and hostgroups?  For example:
 
 define service{
 hostgroup_nameNmw_Servers,Wi_Servers
 host_name
 !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art
 
 _104_014_FilmServer,!Nmw_104_092_Nagios3
 
 service_descriptionCheck CPU Load
 usemedium-high-priority-service
 check_command  check_nrpe!check_load
 }
 
 I'd start with removing the host_name portion of the config and including
 'Dgh_Servers' in the hostgroup_name stanza.  Otherwise, you've got a lot of
 overkill...
 
 Lastly, get rid of the service dependencies until you have this sorted out
 and working.
 
 
 
 James Moseley
 
 
 
 
  
  Robert Yeo
  r@utah.edu
 To
  01/12/2009 08:57  Nagios-users@lists.sourceforge.net
  AM
 cc
  
Subject
Re: [Nagios-users] check_ping stuck
on 'PENDING'
  
  
  
  
  
  
 
 
 
 
 The operation I am employing is Check CPU Load but the symptoms were the
 same as Michiel's check ping.
 
 Hopefully all the information is there now.
 
 Thanks!
 
 Rob Yeo
 
 # Finearts Nagios 2 Server
 define host{
 
 host_nameDgh_000_012_FairUse
 aliasFinearts Nagios 2 Server
 address  155.xxx.xxx.xxx
 
 use  server-high-priority
 hostgroups   Dgh_Servers
 parents  Dgh_Switch_02
 icon_image   mac40.png
 statusmap_image  mac40.gd2
 }
 
 # '003 DGH Servers' server group definition
 define hostgroup{
 hostgroup_name   Dgh_Servers
 aliasDGH_SERVERS
 }
 
 # 'check_nrpe' command definition
 define command {
 command_name check_nrpe
 command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u
 }'
 
 define service{
 hostgroup_nameNmw_Servers,Wi_Servers
 host_name
 !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art
 
 
 _104_014_FilmServer,!Nmw_104_092_Nagios3
 
 service_descriptionCheck CPU Load
 usemedium-high-priority-service
 check_command  check_nrpe!check_load
 }
 
 define servicedependency{
 hostgroup_name  Nmw_Servers,Wi_Servers
 host_name
 !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
 
 ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3
 
 service_description Check NRPE
 dependent_hostgroup_nameNmw_Servers,Wi_Servers
 dependent_host_name
 !Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
 
 ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3
 dependent_service_descriptionCheck CPU Load,Check Free
 Space,Current
 Users,Total Processes,Zombie Processes
 
 execution_failure_criteria  w,u,c,p
 notification_failure_criteria   w,u,c,p
 }
 
 define host{
 namegeneric-host
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 failure_prediction_enabled  1
 process_perf_data   1
 retain_status_information   1
 retain_nonstatus_information1
 register0
 }
 
 define host{
 nameserver-high-priority
 use generic-host
 check_period24x7
 check_interval  2
 max_check_attempts  2
 check_command   check-host-alive
 notification_period 

Re: [Nagios-users] check_ping stuck on 'PENDING'

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 9:26 AM, jmose...@corp.xanadoo.com wrote:

 First, what's with the '!' preceding many of your hosts names?

It means don't apply the service to this host if it's in one of the  
named hostgroups. It's not documented quite like the OP's use but I  
expect it will work.

See 'Excluding Hosts' at 
http://nagios.sourceforge.net/docs/3_0/objecttricks.html

--
Marc


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] check_ping stuck on 'PENDING'

2009-01-12 Thread jmoseley
I checked the object defintion documentation before replying and didn't
find any such reference that you could exclude hosts out of host or service
group definitions by using a 'bang' symbol.  I thought a bang (!) was used
only to separate arguments in check_commands.

Even if this feature is legitimate, why make the configuration more
complex?  Get rid of the host groups in the service definitions and include
only those hosts you want checked.  Basically, make the configuration as
simple as possible to find and fix the problem with the host that has a
service check stuck in pending.  Then add back in the more complex
configuration options (like service dependencies) one at a time.

My $.02.


James Moseley




   
 Robert Yeo
 r@utah.edu  
To 
 01/12/2009 09:33  Nagios-users@lists.sourceforge.net 
 AM   
cc 
   
   Subject 
   Re: [Nagios-users] check_ping stuck 
   on 'PENDING'
   
   
   
   
   
   





The ! is to remove servers that have been included already in the line
above
in the hostgroup_name, that way I do not need to spell them all out
individually or create different groups if you have one server that doesn't
fit with everything.  Basically I do not want to monitor Check CPU Load on
every server in the Nmw_Servers group, so I exclude them on the next line.
I thought this was OK to do this?

I will remove the host_name in case the ! is making things weird and my
service dependencies as well and let you know what happens.

Thanks for the help!





--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] check_ping stuck on 'PENDING'

2009-01-12 Thread jmoseley





Marc Powell m...@ena.com wrote:



It means don't apply the service to this host if it's in one of the
named hostgroups. It's not documented quite like the OP's use but I
expect it will work.

See 'Excluding Hosts' at
http://nagios.sourceforge.net/docs/3_0/objecttricks.html

Good, I learned something new.  I still think it's a great idea, though, to
simplify the configuration as much as possible when dealing with a single
host that is having problems.  ;-)

James


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] Elevated alerts

2009-01-12 Thread jmoseley




Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James




--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
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] check_ping stuck on 'PENDING'

2009-01-12 Thread Robert Yeo
Service dependencies.

I commented them out and everything works fine.  They do not get flagged as
wrong and worked fine in the 2.x series, so I need to make some changes.
Thanks for help!   I should have went that route earlier but the behavior
was so odd with some hosts OK and others not with the same check in the same
config I though nah.  My mistake.

If it helps at all I will follow up with the corrections that need to be
made to the dependencies in case anyone else runs into this on a 2.x to 3.x
migration.

Thanks again!

Rob Yeo

On 1/12/09 9:00 AM, jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
wrote:

 
 
 
 
 
 Marc Powell m...@ena.com wrote:
 
 
 
 It means don't apply the service to this host if it's in one of the
 named hostgroups. It's not documented quite like the OP's use but I
 expect it will work.
 
 See 'Excluding Hosts' at
 http://nagios.sourceforge.net/docs/3_0/objecttricks.html
 
 Good, I learned something new.  I still think it's a great idea, though, to
 simplify the configuration as much as possible when dealing with a single
 host that is having problems.  ;-)
 
 James
 
 
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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 Command line

2009-01-12 Thread Shadhin rahman
All,
is there any project to provide command line interface for Nagios.  
I understand cnagios already exists but it is not enough.  Cnagios does 
not provide a way to perform checks on command line interface.  Please 
advise on this.  Thanks

-- 
Shadhin Rahman
619 Watson Hall
Columbia University Information Technology-Network Infrastructure
Cell: 347-256-7869 Work: 212-851-7161
Email: sr2...@columbia.edu


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-12 Thread jmoseley
Also, do you have any escalations or service dependencies that could be
blocking the notification?


James Moseley




   
 James 
 Moseley/BTV/PEGAS 
 US To 
   Grant Lowe gl...@sbcglobal.net
 01/12/2009 10:06   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
   (Document link: James Moseley)  
   
   
   
   
   
   







Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James





--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-12 Thread Grant Lowe
James,

I thought I was trying to make this config as simple as possible.  I'm only 
monitoring five UNIX boxes right now.  Hopefully going to expand that soon with 
Nagios :-


The hosts I'm monitoring didn't have any notification options, but they do now. 
 All six.  This is what I have for the zombie processes:

define service{
host_name   blarney,frogmore,katz,dunvegan,redfort
hostgroup_name  solaris-servers
service_description Check Remote Zombie Processes
check_command   check_nrpe!check_zombie_procs
max_check_attempts  5
notification_interval   60
check_period24x7
notification_optionsw,u,c,r,f,s
}

I don't have services disabled or enabled right now in any of the related 
service definitions (like the one above).  Do I need to explicitly turn them 
on?  I thought they were already on, considering I'm getting notifications 
already through email.  Please advise.  Thanks.


- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, January 12, 2009 8:06:00 AM
Subject: Re: [Nagios-users] Elevated alerts





Grant Lowe gl...@sbcglobal.net wrote:

Hi James,

One question/problem with this.  I'm not getting any pages or email on
when services are showing up as critical in the nagios.log.  For example:

[1231773440] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;1;PROCS CRITICAL: 13 processes with STATE = Z
[1231773500] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;2;PROCS CRITICAL: 23 processes with STATE = Z
[1231773560] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;3;PROCS CRITICAL: 21 processes with STATE = Z
[1231773620] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;SOFT;4;PROCS CRITICAL: 32 processes with STATE = Z
[1231773680] SERVICE ALERT: blarney;Check Remote Zombie
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 18 processes with STATE = Z
[1231747200] CURRENT SERVICE STATE: blarney;Check Remote Number of
Processes;CRITICAL;HARD;5;PROCS CRITICAL: 1388 processes

Any thoughts?

As I was telling another poster, make the config as simple as can be until
you get this issue worked out. ;-)  Meaning, use the default notification
macros and setup one host and one contact definition until you get this
working.  Have you checked your notifiction options in your 'Check Remote
Zombie Processes' service definition?

notification_options[w,u,c,r,f,s]

You most certainly want to have a 'c' in there.  Are notifictions enabled
for this service (as defined in the service template you are probably
using)?

James

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Change Nagios email 'from' field

2009-01-12 Thread ChrisSerafin
I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the 
'from' field when receiving emails. Currently I get one email from 
'nag...@ubuntu-nagios' which is not a real email address at all. I would 
like to use 'supp...@xyz.com' so that clients can respond to our support 
team with a simple reply-all email. Also, I have multiple emails sent 
when one alert goes out and I only see myself as the TO: field, which 
means that each alert email is being sent individually and not in one 
single email. Is there any way to change that as well? My main concern 
is to change the FROM field thoughthanks..

Chris Serafin
ch...@chrisserafin.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Problem with NRPE!!!

2009-01-12 Thread Sergio Ariel
I'm triying to install NRPE but I have a big problem.
All documents say that I must do next:

tar xzf nrpe-2.8.tar.gz
cd nrpe-2.8
./configure
make all
make install-plugin
make install-daemon
make install-daemon-config

But when I try to run any make command I receive this error:
make: *** No rule to make target `all'.  Stop.

What can I do?

Thanks.


-- 
Sergio Ariel de la Campa Saiz
Administrador Red UH

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Problem with NRPE!!!

2009-01-12 Thread Richard Quintin
This probably means the ./configure step failed.  Take a look at config.log.

On Mon, Jan 12, 2009 at 12:24 PM, Sergio Ariel sergio.ar...@iris.uh.cuwrote:

 I'm triying to install NRPE but I have a big problem.
 All documents say that I must do next:

 tar xzf nrpe-2.8.tar.gz
 cd nrpe-2.8
 ./configure
 make all
 make install-plugin
 make install-daemon
 make install-daemon-config

 But when I try to run any make command I receive this error:
 make: *** No rule to make target `all'.  Stop.

 What can I do?

 Thanks.


 --
 Sergio Ariel de la Campa Saiz
Administrador Red UH


 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 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




-- 
Richard Quintin, DBA
Database  Application Administration
Virginia Tech
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Change Nagios email 'from' field

2009-01-12 Thread jmoseley
You'll need to edit the command definition of 'notify-by-email', etc.  The
default mail program used by Nagios, /bin/mail, does not allow one to set a
from address, nor do I believe there is an option to do so in a .mailrc
file, either.

In that case, you'd want to use sendmail, something like:

/usr/lib/sendmail -t -f supp...@xyz.com

There are probably 100 different ways to accomplish what you want, so
perhaps folks have some other examples.


James Moseley




   
 ChrisSerafin  
 ch...@chrisseraf 
 in.comTo 
   nagios-users@lists.sourceforge.net  
 01/12/2009 11:15   cc 
 AM
   Subject 
   [Nagios-users] Change Nagios email  
   'from' field
   
   
   
   
   
   




I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change the
'from' field when receiving emails. Currently I get one email from
'nag...@ubuntu-nagios' which is not a real email address at all. I would
like to use 'supp...@xyz.com' so that clients can respond to our support
team with a simple reply-all email. Also, I have multiple emails sent
when one alert goes out and I only see myself as the TO: field, which
means that each alert email is being sent individually and not in one
single email. Is there any way to change that as well? My main concern
is to change the FROM field thoughthanks..

Chris Serafin
ch...@chrisserafin.com




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Change Nagios email 'from' field

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 11:15 AM, ChrisSerafin wrote:

 I have Nagios 3..0.1 running on Ubuntu 8.04 and would like to change  
 the
 'from' field when receiving emails. Currently I get one email from
 'nag...@ubuntu-nagios' which is not a real email address at all. I  
 would
 like to use 'supp...@xyz.com' so that clients can respond to our  
 support
 team with a simple reply-all email.

Nagios doesn't control this. It's a function of the mail program you  
are using to send the messages (mail, mailx, sendmail, whatever).  
Check the manpage for the program you are using to see if it can do  
it. If not, this FAQ might be  useful --

http://www.nagios.org/faqs/viewfaq.php?faq_id=338

 Also, I have multiple emails sent
 when one alert goes out and I only see myself as the TO: field, which
 means that each alert email is being sent individually and not in one
 single email. Is there any way to change that as well?

No, each e-mail is sent individually. It's _much_ easier to do that  
programatically on a per-contact basis than trying to figure out all  
the people that should receive the notification and hope that the  
mailer can support it. Is this a problem for you? You could use role  
addresses within nagios and manage those groupings externally...

--
Marc

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] check_ping stuck on 'PENDING'

2009-01-12 Thread Robert Yeo
The problem was same host dependencies.

In my first config I setup Check NRPE to have the same services on the box
be dependent on it by declaring them again below.  This worked on a nagios
2.x series just fine, but 3.x has a better way to declare it.

Nagios 2.x version -

define servicedependency{
hostgroup_nameNmw_Servers,Wi_Servers
host_name  
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3

service_descriptionCheck NRPE
dependent_hostgroup_name   Nmw_Servers,Wi_Servers
dependent_host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3
dependent_service_descriptionCheck CPU Load,Check Free Space,Current
Users,Total Processes,Zombie Processes

execution_failure_criteria w,u,c,p
notification_failure_criteria  w,u,c,p
}

Nagios 3.x version -

define servicedependency{
hostgroup_nameNmw_Servers,Wi_Servers
host_name  
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,!Nmw_104_011_Finearts_F
ileserver,Dgh_000_012_FairUse,Art_104_014_FilmServer,!Nmw_104_092_Nagios3

service_description   Check NRPE
dependent_service_description Check CPU Load,Check Free
Space,Current Users,Total Processes,Zombie Processes

execution_failure_criteriaw,u,c,p
notification_failure_criteria w,u,c,p
}

The 3.x version is much much simpler.

Just a note that the -v check will throw no errors with the 2.x style check
and the service will then be in a stuck state.  In my case with the
retention file the state was OK and I didn't realize the problem until a
power outage.  Hope this helps someone else in the future.

Thanks again,

Rob Yeo


On 1/12/09 9:22 AM, Robert Yeo r@utah.edu wrote:

 Service dependencies.
 
 I commented them out and everything works fine.  They do not get flagged as
 wrong and worked fine in the 2.x series, so I need to make some changes.
 Thanks for help!   I should have went that route earlier but the behavior
 was so odd with some hosts OK and others not with the same check in the same
 config I though nah.  My mistake.
 
 If it helps at all I will follow up with the corrections that need to be
 made to the dependencies in case anyone else runs into this on a 2.x to 3.x
 migration.
 
 Thanks,
 
 Rob Yeo
 
 On 1/12/09 9:00 AM, jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
 wrote:
 
 
 
 
 
 
 Marc Powell m...@ena.com wrote:
 
 
 
 It means don't apply the service to this host if it's in one of the
 named hostgroups. It's not documented quite like the OP's use but I
 expect it will work.
 
 See 'Excluding Hosts' at
 http://nagios.sourceforge.net/docs/3_0/objecttricks.html
 
 Good, I learned something new.  I still think it's a great idea, though, to
 simplify the configuration as much as possible when dealing with a single
 host that is having problems.  ;-)
 
 James
 
 
 
-
-
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 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:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Elevated alerts

2009-01-12 Thread Grant Lowe
Hi James,

Good news. I followed your advice and read some more about the definitions.  
But the thing that really helped was twofold:  One was there was no reference 
to a global service template.  The other thing was adding the contact for the 
service definition.  There's a lot to this thing!

Many thanks for staying the course!



- Original Message 
From: jmose...@corp.xanadoo.com jmose...@corp.xanadoo.com
To: Grant Lowe gl...@sbcglobal.net
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, January 12, 2009 9:21:03 AM
Subject: Re: [Nagios-users] Elevated alerts

Grant, you've got me really confused now.  For starters, I would strongly
encourage you to go back and read the documentation on object defitions.
It may be that by default notifications are enabled and that notification
options are also set to something as default.

With that said, since it appears the service definition below doesn't
contain a reference to a global service template,  I don't see where you
have told the 'check remote zombie processes' service who to send alerts
to.  You either need a contacts or contacts_group argument to define who
the service should send alerts to, something like:

contactsglowe1

How are your other service definitions setup?  If somehow email is working
for the 'email' contact, but not for the 'paging' contact, then the contact
macro you have set up as definied by the contact-by-pager definition is
most likely the culprit.  You're going to have to start with a known
working contact macro and edit it until you get it working.  Start by
sending both critical and warning alerts to the working contact., then
create new contacts with different alert options making sure you add those
contacts to the contacts definition of the service definition.

Lastly, have you verified your config?

nagios -v /path/to/nagios.cfg

This will tell you if your config is generally OK.



James Moseley




  
 Grant Lowe
 gl...@sbcglobal.
 net   To 
  jmose...@corp.xanadoo.com  
 01/12/2009 10:55   cc 
 AMnagios-users@lists.sourceforge.net  
   Subject 
   Re: [Nagios-users] Elevated alerts  
  
  
  
  
  
  




James,

I thought I was trying to make this config as simple as possible.  I'm only
monitoring five UNIX boxes right now.  Hopefully going to expand that soon
with Nagios :-


The hosts I'm monitoring didn't have any notification options, but they do
now.  All six.  This is what I have for the zombie processes:

define service{
host_name   blarney,frogmore,katz,dunvegan,redfort
hostgroup_name  solaris-servers
service_description Check Remote Zombie Processes
check_command   check_nrpe!check_zombie_procs
max_check_attempts  5
notification_interval   60
check_period24x7
notification_optionsw,u,c,r,f,s
}

I don't have services disabled or enabled right now in any of the related
service definitions (like the one above).  Do I need to explicitly turn
them on?  I thought they were already on, considering I'm getting
notifications already through email.  Please advise.  Thanks.

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Changing diskspace available from kilobytes to megabytes

2009-01-12 Thread Kaplan, Andrew H.
Hi there --

We currently have several Nagios 2.6, and will eventually deploy version 3.0.6
servers running on our network.
Currently diskspace availability is shown in kilobytes, but I would prefer to
have it displayed in megabytes. 

Is it possible to configure either versions of Nagios to have the output in
megabytes? If so, what needs to be 
done in order to accomplish this? Thanks. 




The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Changing diskspace available from kilobytes to megabytes

2009-01-12 Thread jmoseley
The disk space units have nothing to do with Nagios, but with the output of
the particular plugin you are using.  The plugin 'check_disk', which comes
with the Nagios Plugins package, by default displays data in megabytes, but
you change the units with the proper argument.  It appears that plugin only
works with locally mounted filesytems.

There is another plugin called 'check_snmp_storage.pl' which allows you to
check diskspace of remote systems via SNMP.  It's units are in megabytes
only.  You could change this by editing the perl script, of course.

So, it all depends on the plugin you are using and whether or not the disk
space units are configurable.

I would suggest searching Google.  ;-)


James Moseley




   
 Kaplan, Andrew   
 H.   
 ahkap...@partner  To 
 S.ORGnagios-users@lists.sourceforge.net 
  
 01/12/2009 07:15   cc 
 PM
   Subject 
   [Nagios-users] Changing diskspace   
   available from kilobytes to 
   megabytes   
   
   
   
   
   
   




Hi there --


We currently have several Nagios 2.6, and will eventually deploy version
3.0.6 servers running on our network.
Currently diskspace availability is shown in kilobytes, but I would prefer
to have it displayed in megabytes.


Is it possible to configure either versions of Nagios to have the output in
megabytes? If so, what needs to be
done in order to accomplish this? Thanks.





The information in this e-mail is intended only for the person to whom it
is
addressed. If you believe this e-mail was sent to you in error and the
e-mail
contains patient information, please contact the Partners Compliance
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in
error
but does not contain patient information, please contact the sender and
properly
dispose of the e-mail.
--

This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Changing diskspace available from kilobytes to megabytes

2009-01-12 Thread Marc Powell

On Jan 12, 2009, at 7:15 PM, Kaplan, Andrew H. wrote:

 Hi there --

 We currently have several Nagios 2.6, and will eventually deploy  
 version 3.0.6 servers running on our network. Currently diskspace  
 availability is shown in kilobytes, but I would prefer to have it  
 displayed in megabytes.

 Is it possible to configure either versions of Nagios to have the  
 output in megabytes? If so, what needs to be done in order to  
 accomplish this? Thanks

It comes from the check_disk plugin, not nagios. Interestingly, the  
default units _are_ megabytes so I think you might have specifically  
set it to show KB instead. Take a look at your check_disk command  
definition to verify you didn't specify -k and/or make sure you're  
using -u or -m properly.

[libexec]$ ./check_disk --help
check_disk v1848 (nagios-plugins 1.4.11)
Copyright (c) 1999 Ethan Galstad nag...@nagios.org
Copyright (c) 1999-2006 Nagios Plugin Development Team
nagiosplug-de...@lists.sourceforge.net

This plugin checks the amount of used disk space on a mounted file  
system
and generates an alert if free space is less than one of the threshold  
values


Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | - 
x device}
[-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type]

Options:
  -h, --help
 Print detailed help screen

[chop chop snip snip ohwhatareliefitis]

  -k, --kilobytes
 Same as '--units kB'
  -m, --megabytes
 Same as '--units MB'
  -u, --units=STRING
 Choose bytes, kB, MB, GB, TB (default: MB)

--
Marc


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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 sound

2009-01-12 Thread Ian Masters
 I amto know How is possible to have sound for alert in nagios

Please check the list archives. This has been discussed many times.

Ian


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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