Re: [Nagios-users] Monitoring Windows Servers - [New domain name for nsclient++]

2008-04-07 Thread Michael Medin

> (found here: http://trac.nakednuns.org/nscp - don't ask me about the URL
> I don't know why it is what it is - it seems safe though) 
>   
LOL, everyone seems to mention this lately, well, here is my official 
apology to anyone who has taken offense for the domain name *SORRY*
Anyways, try: http://NSCLIENT.ORG, http://nsclient.com or 
http://nsclient.net hopefully these are "better" (if anyone want to know 
the reason for using the old one there is a post on the forum about it 
http://nsclient.org/nscp/discussion/2/120 )

The preferable domain is nsclient.ORG but since go-daddy was so damn 
cheep (anyone know why? I pay 10 times as much for my "previous 
domains") I got the others when I was at it...

And if any apache2 configure gurus knows how to combine location (I use 
a location with mod python inside it to "call trac") and mod_rewrite let 
me know cause I would have preferred to drop the "trailing /nscp" but 
alas apache was giving me attitude...

// Michael Medin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] DNX Version 0.18 Released!

2008-04-07 Thread John Calcote
Hi everyone,

I'm pleased to announce the release of version 0.18 of the Distributed
Nagios eXecutor (DNX) project.

I sincerely apologize for the short time period between versions 0.17
and 0.18 (about 4 days!), but I felt that it was critical that the
most significant changes between these two versions be made available
to the public as soon as possible.

Besides the excellent fixes, enhancements, and changes found in 0.17,
version 0.18 also includes the following changes:

- Fixed problem where dnxClient would stop  processing jobs after a
while, thread pool bug - all threads would terminate - thanks to
Alessandro Ren, Jesse Caldwell and William Leibzon!

- Added code to fix TIME_WAIT state issues on restart.

- Added code to display the same version information from dnxstats as
from command line.

- Added code to have server return human-readable "OK" message on
dnxstats commands that didn't previously have reply text.

Currently, I believe that this release has no more major defects
(obviously this belief is subject to change). We on the DNX project
team fully intend to continue adding functionality, both to meet our
original design goals, and to add features requested on the dnx-devel
and dnx-users mailing lists. Nevertheless, we feel this is the most
stable DNX release to date.

http://dnx.sourceforge.net
http://www.sourceforge.net/projects/dnx

Please download and enjoy!

John

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Monitoring Windows Servers - Comparing Options

2008-04-07 Thread Frater, Greg J
>No input from anyone? One of the selling points to move away from
proprietary solutions and towards OSS was the helpfulness of the
community and mailing list. I know I don't have a 'problem' listed
below that can easily be solved, but surely there are some opinions out
there?

Alright, I'll respond.  Most of the time I usually just lurk
here, most questions are usually answered quite well by others in a
relatively short time.  This is my 2 cents.  See response below amongst
your first post questions. 


>So, my question is, what is the best option for monitoring Windows
Servers and why?
>An important factor to consider is that I will probably not have
Administrative access to any of the Windows Servers that I will be
>monitoring.

>I'm currently considering three options for the reasons shown below (in
order of preference):
>1) WMI checks
>Pros
>-Complete control of NRPE service on 'my' Windows Server
>(Can this be distributed over two boxes?)
>-Complete control of check commands on Nagios Server

WMI provides a very thorough list of things you can check
It's built into the OS, i.e. no install or configuration
required

>Cons
>-NRPE service must be run from an account with access to all
Windows Servers.

WMI can fail.  From time to time we have a server with WMI
problems, we've been able to fix WMI at times, other times we've had to
rebuild the OS, in those cases you would not have any monitoring.
WMI is used by other things as well, and is susceptible to
getting corrupted or reconfigured by something (or in our case someone)
else.  I think we've resolved most of our issues with WMI, however I
learned that if it's broken, it does not matter why you can't use it to
monitor anything until it's fixed.
WMI requires common MS technology such as common MS network
ports and Windows (AD) user accounts for security.  This is not a
problem for the most part but increases the risk when monitoring a DMZ
for example and means your monitoring is dependant upon AD and thus
anything AD needs (like DNS), etc.  If AD or DNS goes down you've got
bigger problems than whether or not your Nagios agents are working,
however it that is how you watch everything then when they fail will you
know it?

>2) Agent checks - NRPE-NT or some other current Windows Agent
>Pros

Your not relying on a MS technology.  Obviously the OS has to be
available but your not dependant upon WMI or .NET or MDAC, etc.  This
may sound ironic but having your monitoring system as independent of the
system it's watching as possible the better (IMO).
Flexibility/Extensibility.  For example the agent we use (nscp)
(found here: http://trac.nakednuns.org/nscp - don't ask me about the URL
I don't know why it is what it is - it seems safe though) is very
flexible supporting both the original NSClient on the Nagios server side
or NRPE and can check pretty much anything (including, WMI, perfmon,
event logs, plus some built in checks and custom scripts).  The
documentation is not one of it's strong points, but it is very capable
and reliable.  I've struggled at times getting a particular type of
check working because I could not understand the docs.  I have not run
into any problems with it in terms of crashes or memory leaks, etc.
After about two years of using it (various versions) I can only think of
twice when it has either generated an error or stopped running and that
covers over 200 Windows boxes.  It can be installed and uninstalled
without server reboots.  It just works, I like it.  Better docs would be
nice though.  I'm not trying to sell you on this particular agent or
even agents in general, this is my experience.

>Cons
>-Requires an agent setup and running on every Windows Server
>-No direct control of agents/check commands

Some checks via an agent (like custom scripts) are not as quick
as SNMP (and probably WMI).

>3) SNMP based checks
>Pros
>-Complete control over check commands on Nagios Server

SNMP checks are very fast
Once configured no changes are required on the server (i.e. SNMP
does not require version upgrades, etc.)

>Cons
>-No direct control of SNMP Community Strings/ACL allowing
access from Nagios
>-No direct control of SNMP service

The values exposed via SNMP on Windows servers is limited.  You
can do basic monitoring disks, ram, cpu, etc.  But not advanced things
such as CPU user mode vs. kernel mode usage.  You can get an SNMP
extension such as SNMP-Informant (http://www.snmp-informant.com/) to
resolve this issue.
SNMP can fail.  We have a small portion of our servers both 2000
and 2003 where SNMP service won't stay running.  We do some SNMP
monitoring but not a lot, I've not solved this one yet.


>How do you do it? Are there any other Pros & Cons that I might be
missing? Do yo

[Nagios-users] PNP Templates

2008-04-07 Thread Stephen Malenshek
I am sure that this has been discussed, but I am unable to find anything
regarding it.  I want, like in disk usage graphs, to display the name for
the /usr partition as /usr instead of _user.

 

Thanks for your time in advance.

 

Stephen

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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 command-line tools

2008-04-07 Thread Steve Kieu
I remember that I have done it querying mysql db and using ndo for nagios.



On Mon, Apr 7, 2008 at 11:25 AM, Kelly Jones <[EMAIL PROTECTED]>
wrote:

> Nagios has a great web interface. I sometimes want the information
> from that interface in command-line format for other scripts.
>
> Does nagios have command-line tools that will:
>
> % Return all the children/descendants of machine X.
>
> % Return all services being tested on machine X.
>
> % Return all services in servicegroup X.
>
> etc...?
>
> I realize /var/spool/nagios/objects.cache has all this info (and
> status.dat even has the current status), and my current hack is to
> parse that file, but is there an easier/better way to get this info?
>
> --
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.
>
> -
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ___
> 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
>



-- 
Steve Kieu
Mob: (+64) 021 250 6437
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] checkcommands.conf templates for check_postgres.pl

2008-04-07 Thread Brian A. Seklecki

[may be more nagiosplug-devel@ related, but hey!]


It probably wouldn't be a bad idea to include some checkcommands.conf
templates and example service or hostgroup examples.  See below.



 Templates 


define command {
command_namecheck_postgres_size
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action database_size -w $ARG1$ -c $ARG2$
}

define command {
command_namecheck_postgres_time
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action timesync -w $ARG1$ -c $ARG2$
}

define command {
command_namecheck_postgres_backends
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action backends -w $ARG1$ -c $ARG2$
}

define command {
command_namecheck_postgres_last_vacuum
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action last_vacuum -w $ARG1$ -c $ARG2$
}

define command {
command_namecheck_postgres_bloat
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action bloat -w $ARG1$ -c $ARG2$
}

define command {
command_namecheck_postgres_settings_checksum
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action settings_checksum -c $ARG1$
}


define command {
command_namecheck_postgres_locks
command_line$USER2$/check_postgres.pl -H $HOSTADDRESS$ -u
pgsql -db postgres --action locks -w $ARG1$ -c $ARG2$
}





 Service Check Examples 






[Host Definition]


define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service
Database Usage Size
check_command   check_postgres_size!25600!
51200
}

define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service
Database Locks
check_command   check_postgres_locks!2!3
}


define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service Last
Vacuum
check_command   check_postgres_last_vacuum!600!
900
}

define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service
Database Configuration Checksum
check_command
check_postgres_settings_checksum!654104dd9397d7032c275a165c33d6e0
}

define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service
Database Bloat
check_command   check_postgres_bloat!300!
900
}

define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service Active
Backend Threads
check_command   check_postgres_backends!40!60
}

define service{
use generic-other
host_name   dbhost.gtld
service_description dbhost PostgreSQL Service NTP
Jitter
check_command   check_postgres_time!1!2
}



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Monitoring Windows Servers - Comparing Options

2008-04-07 Thread Cook, Garry
No input from anyone? One of the selling points to move away from proprietary 
solutions and towards OSS was the helpfulness of the community and mailing 
list. I know I don't have a 'problem' listed below that can easily be solved, 
but surely there are some opinions out there?

Thanks,
Garry

-Original Message-
Sent: Tuesday, April 01, 2008 10:09 AM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Monitoring Windows Servers - Comparing Options

For the past few years Nagios has been the most important tool for monitoring 
my network and Linux servers. I now have 'buy in' from the department handling 
the Windows Servers to at least show them how Nagios can help them to stay on 
top of issues, without all of the false positive alerts that they get from 
current tools, which can cause people to want to ignore most issues.

So, my question is, what is the best option for monitoring Windows Servers and 
why?
An important factor to consider is that I will probably not have Administrative 
access to any of the Windows Servers that I will be monitoring.

I'm currently considering three options for the reasons shown below (in order 
of preference):
1) WMI checks
Pros
-Complete control of NRPE service on 'my' Windows Server
(Can this be distributed over two boxes?)
-Complete control of check commands on Nagios Server
Cons
-NRPE service must be run from an account with access to all Windows 
Servers.

2) Agent checks - NRPE-NT or some other current Windows Agent
Pros
-???
Cons
-Requires an agent setup and running on every Windows Server
-No direct control of agents/check commands

3) SNMP based checks
Pros
-Complete control over check commands on Nagios Server
Cons
-No direct control of SNMP Community Strings/ACL allowing access from 
Nagios
-No direct control of SNMP service

How do you do it? Are there any other Pros & Cons that I might be missing? Do 
you think I should consider a process/utility not listed?

I'm open to suggestions on which agent is best, but I can probably determine 
this from list archives and testing. At this time I'm more interested in which 
high-level option would be the best fit.
Perhaps there is a good reason to use more than one of the above options, and 
I'm just not aware of it yet.

Any input would be greatly appreciated.

Thank you,

Garry W. Cook, CCNA
Network Systems Specialist
ARCADIS U.S., Inc.

NOTICE: This e-mail and any files transmitted with it are the property of 
ARCADIS U.S., Inc. and its affiliates. All rights, including without limitation 
copyright, are reserved. The proprietary information contained in this e-mail 
message, and any files transmitted with it, is intended for the use of the 
recipient(s) named above. If the reader of this e-mail is not the intended 
recipient, you are hereby notified that you have received this e-mail in error 
and that any review, distribution or copying of this e-mail or any files 
transmitted with it is strictly prohibited. If you have received this e-mail in 
error, please notify the sender immediately and delete the original message and 
any files transmitted. The unauthorized use of this e-mail or any files 
transmitted with it is prohibited and disclaimed by ARCADIS U.S., Inc. and its 
affiliates.

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] RE : NDOUtils Problem

2008-04-07 Thread Joe Precious
This is all starting to get a bit too complex for me!  Anyway, I’ve managed to 
narrow down the problem a bit.

 

I did a fresh install of Ubuntu 7.10 Server with Nagios and NDOUtils (latest 
versions) and get the same problem exactly.

 

I then did a fresh install of Ubuntu 6.06 Server with Nagios and NDOUtils and 
it works perfectly.  So there’s obviously something in Ubuntu 7.10 causing the 
problem.  I guess the next step would be to go through all the components and 
check for version differences, but I’m not really sure I can be bothered - I 
think I’ll just stick with Ubuntu 6.06 for now.

 

Thanks for all the help anyway!

 

Joe

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Grassi
Sent: 04 April 2008 18:53
To: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] RE : NDOUtils Problem

 

I assume, as you have said, that /usr/local/nagios/var/ndo.sock has write 
permissions for the user/group that Nagios daemon runs as.

In the file src/io.c, line 225, is the function ndo_sink_write, wich is 
returning the value NDO_ERROR and causing the function ndomod_write_to_sink in 
file src/ndomod.c to log the error "Error writing to data sink!" (that same 
function is also the one that succesfully reconnects to data sink).

Maybe you can get more info about the problem, examining the errno variable 
after the "write" call in ndo_sink_write. You can modify the line 733 in 
ndomod.c for something like this:

asprintf(&temp_buffer,"ndomod: Error writing to data sink (%d - %s)!  Some 
output may get lost.  %lu queued items to flush.",errno,strerror(errno), 
sinkbuf.items);

The function strerror gives you a very short description of the error, and is 
defined in string.h

The error codes should be defined in /usr/include/asm-generic/errno.h

If the permissions are ok (which seems to be the case due to the unix socket 
being opened for writing succesfully), maybe there is a problem with ndo2db 
disconnecting for some reason in the other extreme of the socket.

You can also use netstat -a to see if the ndo2db daemon is listening on the 
specified socket, before and after getting up nagios.

Also, I think that the ndo2db daemon should at least log a query like "SELECT 
instance_id FROM ...", which is one of the first things that ndo2db does after 
connecting to the database (in ndo2db_db_hello() in src/db.c), so maybe it's 
the ndo2db daemon failing to connect to database (or to listen on the unix 
socket).

The function that connects to the database is ndo2db_db_connect, which sends 
(un)success messages to syslog.

Well, I've no more ideas at the moment.






2008/4/4, Joe Precious <[EMAIL PROTECTED]>:

Config files are below.  I always get the errors – nothing has been written to 
the database yet (NDOUtils was installed yesterday morning).

 

Thanks

 

ndomod.cfg:-

 

instance_name=default

output_type=unixsocket

output=/usr/local/nagios/var/ndo.sock

tcp_port=5668

output_buffer_items=5000

buffer_file=/usr/local/nagios/var/ndomod.tmp

file_rotation_interval=14400

file_rotation_timeout=60

reconnect_interval=15

reconnect_warning_interval=15

data_processing_options=-1

config_output_options=2

 

ndo2db.cfg:-

 

ndo2db_user=nagios

ndo2db_group=nagios

socket_type=unix

socket_name=/usr/local/nagios/var/ndo.sock

tcp_port=5668

db_servertype=mysql

db_host=localhost

db_port=3306

db_name=nagios

db_prefix=nagios_

db_user=nagios

db_pass=

max_timedevents_age=1440

max_systemcommands_age=10080

max_servicechecks_age=10080

max_hostchecks_age=10080

max_eventhandlers_age=44640

debug_level=-1

debug_verbosity=2

debug_file=/var/log/ndo2db.debug

max_debug_file_size=100

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Grassi
Sent: 04 April 2008 15:21
To: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] RE : NDOUtils Problem

 

Joe, can you please paste your ndomod.cfg and ndo2db.cfg files (without 
comments)?

2008/4/4, Joe Precious <[EMAIL PROTECTED]>:

Hi

 

I've enabled logging and it creates the debug file but there's nothing in it 
which implies to me that ndo2db is not actually doing anything at all.  I guess 
this ties in with the errors that imply that ndomod can't connect to the socket.

 

I've checked the location of the socket in both configuration files is the 
same, I've also confirmed it exists where it should and the permissions look 
fine on it (the same as my other server where it works).

 

Is there anyway I can test the connection to the socket?  This is starting to 
get a bit beyond my Linux knowledge.

 

BTW I upgraded to 3.0.1 in case this helped but it didn't!

 

Thanks

 

Joe

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Grassi
Sent: 04 April 2008 13:19
To: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] RE : NDOUtils Problem


-
Check out the new SourceForge.net Marketplace

[Nagios-users] nrpe not starting on gentoo

2008-04-07 Thread Kaushal Shriyan
/etc/init.d/nrpe start
 * Starting nrpe ...
 * Failed to Start
nrpe[ !!
]
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] Configuring tricky escalations

2008-04-07 Thread Edgar Matzinger
Hi Julien,

> This is working just fine. Now the tricky part : we would 
> like to send notification for DF WARNINGS only during 
> workhours, and the rest (u,c,r) in the 24x7 period.
> I tried to create more escalations, specific with 
> "timeperiod" and "escalation_options" but I can't make it.
> 
> Will you find the solution ? thanks in advance for your help.

  you have to specify in the contacts or contacts group the notification
period, i.e. when *they* want to be notified.

HTH, cu l8r, Edgar.
-- 
|\  /| :: Addr: Valid Eindhoven B.V.
 /  | \/ | : Edgar R. Matzinger :   t.a.v. E.R.
Matzinger
/   || ::   Paradijslaan 36
\  /|  /\| ::   5611 KN Eindhoven
 \/   /  \ : Valid Eindhoven BV :
  \  /\  / ::
   \/ |\/  ::
  |::
Disclaimer: Any comments, opinions made are mine, etc ... 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Configuring tricky escalations

2008-04-07 Thread Julien Dehee
Hi, I'm using Nagios in a production environment, and I'm trying to
configure some complex setup, which I'll try to explain here :

- Munin is sending to Nagios NSCA exports to tell when a server run out of
disk space.
We have in services.cfg this configuration :
define service{
use  crit-service   # this is a
service which will send us SMS notifications
host_name   serverOne, serverTwo
hostgroup_namegroupofServers1, groupofServers2
service_description df
max_check_attempts 1
check_commandcheck_none
active_checks_enabled   0
}

This is a typical passive checks driven service. we also want to send
notification first to somebody, and 10 minutes later to the whole admin team
:
here is the escalation.cfg for the "df" service  and (for one of the
servers, this is repeated for each server or group of server):

define serviceescalation{
service_description df
host_name   someserver
first_notification 1
last_notification 0
notification_interval   10
contact_groups some_guy
}

define serviceescalation{
service_description df
host_name   someserver
first_notification 2
last_notification 0
notification_interval   10
contact_groups whole_admin_team
}


This is working just fine. Now the tricky part : we would like to send
notification for DF WARNINGS only during workhours, and the rest (u,c,r) in
the 24x7 period.
I tried to create more escalations, specific with "timeperiod" and
"escalation_options" but I can't make it.

Will you find the solution ? thanks in advance for your help.

Julien Dehee.
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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] How do I display multiple line check results for NSCA?

2008-04-07 Thread #ANG CHIN TECK#
Hi all,

I am using NSCA to do passive checks. Nagios web interface only displays the 
first line of the multiple-line results sent back to Nagios. 

But when i use nrpe to do active checks, all the lines are displayed.

Is it possible to configure the external commands or NSCA to allow displaying 
of multiple line output? 
 
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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