Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0

2009-04-16 Thread Jimmyboy
Hi James,

You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not
know how to find out the directory, Apache on my system refers to
'/etc/httpd/conf.d/'.

However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives
into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to
the default location). Still, I am getting the same error on doing a 'sudo
make install-webconf'.

=-=-=-=

I had raised a query on the Apache forum, on which of *apache2.conf* and *
httpd.con*f is the *config file* of Apache. I got an answer stating that it
depends on type of installation method followed. If the source files
(.tar.gz) are used, then it is *httpd.conf*, else, *apache2.conf*. So, it is
true in my case.

Based on this, I observed an already installed Nagios setup on a different
machine. It's *config file* is *apache2.conf* (again true, it was installed
using Synaptic Package Manager).

So, I was thinking to try installing using the 'Synaptic Package Manager' or
'apt-get'. However, both aren't working for me. Though I am able to proxy
the internet (sitting behind a proxy server), Synaptic & sudo apt-get say,
they cannot resolve 'archive.ubuntu.com', etc.

Any idea, how to go about?

Thanks,
Jim

=-=-=-=


On Tue, Apr 14, 2009 at 3:50 AM, James Pratt  wrote:

> Hi - sounds like your issue is that the generic make install in nagios
> src tries to drop a file called nagios.conf into httpd's (usually the
> default) location, /etc/httpd/conf.d/, which, appears does not exist on
> your server...
>
> If you can find what directory your apache uses for "/etc/httpd/conf.d/"
> you can manually copy and paste whatever is in nagios.conf (the one
> trying to be installed from nagios src dir) into your
> "/etc/httpd/conf/httpd.conf" (You can likely disregard the
> "apache2.conf" stuff - sounds like they used their own file naming, as
> the default is normally "httpd.conf")  - Apache itself is very flexible,
> there are many ways to configure it - nagios simply guesses you are
> using redhat, so it tries to drop it's httpd config into
> /etc/httpd/conf.d)
>
> HTH ...
>
> Regards,
> jamie
>
> > -Original Message-
> > From: Jimmyboy [mailto:jimmyjose2...@gmail.com]
> > Sent: Monday, April 13, 2009 2:25 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios
> 3.0
> >
> > Hi,
> >
> > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I
> > understand that /etc/apache2/apache2.conf is the most important file.
> > Though I have installed Apache in /etc/apache2 location, I do not have
> > apache2.conf file as mentioned in the site.
> >
> > However, when I stop/start the Apache service using the command
> > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check
> > http://127.0.0.1   and ps -A | grep httpd, the
> results
> > are OK.
> >
> > Thanks,
> > Jim
> >
> > =-=-=-=-=
> >
> >
> > -- Forwarded message --
> > From: Jimmyboy 
> > Date: Mon, Apr 13, 2009 at 11:49 PM
> > Subject: Apache Server configuration for Nagios 3.0
> > To: nagios-users@lists.sourceforge.net
> >
> >
> >
> > Hi All,
> >
> > I am following the Quickstart Guide for installing NAGIOS using
> > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html.
> >
> > One of the prerequisites is Apache2, which I installed, and was
> successful
> > in getting "It Works!!" for http://127.0.0.1  .
>  >
> > However, I am stuck at point 5) Configure the Web Interface, make
> install-
> > webconf.
> >
> > When this command is issued, this is what I get.
> > /usr/bin/install -c -m 644 sample-config/httpd.conf
> > /etc/httpd/conf.d/nagios.conf
> > /usr/bin/install: cannot create regular file
> > '/etc/httpd/conf.d/nagios.conf': No such file or directory
> > make: *** [install-webconf] Error 1
> >
> > Prefix for Apache: /etc/apache2
> >
> > I believe the httpd.conf file and a few others also need to be edited
> for
> > Nagios. Can some please guide me through this?
> >
> >
> > Thanks,
> > Jim
> >
> >
>
>
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Limit the alert notifications

2009-04-16 Thread Klaus Umbach
On 16/04/09 17:33, Martyn wrote:
> Hi all
> I would like to change the email alerts per users if I may, is there a way
> of setting up so only 3 mails get sent to users "A" but only two mails to
> user "B" even if the fault is still there, if not per users then across the
> board.
> 
> I have searched around but finding anything, not sure if I'm searching for
> the correct wording

See the documentation under "Notification Escalation"

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

Cheers
Klaus

-- 
BOFH excuse #261:

The Usenet news is out of date

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Consolidating Log Files

2009-04-16 Thread Christopher McAtackney
Hi all,

I'm thinking of setting up my Nagios system in a "Redundant
Monitoring" configuration - two servers (a primary and secondary)
which both monitor all hosts / services, but only one of which has
notifications enabled (the primary).

Upon failure of the primary, the secondary will enable its own
notifications (and upon the primary returning to an OK state,
notifications will be disabled).

One aspect of this that I am wondering how to tackle is consolidating
my log files after a failure has occurred.

I want my primary Nagios server's log files to reflect the total
history of check results that have been made - and so would like the
results from the secondary server for the time period when the primary
was done, to be consolidated into the log files of the primary (for
browsing through the web UI).

Has anyone looked into this before, and how did you solve the problem
of duplicate result checks being created in the primary log?

Cheers,
Chris

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Limit the alert notifications

2009-04-16 Thread Martyn
Hi all
I would like to change the email alerts per users if I may, is there a way
of setting up so only 3 mails get sent to users "A" but only two mails to
user "B" even if the fault is still there, if not per users then across the
board.

I have searched around but finding anything, not sure if I'm searching for
the correct wording

Thanks

Chet
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Can you not check a certain hostgroup?

2009-04-16 Thread Niall O Broin
On 16 Apr 2009, at 15:10, Marc Powell wrote:

>> 2009/4/16 Andrew Bruce :
>
>>> hostgroup_name   Win_All, !WinNT_old
>>
>> You can indeed do that.  I do something similar myself to check all
>> Wintel servers, but not those in a group called 'BRONZE'.
>
> And the doc link for reference --
>
> http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service

Marc answered me in similar vein recently, and I am now using it, but  
I made a rather odd discovery. This

host_name !host17, host*

works whereas this

host_name host*, !host17

produces this error at start:

Reading configuration data...

Error: Could not find any host matching '!host17' (config file '/etc/ 
nagios3/conf.d/MM-snmp-checks.cfg', starting on line 49)
Error: Could not expand hostgroups and/or hosts specified in service  
(config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on  
line 49)

***> One or more problems was encountered while processing the config  
files...

It seems that you can't place a negative match after a wildcard.







__
Kindest regards,


Niall  O Broin
MakaluMedia Group | http://makalumedia.com | +49 6151 8724600

MakaluMedia Internet & Engineering Services GmbH | Robert-Bosch  
Strasse 7 | 64293 Darmstadt | Germany
Geschäftsführer: Matt Henderson | Sitz der Gesellschaft: Darmstadt |  
Handelsregister: Amtsgericht Darmstadt HRB 6911



--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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 plugin configure:3377: error:

2009-04-16 Thread Tobias Exner

Dear list,

I've got a problem while compiling the nagios-plugins on a suse 10 box.

I already searched through the web, but I didn't any helpful information.
As I understood the compile needs the path 
/usr/lib/gcc/i586-suse-linux/4.0.2/include

I don't know if that's right and how to fix it.

The path does really not exists.

Thanks in advance...

Here's my ./configure output:

mail:~/nagios-plugins-1.4.13 # pwd
/root/nagios-plugins-1.4.13
mail:~/nagios-plugins-1.4.13 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
mail:~/nagios-plugins-1.4.13 #


And here's the interesting part out of the config.log:



mail:~/nagios-plugins-1.4.13 # more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by nagios-plugins configure 1.4.13, which was
generated by GNU Autoconf 2.61.  Invocation command line was

 $ ./configure

## - ##
## Platform. ##
## - ##

hostname = mail
uname -m = i686
uname -r = 2.6.13-15.15-default
uname -s = Linux
uname -v = #1 Mon Feb 26 14:11:33 UTC 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = i686
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /opt/gnome/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin


## --- ##
## Core tests. ##
## --- ##

configure:2397: checking for a BSD-compatible install
configure:2453: result: /usr/bin/install -c
configure:2464: checking whether build environment is sane
configure:2507: result: yes
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:2610: checking whether make sets $(MAKE)
configure:2631: result: yes
configure:2823: checking build system type
configure:2841: result: i686-pc-linux-gnu
configure:2863: checking host system type
configure:2878: result: i686-pc-linux-gnu
configure:2984: checking for gcc
configure:3000: found /usr/bin/gcc
configure:3011: result: gcc
configure:3249: checking for C compiler version
configure:3256: gcc --version >&5
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3259: $? = 0
configure:3266: gcc -v >&5
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr 
--with-local-pref
ix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man 
--libdir=/usr/lib --
libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada 
--disable-checking --
with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk 
--disable-libjava-
multilib --with-slibdir=/lib --with-system-zlib --enable-shared 
--enable-__cxa_atexi

t --without-system-libunwind --host=i586-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
/usr/lib/gcc/i586-suse-linux/4.0.2/cc1 -E -quiet -v - -mtune=pentium
ignoring nonexistent directory "/usr/lib/gcc/i586-suse-linux/4.0.2/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/include
/usr/include
End of search list.
# 1 ""
# 1 ""
# 1 ""
# 1 ""
configure:3269: $? = 0
configure:3276: gcc -V >&5
gcc: '-V' option must have argument
configure:3279: $? = 1
configure:3302: checking for C compiler default output file name
configure:3329: gccconftest.c  >&5
# 1 "conftest.c"
# 1 ""
# 1 ""
# 1 "conftest.c"
# 11 "conftest.c"
int
main ()
{

 ;
 return 0;
}
configure:3332: $? = 0
configure:3370: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "nagios-plugins"
| #define PACKAGE_TARNAME "nagios-plugins"
| #define PACKAGE_VERSION "1.4.13"
| #define PACKAGE_STRING "nagios-plugins 1.4.13"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "nagios-plugins"
| #define VERSION "1.4.13"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3377: error: C compiler cannot create executables
See `config.log' for more details.



---

Re: [Nagios-users] monitoring critical servers - best practices

2009-04-16 Thread Marc Powell

On Apr 16, 2009, at 7:02 AM, alfonso baldaserra wrote:

> Greetings,
>
> We are using Nagios version 3.0.6 on Fedora core 9.
>
> I was just looking for some ideas how do you guys monitor critical  
> servers and services, what are the best practices etc.?

Ping and those services that I consider critical on the specific  
server; smtp for smtp servers, http for http servers, filtering on  
filtering servers, disk space on all, etc...

> On a related note I just figured we have been missing a lot of  
> alerts lately.  Today we had to reboot couple of AIX servers which  
> usually takes 5+ minutes.  Interesting thing is we did not receive  
> any notification for these servers.  Below is the host configuration  
> entry
>
> define host{
> name aix-server  ; The name of this  
> host template
> use  generic-host; This template  
> inherits other values from the generic-host template
> check_period 24x7; By default, Linux  
> hosts are checked round the clock
> check_interval   2   ; Actively check  
> the host every 5 minutes
> retry_interval   1   ; Schedule host  
> check retries at 1 minute interval
> max_check_attempts   2   ; Check each Linux  
> host 10 times (max)
> check_commandcheck-host-alive ; Default command  
> to check aix hosts
> notification_interval10  ; Resend  
> notifications every 2 hours
> notification_options d,u,r   ; Only send  
> notifications for specific host states
> contact_groups   aix-team; Notifications get  
> sent to the admins by default
> register 0   ; DONT REGISTER  
> THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
> }
>
> I was just wondering what do I need to change if:
>
> a server goes down
> nagios check after 1 minute, as usual, and finds the server is down

check_interval 1

> nagios checks again after a minute and finds the server is still down

retry_interval 1

> nagios sends notification and keep on sending notification after  
> every 10 minutes until the server comes up again

max_check_attempts 2, notification_interval 10. Looks like you just  
need to change check_interval. I use --

 check_interval   5
 retry_interval3
 max_check_attempts  3

> I have checked nagios archives for check_interval, retry_interval  
> and max_check_attempts and as a result I got totally confused.
>
> Any help is much appreciated.
>
> P.S.  I request nagios developers to either change these options to  
> something more meaningful or provide some real life examples.   
> Apparently there are many users which have been confused by these  
> options as seen in archives.

What would you suggest? The names seem obvious to me but I may be  
jaded. The documentation is pretty clear on what they mean/do as well,  
at least to me.

Real life examples are provided in the sample config files (or used to  
be). The documentation links that may help you are (some redundancy  
between them) --

http://nagios.sourceforge.net/docs/3_0/statetypes.html
http://nagios.sourceforge.net/docs/3_0/activechecks.html
http://nagios.sourceforge.net/docs/3_0/servicechecks.html
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

And this one from the -2.0 docs that nicely explains much of the  
scheduling... It's a little dated wrt host checks but for the most  
part is a good read--

http://nagios.sourceforge.net/docs/2_0/checkscheduling.html

--
Marc


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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_by_ssh

2009-04-16 Thread Marc Powell

On Apr 16, 2009, at 8:55 AM, Melanie Pfefer wrote:

>
> Hi
>
> I want to use check_by_ssh with a script that uses an argument
>
> ./check_by_ssh -l myuser -H myhost -t 120 -C myscript  
> my_script_argument
>
>
> The script gives an output as if the my_script_argument is empty
>
> any idea?

Quote the command. For example --

define command {
 command_name   check-archiver
 command_line   $USER1$/check_by_ssh -t 120 -l  
monitor -H $HOSTADDRESS$ -C "/home/monitor/libexec/check_smtp -H  
localhost -p 10025"
 }

--
Marc

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Can you not check a certain hostgroup?

2009-04-16 Thread Marc Powell

On Apr 16, 2009, at 4:29 AM, Jim Avery wrote:

> 2009/4/16 Andrew Bruce :

>> hostgroup_name   Win_All, !WinNT_old
>
> You can indeed do that.  I do something similar myself to check all
> Wintel servers, but not those in a group called 'BRONZE'.

And the doc link for reference --

http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service

--
Marc


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] cfg files reference via http location?

2009-04-16 Thread Marc Powell

On Apr 15, 2009, at 6:15 PM, Brian Phipps wrote:

> Hi all,
>
> Is it possible in the nagios.cfg file to reference the location of  
> hosts, command.cfg, etc via an http location instead of a location  
> on disk on the local machine?

No. Nagios expects the files to be 'local'. That being said, I expect  
that the previously mentioned lufs, nfs (for certain, I use it) or  
other network filesystems you can mount should work for the config  
files...

--
Marc

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] check_by_ssh

2009-04-16 Thread Melanie Pfefer

Hi

I want to use check_by_ssh with a script that uses an argument

./check_by_ssh -l myuser -H myhost -t 120 -C myscript my_script_argument


The script gives an output as if the my_script_argument is empty

any idea?

thank you




  

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] monitoring critical servers - best practices

2009-04-16 Thread alfonso baldaserra
Greetings,

We are using Nagios version 3.0.6 on Fedora core 9.

I was just looking for some ideas how do you guys monitor critical servers
and services, what are the best practices etc.?

On a related note I just figured we have been missing a lot of alerts
lately.  Today we had to reboot couple of AIX servers which usually takes 5+
minutes.  Interesting thing is we did not receive any notification for these
servers.  Below is the host configuration entry

define host{
name aix-server  ; The name of this host
template
use  generic-host; This template inherits
other values from the generic-host template
check_period 24x7; By default, Linux hosts
are checked round the clock
check_interval   2   ; Actively check the host
every 5 minutes
retry_interval   1   ; Schedule host check
retries at 1 minute interval
max_check_attempts   2   ; Check each Linux host 10
times (max)
check_commandcheck-host-alive ; Default command to check
aix hosts
notification_interval10  ; Resend notifications
every 2 hours
notification_options d,u,r   ; Only send notifications
for specific host states
contact_groups   aix-team; Notifications get sent to
the admins by default
register 0   ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}

I was just wondering what do I need to change if:

a server goes down
nagios check after 1 minute, as usual, and finds the server is down
nagios checks again after a minute and finds the server is still down
nagios sends notification and keep on sending notification after every 10
minutes until the server comes up again

I have checked nagios archives for check_interval, retry_interval and
max_check_attempts and as a result I got totally confused.

Any help is much appreciated.

P.S.  I request nagios developers to either change these options to
something more meaningful or provide some real life examples.  Apparently
there are many users which have been confused by these options as seen in
archives.

Thanks
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Centreon

2009-04-16 Thread Cedric Temple
Hi,

2009/4/16 Simon Finch 

>  Centreon requires NDO for a multiple Nagios server environment, I am not
> sure about a single server system.
>

Centreon requires NDO for a single server system.

regards.
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Odd errors in nagios.log

2009-04-16 Thread Martin A. Brooks
Jim Avery wrote:
> You don't have more than one instance of the Nagios daemon running do
> you?  Try stopping the Nagios daemon, make sure all instances of
> nagios are stopped (using ps -ef | grep nagios), and kill any which
> remain then start the Nagios daemon using /etc/init.d/nagios start .

I looked for the before, and there's definitely only one nagios instance 
running.   The problem persists across nagios restarts and reboots.

Thanks

-- 
Martin A. Brooks |  http://www.antibodymx.net/ | Anti-spam & anti-virus
   Consultant|  mar...@antibodymx.net  | filtering. Inoculate
 antibodymx.net  |  m: +447792493388   | your mail system.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Customize "service detail" page

2009-04-16 Thread borkmann
thanks for your answers!

i'm just wondering how nagiosgrapher got their grapher icon into the 
service
page ... i mean ... at first view they doesn't seem to have any patched 
c file or
command.

in their configuration (ngraph.ncfg) they have sth like this:

icon_image_tag  ' dot.png' alt="___ALT___" border="0"> I've heard of people achieving something similar by running the
> service plugin through a wrapper which prepends the relevant string to
> the normal plugin output.  I can't say I've ever tried it myself
> though.
>
> As an example, instead of the normal check command:
>
>   define command{
>   command_namecheck_ftp
>   command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
>   }
>
> You could have a wrapper script which prints the output of your perl
> script (with no newline) then runs the command proper.  Depending on
> how you write the wrapper script (I'll leave that to your
> imagination), the command definition might then look something like:
>
>   define command{
>   command_namecheck_ftp
>   command_line/usr/local/bin/my_wrapper.pl -c
> $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
>   }
>
> Your perl output wouldn't appear in a seperate column as such, but at
> least it would appear on the normal service detail page where you can
> see it.
>
> It's a bit dirty, but if you only need it for a small number of checks
> might be a quick way to get it done.
>
> Cheers,
>
> Jim
>   


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Odd errors in nagios.log

2009-04-16 Thread Jim Avery
2009/4/16 Martin A. Brooks :
> Hi
>
> I've recently been seeing many of the following kind of errors appearing
> nagios.log:
>
> [1239869767] Error: Unable to rename file
> '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to
> '/var/lib/nagios3/spool/checkresults/cs7QqHJ': No such file or directory
> [1239869767] Warning: Unable to move file
> '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to check results queue.
> [1239869767] Error: Unable to rename file
> '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to
> '/var/lib/nagios3/spool/checkresults/cxj4rUo': No such file or directory
> [1239869767] Warning: Unable to move file
> '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue.
> [1239869767] Error: Unable to rename file
> '/var/lib/nagios3/spool/checkresults/checkMroMQn' to
> '/var/lib/nagios3/spool/checkresults/cwRtKxJ': No such file or directory
> [1239869767] Warning: Unable to move file
> '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue.
> [1239869767] Error: Unable to rename file
> '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to
> '/var/lib/nagios3/spool/checkresults/csiU5Uo': No such file or directory
> [1239869767] Error: Unable to rename file
> '/var/lib/nagios3/spool/checkresults/checkMroMQn' to
> '/var/lib/nagios3/spool/checkresults/cj9BayJ': No such file or directory
> [1239869767] Warning: Unable to move file
> '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue.
> [1239869767] Warning: Unable to move file
> '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue.
>
>
> The only two references I can find for this error are:
>
> http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg22963.html
>
> which is inconclusive, and my own Debian bug report at:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522538
>
> (you can see nagios package and version details here, too).
>
> Any insights as to what might be causing these errors?
>
> Regards
>
> --
> Martin A. Brooks |  http://www.antibodymx.net/ | Anti-spam & anti-virus
>   Consultant    |  mar...@antibodymx.net      | filtering. Inoculate
>  antibodymx.net  |  m: +447792493388           | your mail system.
>
>
> --
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ___
> 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
>


You don't have more than one instance of the Nagios daemon running do
you?  Try stopping the Nagios daemon, make sure all instances of
nagios are stopped (using ps -ef | grep nagios), and kill any which
remain then start the Nagios daemon using /etc/init.d/nagios start .

hth,

Jim

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Can you not check a certain hostgroup?

2009-04-16 Thread Jim Avery
2009/4/16 Andrew Bruce :
> Is it possible, in a service definition to tell the service to not check a
> group of hosts?
>
>
>
> For example, I have a hostgroup that contains some basic checks for every
> Windows server.
>
>
>
> But some of the servers are still on NT, so don't support a particular
> check, and I want to disable it for just these servers.  Can I have a
> hostgroup called WinNT_old with the servers I don't want to run this
> particular check against and then do a service check with the hostgroup like
> (or similar):
>
>
>
> hostgroup_name   Win_All, !WinNT_old

You can indeed do that.  I do something similar myself to check all
Wintel servers, but not those in a group called 'BRONZE'.

Cheers,

Jim

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Odd errors in nagios.log

2009-04-16 Thread Martin A. Brooks
Hi

I've recently been seeing many of the following kind of errors appearing 
nagios.log:

[1239869767] Error: Unable to rename file 
'/var/lib/nagios3/spool/checkresults/checkSfWj1n' to 
'/var/lib/nagios3/spool/checkresults/cs7QqHJ': No such file or directory
[1239869767] Warning: Unable to move file 
'/var/lib/nagios3/spool/checkresults/checkSfWj1n' to check results queue.
[1239869767] Error: Unable to rename file 
'/var/lib/nagios3/spool/checkresults/checkb2W7d3' to 
'/var/lib/nagios3/spool/checkresults/cxj4rUo': No such file or directory
[1239869767] Warning: Unable to move file 
'/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue.
[1239869767] Error: Unable to rename file 
'/var/lib/nagios3/spool/checkresults/checkMroMQn' to 
'/var/lib/nagios3/spool/checkresults/cwRtKxJ': No such file or directory
[1239869767] Warning: Unable to move file 
'/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue.
[1239869767] Error: Unable to rename file 
'/var/lib/nagios3/spool/checkresults/checkb2W7d3' to 
'/var/lib/nagios3/spool/checkresults/csiU5Uo': No such file or directory
[1239869767] Error: Unable to rename file 
'/var/lib/nagios3/spool/checkresults/checkMroMQn' to 
'/var/lib/nagios3/spool/checkresults/cj9BayJ': No such file or directory
[1239869767] Warning: Unable to move file 
'/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue.
[1239869767] Warning: Unable to move file 
'/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue.


The only two references I can find for this error are:

http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg22963.html

which is inconclusive, and my own Debian bug report at:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522538

(you can see nagios package and version details here, too).

Any insights as to what might be causing these errors?

Regards

-- 
Martin A. Brooks |  http://www.antibodymx.net/ | Anti-spam & anti-virus
   Consultant|  mar...@antibodymx.net  | filtering. Inoculate
 antibodymx.net  |  m: +447792493388   | your mail system.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Can you not check a certain hostgroup?

2009-04-16 Thread Andrew Bruce


Is it possible, in a service definition to tell the service to not check a
group of hosts? 

For example, I have a hostgroup that contains some basic checks for every
Windows server. 

But some of the servers are still on NT, so don't support a particular
check, and I want to disable it for just these servers. Can I have a
hostgroup called WinNT_old with the servers I don't want to run this
particular check against and then do a service check with the hostgroup
like (or similar): 

hostgroup_name Win_All, !WinNT_old 

Thanks, 

Andrew--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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