Re: [Nagios-users] Long running notification script

2011-03-21 Thread Matthew Melvin
On Thu, 2011-03-17 at 16:00 -0700, Mike Lindsey wrote:

 I have a notification command that will typically take longer to run, 
 than my notification timeout.  I don't particularly care, if Nagios gets 
 a valid return code back, so I set the main script to fork twice, with 
 the initial process printing 'OK' and exiting with a return code of 0.  
 The child process also exits immediately with a return code of 0, while 
 the grandchild hangs around to do some heavy lifting.
 
 I was hoping that the double-fork would keep Nagios from blocking on the 
 process, but the debug logs are still showing:
 [1300401208.452280] [032.1] [pid=55343] Adding normal contacts for 
 service to notification list.
 [1300401239.455867] [032.0] [pid=55343] 1 contacts were notified.  Next 
 possible notification time: Fri Mar 18 03:33:28 2011
 
 When I'm expecting the '1 contacts were notified' to happen pretty much 
 immediately.
 
 Any ideas to get around this, other than writing out a spool file and 
 having a secondary daemon handle the heavy lifting?
 

This sounds like the same issue I had my ocsp_command script.  The main
nagios program was waiting on the grandchild even though the child had
returned already.  In my case it was because the grandchild still had
filehandles back to to nagios open.  When I closed filehandles 4 and 5
in the grandchild before it went off to do its real work I got the
desired behavior; nagios considered the script run once the child
returned, and grandchild was to free to take as long as it needed to
complete.

M.

-- 
... with eskimo chain i tattooed my brain all the way...


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] perfdata not being processed

2011-03-21 Thread khurram aziz
hellloo sumbody help me :)

 Khurram Aziz Khalid





From: khurram aziz khurramazizkha...@yahoo.com
To: Nagios-users@lists.sourceforge.net
Sent: Sun, March 20, 2011 5:57:10 PM
Subject: [Nagios-users] perfdata not being processed


Hi 

I am using CentOS 5 as my Operating System and installed Nagios-3.2.3, with 
nagios-plugins-1.4.15. initial configuration is working fine and i am able to 
use nagios in my browser by typing http://localhost/nagios. Problem starts when 
i try to configure pnp4nagios-0.6.11. when i make the necessary adjustments in 
nagios.cfg and commands.cfg i am unable to restart nagios service and it gives 
me error related to 



Here are some changes that I have made after installing  pnp4nagios

process_performance_data=1

host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata

host_perfdata_file_mode=a
sercvice_perfdata_file_mode=a

host_perfdata_file_processing_interval=30
service_perfdata_file_procecssing_interval=30

host_perfdata_file_processing_command=process-host-perfdata-file
service_perfdata_file_processing_command=process-service-perfdata-file

 following are the changes that I have made in /objects/commands.cfg


define command {
command_name process-service-perfdata
command_line  /usr/bin/perl
/usr/local/pnp4nagios/libexec/process_perfdata.pl
}

define  command {
command_name process-host-perfdata
command_line  /usr/bin/perl
/usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTNAME
}

 
ok now when i restart nagios it gives me error on line 420 of my commands.cfg 
which is command_name process-service-perfdata

can sum1 please help me!

Khurram Aziz Khalid


  --
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Issue in configuring Nagios Appender

2011-03-21 Thread Anand, Sakshi
Plz help.

Regards,
Sakshi Anand


From: Anand, Sakshi
Sent: Sunday, March 20, 2011 11:31 PM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Issue in configuring Nagios Appender

All,

I am trying to configure nagios appender for one of my applications which is 
using log4j to log data. Also, my NSCA configuration is running fine.

However, I am not able to send checks from the application using nagios 
appender.

Following is what my log4j.xml looks like (it is successfully writing to 
console and to log file too) -


?xml version=1.0 encoding=UTF-8 ?

!DOCTYPE log4j:configuration SYSTEM log4j.dtd

log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'

appender name=CA class=org.apache.log4j.ConsoleAppender

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n /

/layout

/appender

appender name=FA class=org.apache.log4j.FileAppender

param name=File 
value=C:\\eclipse\\workspace2\\NSCA-PassiveChecks\\nagiosAppenderDemo\\Log4jDemo.log/

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n /

/layout

/appender

appender class=org.apache.log4j.nagios.NagiosAppender 
name=NAGIOS-Connection Monitoring

param name=Host value=rpc1934.daytonoh.ncr.com/

param name=Port value=5667/

param name=ServiceNameDefault value=uContainer/

param name=useMDCServiceName value=false/

param name=useMDCHostName value=false/

param name=useShortHostName value=false/

param name=Log4j_Level_ERROR value=NAGIOS_CRITICAL/

param name=Log4j_Level_FATAL value=NAGIOS_CRITICAL/

param name=ExcludeFilterEnabled value=true/

param name=PatternFilterFile value=NagiosIncludeExcludeFilters.properties/

param name=SendStartupMessageOK value=Application Errors Cleared/

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=server: %X{Connection Monitoring}: 
%m%n/

/layout

/appender

root

level value=DEBUG /

appender-ref ref=CA /

appender-ref ref=FA /

/root

/log4j:configuration



Please help me in finding the issue and a way to debug it.



Thanks  Regards,

Sakshi Anand
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] perfdata not being processed

2011-03-21 Thread Francisco Neira
2011/3/21 khurram aziz khurramazizkha...@yahoo.com

 hellloo sumbody help me :)

 Khurram Aziz Khalid

SNIP


 ok now when i restart nagios it gives me error on line 420 of my
 commands.cfg which is command_name process-service-perfdata

 can sum1 please help me!


 SNIP

Did you set the proper permissions to the files?



-- 
Francisco Neira, ISO 27002
Usuario Linux # 165985
ISACA No.565432, IEEE No.90934498
Lima, Peru -05:00 GMT
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Distributed Nagios Configuration with Passive Checks

2011-03-21 Thread Jeffrey Watts
If I understand you correctly, are you trying to have your master server
accept passive checks from other Nagios servers and check services and
servers itself?

If so, what I think would be easier (and is the method recommended by the
docs) would be to just set up a second Nagios server (or instance) to run
the checks that the master is currently doing and have the master only
accept passive checks.

The master would have enable_notifications on, execute_service_checks off.
The slaves would have enable_notifications off, execute_service_checks on.

There's more to it than just that, read the following guide for more
information:
http://nagios.sourceforge.net/docs/3_0/distributed.html

Also, if you simply want a unified interface, you might want to look at
Nagios Fusion.  I haven't used it, but it might be what you want.

Good luck,
Jeffrey.
http://nagios.sourceforge.net/docs/3_0/distributed.html
On Sun, Mar 20, 2011 at 9:43 PM, Samuel Kidman samuel.kid...@panres.comwrote:

 Hello



 I am trying to set up a distributed nagios configuration that will monitor
 n mine-sites. There is a single master server that will accept passive
 checks from all of the mine sites providing a unified view of network status
 throughout the organisation.



 I have set up host groups that represent groups of hosts with similar
 function and have the same service checks ran against them such as switches
 and PLCs. Whenever we get a new device I can just add it to the right host
 group and it gets all of its service checks by being a member of that
 hostgroup.



 My question is how do I disable active checks for the service checks for
 the remote minesites without having to create a separate service check for
 each site? The only thing I’ve been able to think of is using an external
 command at nagios start up that checks all of the services on the master
 server and works out which ones belong to remote sites and then disables
 active checks on each one, but this seems like a messy way.


 If there was a way to have host group intersections in the hostgroups
 property in service checks I could specify two services and two hostgroups –
 a local and a remote one. The local check applys to its function group AND
 all devices at the head office while the remote check applies to its
 function group AND all remote hosts, however at present I think this
 functionality is unavailable.



 Just looking for some configuration suggestions on how to get this to work.



 *Sam Kidman*

 *IT Support Officer*

 --

 *T:*08 9225 0944

 * *





 [image: Description: panres]


 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 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

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Issue in configuring Nagios Appender

2011-03-21 Thread Jarlath Lyons
It appears the appender is correctly defined, but just not linked to the root 
logger 

Try this ...


root

level value=DEBUG /

appender-ref ref=CA /

appender-ref ref=FA /

appender-ref ref=NAGIOS-Connection Monitoring /

/root


Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: Anand, Sakshi [mailto:sa185...@ncr.com]
Sent: Monday, March 21, 2011 5:14 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Plz help.

Regards,
Sakshi Anand


From: Anand, Sakshi
Sent: Sunday, March 20, 2011 11:31 PM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Issue in configuring Nagios Appender
All,

I am trying to configure nagios appender for one of my applications which is 
using log4j to log data. Also, my NSCA configuration is running fine.

However, I am not able to send checks from the application using nagios 
appender.

Following is what my log4j.xml looks like (it is successfully writing to 
console and to log file too) -


?xml version=1.0 encoding=UTF-8 ?

!DOCTYPE log4j:configuration SYSTEM log4j.dtd

log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'

appender name=CA class=org.apache.log4j.ConsoleAppender

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n /

/layout

/appender

appender name=FA class=org.apache.log4j.FileAppender

param name=File 
value=C:\\eclipse\\workspace2\\NSCA-PassiveChecks\\nagiosAppenderDemo\\Log4jDemo.log/

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n /

/layout

/appender

appender class=org.apache.log4j.nagios.NagiosAppender 
name=NAGIOS-Connection Monitoring

param name=Host value=rpc1934.daytonoh.ncr.com/

param name=Port value=5667/

param name=ServiceNameDefault value=uContainer/

param name=useMDCServiceName value=false/

param name=useMDCHostName value=false/

param name=useShortHostName value=false/

param name=Log4j_Level_ERROR value=NAGIOS_CRITICAL/

param name=Log4j_Level_FATAL value=NAGIOS_CRITICAL/

param name=ExcludeFilterEnabled value=true/

param name=PatternFilterFile value=NagiosIncludeExcludeFilters.properties/

param name=SendStartupMessageOK value=Application Errors Cleared/

layout class=org.apache.log4j.PatternLayout

param name=ConversionPattern value=server: %X{Connection Monitoring}: 
%m%n/

/layout

/appender

root

level value=DEBUG /

appender-ref ref=CA /

appender-ref ref=FA /

/root

/log4j:configuration



Please help me in finding the issue and a way to debug it.



Thanks  Regards,

Sakshi Anand
inline: image001.png--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] Distributed Nagios Configuration with Passive Checks

2011-03-21 Thread Ton Voon

On 21 Mar 2011, at 02:43, Samuel Kidman wrote:

 I am trying to set up a distributed nagios configuration that will monitor n 
 mine-sites. There is a single master server that will accept passive checks 
 from all of the mine sites providing a unified view of network status 
 throughout the organisation.
  
 I have set up host groups that represent groups of hosts with similar 
 function and have the same service checks ran against them such as switches 
 and PLCs. Whenever we get a new device I can just add it to the right host 
 group and it gets all of its service checks by being a member of that 
 hostgroup.
  
 My question is how do I disable active checks for the service checks for the 
 remote minesites without having to create a separate service check for each 
 site? The only thing I’ve been able to think of is using an external command 
 at nagios start up that checks all of the services on the master server and 
 works out which ones belong to remote sites and then disables active checks 
 on each one, but this seems like a messy way.
 
 If there was a way to have host group intersections in the hostgroups 
 property in service checks I could specify two services and two hostgroups – 
 a local and a remote one. The local check applys to its function group AND 
 all devices at the head office while the remote check applies to its function 
 group AND all remote hosts, however at present I think this functionality is 
 unavailable.
  
 Just looking for some configuration suggestions on how to get this to work.

You want to use templating so that the master is set to active checks enabled 
no while the slave is set to active checks enabled yes.

In Opsview (http://opsview.com), our db based configuration database knows if a 
host is monitored on the master or on a remote slave. We generate 
configurations for a host (and services) appropriately. We've also done loads 
of work so you can manage it from the central master and it will distribute 
downtimes/acknowledgements/disables to slave systems as well.

Ton


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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 XI question

2011-03-21 Thread Joe Martin
Just exploring using Nagios for monitoring network, Windows, unix, Linux and
applications in various ways.  We're thinking Nagios XI looks like a good
fit with one exception - the documentation states that Nagios XI is only
supported on RHEL, CentOS and Fedora - we're a SLES shop.  Anyone out there
runing XI on SLES (specifically SLES 11)?

Thanks,

Joe
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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 XI question

2011-03-21 Thread Assaf Flatto
Joe Martin wrote:
 Just exploring using Nagios for monitoring network, Windows, unix, 
 Linux and applications in various ways.  We're thinking Nagios XI 
 looks like a good fit with one exception - the documentation states 
 that Nagios XI is only supported on RHEL, CentOS and Fedora - we're a 
 SLES shop.  Anyone out there runing XI on SLES (specifically SLES 11)?

 Thanks,

 Joe
As Nagios XI is the commercial application and this user list is for the 
free version , i doubt you'll get the info you ask for .

That being said - nagios the free product runs well on SLES , but assume 
nothing , as again as XI is the commercial app - it could be that the 
license and support only work as described in the web and info given.

Assaf

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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 XI question

2011-03-21 Thread khurram aziz
Hi Joe,

just one question for You.. Why would you pay for Nagios XI when you can use 
the same func for free with Nagios+pnp4nagios

Khurram Aziz Khalid

--- On Mon, 3/21/11, Joe Martin widet.jmar...@gmail.com wrote:

From: Joe Martin widet.jmar...@gmail.com
Subject: [Nagios-users] Nagios XI question
To: nagios-users@lists.sourceforge.net
Date: Monday, March 21, 2011, 3:45 PM

Just exploring using Nagios for monitoring network, Windows, unix, Linux and 
applications in various ways.  We're thinking Nagios XI looks like a good fit 
with one exception - the documentation states that Nagios XI is only supported 
on RHEL, CentOS and Fedora - we're a SLES shop.  Anyone out there runing XI on 
SLES (specifically SLES 11)?


Thanks,

Joe


-Inline Attachment Follows-

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
-Inline Attachment Follows-

___
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


  --
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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 XI question

2011-03-21 Thread Joe Martin
Thanks for the clarification.  I'll try elsewhere.

On Mon, Mar 21, 2011 at 10:51 AM, Assaf Flatto nag...@flatto.net wrote:

 Joe Martin wrote:
  Just exploring using Nagios for monitoring network, Windows, unix,
  Linux and applications in various ways.  We're thinking Nagios XI
  looks like a good fit with one exception - the documentation states
  that Nagios XI is only supported on RHEL, CentOS and Fedora - we're a
  SLES shop.  Anyone out there runing XI on SLES (specifically SLES 11)?
 
  Thanks,
 
  Joe
 As Nagios XI is the commercial application and this user list is for the
 free version , i doubt you'll get the info you ask for .

 That being said - nagios the free product runs well on SLES , but assume
 nothing , as again as XI is the commercial app - it could be that the
 license and support only work as described in the web and info given.

 Assaf


 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 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

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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 XI question

2011-03-21 Thread Joe Martin
Good question. Probably because we're not familiar enough with the Nagios
space to know any better...

I'll review PNP4Nagios - thanks for the suggestion.  Any others?  Someone I
was just talking to suggested NagiosQL too.

On Mon, Mar 21, 2011 at 11:01 AM, khurram aziz
khurramazizkha...@yahoo.comwrote:

 Hi Joe,

 just one question for You.. Why would you pay for Nagios XI when you can
 use the same func for free with Nagios+pnp4nagios

 Khurram Aziz Khalid

 --- On *Mon, 3/21/11, Joe Martin widet.jmar...@gmail.com* wrote:


 From: Joe Martin widet.jmar...@gmail.com
 Subject: [Nagios-users] Nagios XI question
 To: nagios-users@lists.sourceforge.net
 Date: Monday, March 21, 2011, 3:45 PM


 Just exploring using Nagios for monitoring network, Windows, unix, Linux
 and applications in various ways.  We're thinking Nagios XI looks like a
 good fit with one exception - the documentation states that Nagios XI is
 only supported on RHEL, CentOS and Fedora - we're a SLES shop.  Anyone out
 there runing XI on SLES (specifically SLES 11)?

 Thanks,

 Joe

 -Inline Attachment Follows-



 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d

 -Inline Attachment Follows-


 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.nethttp://mc/compose?to=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




 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 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

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
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] define service with multiple contactgroups

2011-03-21 Thread Axel Rosenski
Hi, 

I'd like to  create *one* service definition which I can use to alert different 
contact_groups depending on the hostgroup the server belongs to. I'd like to 
contact different teams for our windows and linuxserver. 

Below I added a short snippet of what I've done so far. As you can see I 
played around with serviceescalations but had no luck. When the service is 
critical both pager receive a notification.


My next thought is to use the generic template and create two service 
template 
snippets and change the contactgroup, but I don't like to define ecery service 
twice.
Perhaps there's a better way to achieve the desired behaviour. Any help is 
appreciated.

Regards, 
Axel 

### SNIP ### 

define contactgroup{
   contactgroup_name   pager-admin
   alias   Pager Administration
   contactgroup_memberspager-linuxadmin, pager-windowsadmin
}

define service{
   name tpl-service-standard
   contact_groups   pager-admin
   register 0
}

define service{
   service_description  Load
   use  tpl-service-standard
   servicegroupssgrp-check-standard
   check_commandcheck_nrpe!check_load
   hostgroup_name   hgrp-linux-server, hgrp-windows-server
}

define serviceescalation{
   hostgroup_name   hgrp-linux-server
   servicegroup_namesgrp-check-standard
   contact_groups   pager-linuxadmin
   first_notification   1
   last_notification2
   notification_interval10
}

define serviceescalation{
   hostgroup_name   hgrp-linux-server
   servicegroup_namesgrp-check-standard
   contact_groups   pager-linuxadmin, phone-linuxadmin
   first_notification   3
   last_notification0
   notification_interval10
}

define serviceescalation{
   hostgroup_name   hgrp-windows-server
   servicegroup_namesgrp-check-standard
   contact_groups   pager-windowsadmin
   first_notification   1
   last_notification2
   notification_interval10
}

define serviceescalation{
   hostgroup_name   hgrp-windows-server
   servicegroup_namesgrp-check-standard
   contact_groups   pager-windowsadmin,phone-windowsadmin
   first_notification   3
   last_notification0
   notification_interval10
}


-- 
Axel Rosenski
- Administration -
__
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosen...@wave-computer.de
http://www.wave-computer.de


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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 XI question

2011-03-21 Thread James Pratt
Perhaps he just wanted to check it out for the nagios core configuration gui , 
as i am doing today... OTOH, i can see xi being a very nice product for 
folks/sites who do not want to hassle with maintaining/setting up all the free 
stuff... (although, I personally do not think it's worth the $, at least based 
on my few days of trial (and error lol). 

Cheers,
James


From: khurram aziz [mailto:khurramazizkha...@yahoo.com] 
Sent: Monday, March 21, 2011 12:01 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios XI question

Hi Joe,

just one question for You.. Why would you pay for Nagios XI when you can use 
the same func for free with Nagios+pnp4nagios

Khurram Aziz Khalid

--- On Mon, 3/21/11, Joe Martin widet.jmar...@gmail.com wrote:

From: Joe Martin widet.jmar...@gmail.com
Subject: [Nagios-users] Nagios XI question
To: nagios-users@lists.sourceforge.net
Date: Monday, March 21, 2011, 3:45 PM
Just exploring using Nagios for monitoring network, Windows, unix, Linux and 
applications in various ways.  We're thinking Nagios XI looks like a good fit 
with one exception - the documentation states that Nagios XI is only supported 
on RHEL, CentOS and Fedora - we're a SLES shop.  Anyone out there runing XI on 
SLES (specifically SLES 11)?

Thanks,

Joe

-Inline Attachment Follows-
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

-Inline Attachment Follows-
___
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


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
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] define service with multiple contactgroups

2011-03-21 Thread Chris Beattie
Check out the documentation's section on implied inheritance.  It might let you 
do what you want:

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

Services can inherit their contact_groups from their associated host 
definition.  You do this by *not* assigning a contact_group in the service 
definition.

-Original Message-
From: Axel Rosenski [mailto:rosen...@wave-computer.de] 
Sent: Monday, March 21, 2011 3:51 PM

I'd like to  create *one* service definition which I can use to alert different 
contact_groups depending on the hostgroup the server belongs to. I'd like to 
contact different teams for our windows and linuxserver. 

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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] Distributed Nagios Configuration with PassiveChecks

2011-03-21 Thread Samuel Kidman

 -Original Message-
 From: Jeffrey Watts [mailto:jeffrey.w.wa...@gmail.com]
 Sent: Monday, 21 March 2011 9:44 PM
 To: Nagios Users List
 Subject: Re: [Nagios-users] Distributed Nagios Configuration with
 PassiveChecks
 
 If I understand you correctly, are you trying to have your master
server
 accept passive checks from other Nagios servers and check services and
 servers itself?

That's right.

 
 If so, what I think would be easier (and is the method recommended by
the
 docs) would be to just set up a second Nagios server (or instance) to
run the
 checks that the master is currently doing and have the master only
accept
 passive checks.
 

Would there be any issues with running the HQ instance on the same
server as the master instance? 

snip

Regards, Sam

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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 XI question

2011-03-21 Thread Tony Yarusso
On Mon, 2011-03-21 at 10:45 -0500, Joe Martin wrote:
 Just exploring using Nagios for monitoring network, Windows, unix,
 Linux and applications in various ways.  We're thinking Nagios XI
 looks like a good fit with one exception - the documentation states
 that Nagios XI is only supported on RHEL, CentOS and Fedora - we're a
 SLES shop.  Anyone out there runing XI on SLES (specifically SLES 11)?

While the actual code (a mix of C, Perl, and PHP) don't care what
distribution it is, all of the installation scripts, documentation, cron
jobs, etc. are tailored for RHEL/CentOS, and it would be very difficult
to get them properly ported over.  We may expand the distro support in
the future, but for the time being it is limited to those.

That said, you can still use XI in a SLES shop.  You would need one
system (or virtual machine) running XI on a CentOS base, but it could
then monitor your SLES systems as targets.  The documentation for the
Agent piece currently covers RHEL, CentOS, Fedora, Ubuntu, and Debian,
but that would be quite a bit easier to adapt to SLES than XI itself.

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyaru...@nagios.com
Web:www.nagios.com


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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 XI question

2011-03-21 Thread Tony Yarusso
On Mon, 2011-03-21 at 09:01 -0700, khurram aziz wrote:
 just one question for You.. Why would you pay for Nagios XI when you
 can use the same func for free with Nagios+pnp4nagios

There's a bit more too it than that.  Nagios XI does include a number of
free projects packaged together, including Nagios Core, pnp4nagios,
NagiosQL, and MRTG, and for some people there's value in having that
pre-packaged, but that's not the prime selling point.  The bigger issues
are things like the configuration wizards, easier configuration of
contacts and contact methods, the ability to build custom dashboards,
autodiscovery, expanded management-friendly reporting and
visualizations, and some other pre-built integration pieces.

On a related note though, we are working on something to better
demonstrate the capabilities of the free components like pnp4nagios, so
people can see what's possible with each and find out about some of the
cool community projects that are out there.  You should see more about
that in our newsletter and on Twitter soon.

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyaru...@nagios.com
Web:www.nagios.com



--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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