Re: [Nagios-users-br] Notificação via Jabber

2009-06-30 Thread Luiz Gustavo
O envio somente é efetuado através da console, informo que mesmo alterando a 
segunda notificação não obtive o envio de informações através do Jabber.

Luiz Gustavo
- Original Message - 
From: Augusto Ferronato augusto.ferron...@gmail.com
To: Unofficial Brazilian (Portuguese) Nagios Users List 
nagios-users-br@lists.sourceforge.net
Sent: Monday, June 29, 2009 12:56 PM
Subject: Re: [Nagios-users-br] Notificação via Jabber


Se vc rodar na mão a linha:
/usr/libexec/notify_via_jabber.pl $CONTACTADDRESS1$ $HOSTNAME$
$HOSTSTATE$, $SERVICEDESC$ $SERVICEOUTPUT$


Vai??

Outra coisa, na segunda notificação, tá
/usr/libexec//notify_via_jabber.pl (duas barras)

Abs[]


2009/6/29 Luiz Gustavo lquir...@romi.com.br:
 Bom dia a todos,

 Estou utilizando o Nagios vers. 2.6 e preciso utilizar o serviço de 
 mensagem Jabber como uma das formas de alerta.

 Estou utilizando como serviço de mensageiro o script em PERL 
 notify_via_jabber.pl adquirido em 
 http://nagios.sourceforge.net/download/contrib/notifications/notify_via_jabber

 O script funciona manualmente contudo ao colocar para que o script seja 
 executado pelo Nagios o mesmo não envia os alertas via Jabber.

 Durante a analise foi ativado o programa Etherreal e verificado o existe o 
 envio de mensagem para o servidor contudo não recebo nada automaticamente.

 Abaixo segue como está sendo enviado as mensagem via arquivo de 
 configuração.

 Command.cfg
 # 'notify-by-jabber' command definition
 define command {
 command_name notify-by-jabber
 command_line /usr/libexec/notify_via_jabber.pl $CONTACTADDRESS1$ 
 $HOSTNAME$ $HOSTSTATE$, $SERVICEDESC$ $SERVICEOUTPUT$
 }

 # 'host-notify-by-jabber' command definition
 define command {
 command_name host-notify-by-jabber
 command_line /usr/libexec//notify_via_jabber.pl $CONTACTADDRESS1$ | 
 $HOSTNAME$ $HOSTSTATE$, $SERVICEDESC$ $SERVICEOUTPUT$
 }

 No arquivo de configuração contacts.cfg está sendo informado o login 
 CONTACTADDRESS1 como login existente em meu serviço Jabber.

 Grato.
 Luiz Gustavo
 Esta mensagem foi enviada utilizando-se os recursos de tecnologia da 
 informação das Indústrias Romi S.A. e é destinada exclusivamente para quem 
 é dirigida, podendo conter informação confidencial e/ou legalmente 
 privilegiada.
 Se você não for destinatário desta mensagem e a recebeu por engano, queira 
 nos informar e eliminá-la de sua base de dados, abstendo-se de divulgar, 
 copiar, distribuir ou, de qualquer forma, utilizar a informação nela 
 contida, por ser prática ilegal.
 Fica desprovida de eficácia e validade a mensagem que contiver vínculos 
 obrigacionais, expedida por quem não detenha poderes de representação para 
 agir em nome das Indústrias Romi S.A.
 As opiniões, conclusões ou declarações de intenção são do emitente da 
 mensagem e não vinculam as Indústrias Romi S.A., a menos que sejam 
 confirmadas por um representante autorizado.
 As mensagens enviadas para e recebidas pelas Indústrias Romi S.A. são 
 monitoradas para assegurar o cumprimento da política interna de segurança 
 de informação.
 As Indústrias Romi S.A. não se responsabilizam por vírus e/ou ameaças 
 eletrônicas.
 --
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 
--
http://www.augustoferronato.net

FreeBSD: The Freedom to Perform!
http://www.spreadbsd.org/aff/40/1

--
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Esta mensagem foi enviada utilizando-se os recursos de tecnologia da informação 
das Indústrias Romi S.A. e é destinada exclusivamente para quem é dirigida, 
podendo conter informação confidencial e/ou legalmente privilegiada. 
Se você não for destinatário desta mensagem e a recebeu por engano, queira nos 
informar e eliminá-la de sua base de dados, abstendo-se de divulgar, copiar, 
distribuir ou, de qualquer forma, utilizar a informação nela contida, por ser 
prática ilegal. 
Fica desprovida de eficácia e validade a mensagem que contiver vínculos 
obrigacionais, expedida por quem não detenha poderes de representação para agir 
em nome das Indústrias Romi S.A.
As opiniões, conclusões ou declarações de intenção são do emitente da mensagem 
e não vinculam as Indústrias Romi S.A., a menos que sejam confirmadas por um 
representante autorizado. 
As mensagens enviadas para e recebidas pelas Indústrias Romi S.A. são 
monitoradas para assegurar o cumprimento da política interna de segurança de 
informação.
As Indústrias Romi S.A. não se responsabilizam por vírus e/ou ameaças 
eletrônicas.

--
-- 
Nagios-users-br@lists.sourceforge.net mailing list

Re: [Nagios-users-br] Notificação via Jabber

2009-06-30 Thread Israel Junior
2009/6/29 Luiz Gustavo lquir...@romi.com.br:
 Estou utilizando o Nagios vers. 2.6 e preciso utilizar o serviço de mensagem 
 Jabber como uma das formas de alerta.

Utilize o script Python em anexo com o comando a seguir:

echo $NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$
$SERVICEOUTPUT$ $LONGDATETIME$ |
/opt/nagios-custom/notify_by_jabber.py $CONTACTPAGER$

Em outras palavras: echo mensagem | /opt/notify_by_jabber.py jabberid
--
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Re: [Nagios-users] Getting Nagios to go active

2009-06-30 Thread Andreas Ericsson
David Krider wrote:
 I've gotten a second Nagios server setup to work as a failover for a
 primary server. I think I've been thorough. The secondary server is
 successfully receiving and processing both passive host and passive
 service checks. Notifications and both kinds of active checks are turned
 off. When I stop the Nagios process on the primary server, the secondary
 fails the freshness check of the primary instance check. However,
 nothing happens after this, and it seems that I have 2 problems.
 
 1) Even though I have max_check_attempts set to 1 on the master server's
 check_nagios check, it just continues to force active checks when the
 freshness times out. I expect it to fail hard, and stop checking the
 freshness. Maybe I'm wrong, though. Maybe the expected behavior here is
 to get the active host check going, and then the freshness will stop
 complaining.
 
 2) All of my scripts seem to be lined up. The event handler fires, and I
 see proper things in the nagios.cmd file.
 
 [1246294798] ENABLE_NOTIFICATIONS
 [1246294798] START_EXECUTING_SVC_CHECKS
 [1246294820] START_EXECUTING_HOST_CHECKS
 
 I know the command file is being processed because I can get the
 secondary server to force checks from the cgi's. However, none of these
 things commands ever work, whether I force them from the command line,
 or from the cgi's. What could be keeping these from taking effect? I've
 been all over this thing for a couple days now, and I think my eyes are
 starting to glaze over.
 
 The only thing I can think of would be to enable all of these things in
 the master config file, but then immediately force them off when I
 start up the process. Then maybe it will work to turn them back on
 later? That can't be right...
 
 Desperately,

Use merlin. It was designed for setting up redundant/loadbalanced systems
and will transfer your check-results between your two nagios instances
seemlessly. Check takeover happens automagically too, since both servers
will try to schedule the check and whichever instance happens to execute
it first will keep on executing the check until its latency reaches 15
seconds, where the server that didn't execute the check originally will
automatically take it over because it'll be in its scheduling queue at
the right moment and time.

You can find merlin at http://git.op5.org/git/nagios/merlin.git. The
project page is at http://www.op5.org/community/projects/merlin

HTH

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
___
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] View all unhandled services and all unhandled hosts

2009-06-30 Thread Klaus Umbach
On 24/06/09 13:30, Christoph Kluenter wrote:
 Hi,
 
 I want to see all unhandled service problems and all unhandled host problems 
 on one page.
 I thought, this URL would do it:
 status.cgi?host=allservicestatustypes=28serviceprops=42hoststatustypes=12hostprops=42

I use


status.cgi?host=alltype=detailhoststatustypes=6hostprops=10serviceprops=42servicestatustypes=60

It doesn't show Hosts without defined services, so all my hosts have the
service PING defined., too.
 

 But it doesn't. It shows nothing instead of the down hosts and services I 
 have.
 
 Any ideas ?
 
 Kind regards,
Christoph
 

-- 
BOFH excuse #3:

electromagnetic radiation from satellite debris

--
___
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] How to monitor Windows Scheduled Tasks?

2009-06-30 Thread M. Sébastien LELIEVRE
Natxo Asenjo a écrit :
 hi,
 
 at work I have written a very simple perl script that parses the
 output of the windows command schtasks /query. I let it execute thru
 nrpe in the windows servers (win2k3 std) that have scheduled jobs.
 
 It is a very simple script and it works for us. It requires a perl
 installation in the windows servers, but if one can install .Net, why
 not perl ? :-)
 


I am also interested in that script :-)

Thank you very much for your Feedback!

Regards,
-- 
M. Sébastien LELIÈVRE

Ingénieur Système  Base de Données

AZ Network
40, rue Ampère
61000 ALENÇON (ORNE)
FRANCE



--
___
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 Web Sites

2009-06-30 Thread cr...@hooters-uk.com
I feel this may be a stupid question but I feel I
need to ask because I can not find the answer..

I'm looking to monitor a web site that is hosted on a
server that has multiple sites, how would I go about
monitoring multiple sites on one server?

Sorry if this is a dumb question.

Craig


--
___
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] Checking URL on windows-client using NSClient++

2009-06-30 Thread jvc_dvl557
Hi,

I would like to check if a certain website is available on some of my windows 
xp clients. These clients are public self-service computers to make bookings 
for a railway organisation. Every now and then, some of these self-service 
computers show a blank screen without the default start-page. 

I would like to check if the page is shown up and if it's not, it notifies 
Nagios which notifies me by email.

I've tried to run an external script (vbs) which checks the availability of the 
site and that goes well if you use it manually but i dont want any popups 
saying: OK. It should run in the background. So i've edited the vbs file and 
now it does check it and doesnt give any output anymore.

Has anyone else tried something like this before?

I use NSClient++ and Nagios v3.0.6.

Kind Regards,

Dennis de Vries.--
___
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] Checking URL on windows-client using NSClient++

2009-06-30 Thread jvc_dvl557
Hi,

I would like to check if a certain website is available on some of my windows 
xp clients. These clients are public self-service computers to make bookings 
for a railway organisation. Every now and then, some of these self-service 
computers show a blank screen without the default start-page. 

I would like to check if the page is shown up and if it's not, it notifies 
Nagios which notifies me by email.

I've tried to run an external script (vbs) which checks the availability of the 
site and that goes well if you use it manually but i dont want any popups 
saying: OK. It should run in the background. So i've edited the vbs file and 
now it does check it and doesnt give any output anymore.

Has anyone else tried something like this before?

I use NSClient++ and Nagios v3.0.6.

Kind Regards,

Dennis de Vries.--
___
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 Web Sites

2009-06-30 Thread Assaf Flatto
check_http -H www.website.com 
is a good way to start 

and those parameters may help more 

 -s, --string=STRING
String to expect in the content
 -u, --url=PATH
URL to GET or POST (default: /)

for more option read the 
check_http --help

 Assaf


On Tuesday 30 June 2009 09:25:10 cr...@hooters-uk.com wrote:
 I feel this may be a stupid question but I feel I
 need to ask because I can not find the answer..

 I'm looking to monitor a web site that is hosted on a
 server that has multiple sites, how would I go about
 monitoring multiple sites on one server?

 Sorry if this is a dumb question.

 Craig


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



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE

Along with a few colleagues I am doing The Three Peaks Challenge again 
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link 
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks




IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
___
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_period help?

2009-06-30 Thread Andrew Noonan
No one has any ideas on this, or am I just not posting the right info?

On Mon, Jun 29, 2009 at 12:19 PM, Andrew Noonananoo...@gmail.com wrote:
 Hi all,

 I've got a service that I'm trying to monitor with different
 thresholds at different times of day.  To do this, I created two
 timeperiods, covering 1:00am to 7:00am, and 7:00am to 1:00am (I
 think), two service templates that each use these periods, and two
 services that do the same check with differing thresholds, each
 inheriting the different service template.  But when I look at the
 scheduling for these two services, it's almost opposite what I think
 it should be.  The 'late' service is next scheduled at 00:00 and the
 'normal' service is scheduled at 1:00am.  I'm running 3.0.6.  The
 other templates used do not change the check_period, except for the
 generic-service template.  Here are the definitions:

  Time periods #
 define timeperiod {
        timeperiod_name                         7a-1a_every_day
        alias                                   from 7:00am to 1:00am
        tuesday                                 00:00-00:59,7:00-24:00
        wednesday                               00:00-00:59,7:00-24:00
        sunday                                  00:00-00:59,7:00-24:00
        thursday                                00:00-00:59,7:00-24:00
        saturday                                00:00-00:59,7:00-24:00
        monday                                  00:00-00:59,7:00-24:00
        friday                                  00:00-00:59,7:00-24:00
        }

 define timeperiod {
        timeperiod_name                         1a-7a_every_day
        alias                                   1:00am to 7:00am
        tuesday                                 01:00-06:59
        thursday                                01:00-06:59
        sunday                                  01:00-06:59
        saturday                                01:00-06:59
        monday                                  01:00-06:59
        friday                                  01:00-06:59
        wednesday                               01:00-06:59
        }


 ### Service Templates ##
 define service {
       name                                     Time-1a_to_7a
       check_period                             7a-1a_every_day
       register                                 0

 }

 define service {
       name                                     Time-7a_to_1a
       check_period                             1a-7a_every_day
       register                                 0

 }

 ### Services #

 define service {
        host_name                       US
        service_description             index
        use
 Freq-15-min-check,graphing_service_pnp,Time-7a_to_1a,generic-service
        check_command                   Check command here
        register                        1
        }

 define service {
        host_name                       US
        service_description             lateindex
        use
 Freq-15-min-check,graphing_service_pnp,Time-1a_to_7a,generic-service
        check_command                   Check command here
        register                        1
        }

 Thanks,
 Andrew


--
___
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] Checking URL on windows-client using NSClient++

2009-06-30 Thread Natxo Asenjo
hi,

if you use internet explorer you could check if that process is
running. You can do it in a number of ways, either with check_nt or
with nrpe with a custom batch file with commands like tasklist, for
instance.
-- 
Groeten,
J.Asenjo

--
___
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] How to monitor Windows Scheduled Tasks?

2009-06-30 Thread Natxo Asenjo
hi,

ok, but I do not have any time to support the script, it is supplied
'as is' without license or obligations on my part. I will not answer
any questions about why it is not working for you (in case it does not
work for you).


#!perl
use strict;
use warnings;
use diagnostics;

# first run schtasks /query /fo /list /v and dump everything to a file
open (JOBS, schtasks /query /fo list /v |) or die couldn't exec
schtasks: $!\n;

# Counters
my $count = 0;
my @count = ();

# parse file, if string Last Result is not 0 (success), croak
while (JOBS) {
if (/^Last Result:\s+(.*)$/) {
# count how many jobs there are, we'll use this later
$count++;

# By type
$count[$1]++;
}
}

close JOBS;

if ($count[1]) {
warn WARNING: problem with $count[1] scheduled jobs\n;
exit 1;
}

if ($count[0] == $count) {
warn OK: all scheduled tasks have run fine\n;
exit 0;
}
else {
# if there is something wrong, give unkonw and errolevel 3
warn UNKONWN: something else went wrong\n;
exit 3;
}

__END__
-- 
Groeten,
J.Asenjo

--
___
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 Web Sites

2009-06-30 Thread Giorgio Zarrelli
Hi,

always check for a string at the end of the web page. Time by time the
wweb server answers whith a 200 error code even if it dowsn't serve a
valid page.

Giorgio

quota chi=Assaf Flatto
 check_http -H www.website.com
 is a good way to start

 and those parameters may help more

  -s, --string=STRING
 String to expect in the content
  -u, --url=PATH
 URL to GET or POST (default: /)

 for more option read the
 check_http --help

  Assaf


 On Tuesday 30 June 2009 09:25:10 cr...@hooters-uk.com wrote:
 I feel this may be a stupid question but I feel I
 need to ask because I can not find the answer..

 I'm looking to monitor a web site that is hosted on a
 server that has multiple sites, how would I go about
 monitoring multiple sites on one server?

 Sorry if this is a dumb question.

 Craig


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



 --
 Assaf Flatto
 SSP Ops Team
 Linux System Administrator
 169 Euston Road, London, NW1 2AE

 Along with a few colleagues I am doing The Three Peaks Challenge again
 this year to raise money for The Railway Children.
 Please sponsor me by making a donation online, simply click on the link
 below and give via your switch/credit card. Thank you.
 http://www.justgiving.com/londonnorththreepeaks




 IMPORTANT . this email and the information in it may be confidential,
 legally
 privileged and/or protected by law. It is intended solely for the use of
 the
 person to whom it is addressed. If you are not the intended recipient,
 please
 notify the sender immediately and do not disclose the contents to any
 other
 person, use it for any purpose, or store or copy the information in any
 medium.
 Please also delete all copies of this email and any attachments from your
 system.

 We cannot guarantee the security or confidentiality of email
 communications. We
 do not accept any liability for losses or damages that you may suffer as a
 result of your receipt of this email including but not limited to computer
 service or system failure, access delays or interruption, data
 non-delivery or
 mis-delivery, computer viruses or other harmful components.

 Copyright in this email and any attachments belong to Select Service
 Partner UK
 Limited. Should you communicate with anyone at Select Service Partner UK
 Limited by
 email, you consent to us monitoring and reading any such correspondence.

 Nothing in this email shall be taken or read as suggesting, proposing or
 relating to any agreement concerted practice or other practice that could
 infringe UK or EC competition legislation.

 Select Service Partner UK Limited is a company registered in England and
 Wales
 (company number 05687183) whose registered office is at 1 The Heights,
 Brooklands, Weybridge. Surrey. KT13 0NY



 --
 ___
 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 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_period help?

2009-06-30 Thread Andreas Ericsson
Andrew Noonan wrote:
 No one has any ideas on this, or am I just not posting the right info?
 
 On Mon, Jun 29, 2009 at 12:19 PM, Andrew Noonananoo...@gmail.com wrote:
 Hi all,

 I've got a service that I'm trying to monitor with different
 thresholds at different times of day.  To do this, I created two
 timeperiods, covering 1:00am to 7:00am, and 7:00am to 1:00am (I
 think), two service templates that each use these periods, and two
 services that do the same check with differing thresholds, each
 inheriting the different service template.  But when I look at the
 scheduling for these two services, it's almost opposite what I think
 it should be.  The 'late' service is next scheduled at 00:00 and the
 'normal' service is scheduled at 1:00am.  I'm running 3.0.6.  The
 other templates used do not change the check_period, except for the
 generic-service template.  Here are the definitions:

  Time periods #
 define timeperiod {
timeperiod_name 7a-1a_every_day
alias   from 7:00am to 1:00am
tuesday 00:00-00:59,7:00-24:00
wednesday   00:00-00:59,7:00-24:00
sunday  00:00-00:59,7:00-24:00
thursday00:00-00:59,7:00-24:00
saturday00:00-00:59,7:00-24:00
monday  00:00-00:59,7:00-24:00
friday  00:00-00:59,7:00-24:00
}

 define timeperiod {
timeperiod_name 1a-7a_every_day
alias   1:00am to 7:00am
tuesday 01:00-06:59
thursday01:00-06:59
sunday  01:00-06:59
saturday01:00-06:59
monday  01:00-06:59
friday  01:00-06:59
wednesday   01:00-06:59
}


 ### Service Templates ##
 define service {
   name Time-1a_to_7a
   check_period 7a-1a_every_day
   register 0

 }

 define service {
   name Time-7a_to_1a
   check_period 1a-7a_every_day
   register 0

 }


This looks decidedly odd. Time-7a_to_1a uses the check_period
1a-7a_every_day. Either you were very confused when you named
the timeperiods or you were very confused when you created these
templates. Or you just want to confuse everyone else ;-)

I'm guessing they should be reversed, no?

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] change service check timeout in Nagios

2009-06-30 Thread Michael W. Lucas
On Mon, Jun 29, 2009 at 03:44:01PM -0500, Marc Powell wrote:
 
 On Jun 29, 2009, at 2:46 PM, Michael W. Lucas wrote:
 
  Surely there's a built-in way to tell Nagios that either a particular
  check can take longer, or increase the 10-second timeout within Nagios
  itself?  The service_check_timeout value kills runaway processes,
  which this isn't.
 
 But that's what you need to change. Think of it as the maximum amount  
 of time a plugin is allowed to run if the plugin doesn't terminate  
 itself within a reasonable amount of time. Misbehaving plugins are  
 just the most common reason to hit this timeout. It should be set  
 higher than the longest expected running time for any of your plugins.

Thanks for your response.  The following settings have been my nagios
config for months now:

service_check_timeout=180
host_check_timeout=60

I would expect that a service check plugin would be allowed to run for
3 minutes.  But the Web interface and log still show:

CRITICAL - Plugin timed out after 10 seconds 

Obviously, I'm missing something somewhere?  Do any other config
settings interact with this somehow?

This is with 3.0.6 on FreeBSD 7.2 i386, BTW.

Thanks,
==ml

-- 
Michael W. Lucasmwlu...@blackhelicopters.org, mwlu...@freebsd.org
http://www.BlackHelicopters.org/~mwlucas/
Latest book:  Cisco Routers for the Desperate, 2nd Edition
http://www.CiscoRoutersForTheDesperate.com/

--
___
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_period help?

2009-06-30 Thread Andrew Noonan
Ah, yes.  That would be the danger of using a GUI, I suppose.  You're
absolutely correct, I clicked on the wrong one when setting these up.
Confusing everyone else was just a fun side-effect.  That being said,
I went ahead and changed those so they match up, but I'm still seeing
strange behavior.  The index service is next scheduled at 1:00am, and
the lateindex service is next scheduled at 8:45am (it's 8:40am now
here).  I would have expected those services to be properly
rescheduled to basically the exact opposite.  The lateindex should be
1:00am and the index service should be the currently running service.
And yes, I did check to make sure that the index service is running
the correct service template and vice versa :)  Do I need to do
something to reset the scheduler over then a reload?

Andrew



 This looks decidedly odd. Time-7a_to_1a uses the check_period
 1a-7a_every_day. Either you were very confused when you named
 the timeperiods or you were very confused when you created these
 templates. Or you just want to confuse everyone else ;-)

 I'm guessing they should be reversed, no?

 --
 Andreas Ericsson                   andreas.erics...@op5.se
 OP5 AB                             www.op5.se
 Tel: +46 8-230225                  Fax: +46 8-230231

 Considering the successes of the wars on alcohol, poverty, drugs and
 terror, I think we should give some serious thought to declaring war
 on peace.


--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] change service check timeout in Nagios

2009-06-30 Thread Michael W. Lucas
On Tue, Jun 30, 2009 at 10:10:40AM -0400, Michael W. Lucas wrote:
 On Mon, Jun 29, 2009 at 03:44:01PM -0500, Marc Powell wrote:
  
  On Jun 29, 2009, at 2:46 PM, Michael W. Lucas wrote:
  
   Surely there's a built-in way to tell Nagios that either a particular
   check can take longer, or increase the 10-second timeout within Nagios
   itself?  The service_check_timeout value kills runaway processes,
   which this isn't.
  
  But that's what you need to change. Think of it as the maximum amount  
  of time a plugin is allowed to run if the plugin doesn't terminate  
  itself within a reasonable amount of time. Misbehaving plugins are  
  just the most common reason to hit this timeout. It should be set  
  higher than the longest expected running time for any of your plugins.
 
 Thanks for your response.  The following settings have been my nagios
 config for months now:
 
 service_check_timeout=180
 host_check_timeout=60
 
 I would expect that a service check plugin would be allowed to run for
 3 minutes.  But the Web interface and log still show:
 
 CRITICAL - Plugin timed out after 10 seconds 
 
 Obviously, I'm missing something somewhere?  Do any other config
 settings interact with this somehow?
 
 This is with 3.0.6 on FreeBSD 7.2 i386, BTW.

Lucas smacks his own forehead and says bad things about his own
upbringing

Posted so that an answer appears in the archives.

I'm using negate -u CRITICAL in front of my check.  negate has its
own timeout value that must be set to extend the life of a check!

Not a Nagios issue at all.

==ml

-- 
Michael W. Lucasmwlu...@blackhelicopters.org, mwlu...@freebsd.org
http://www.BlackHelicopters.org/~mwlucas/
Latest book:  Cisco Routers for the Desperate, 2nd Edition
http://www.CiscoRoutersForTheDesperate.com/

--
___
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 monitoring TOIP host

2009-06-30 Thread ANGE AMBEMOU
Hello all,

I want to known is for Nagios is possible to monitoring to the GW ToIP or 
equipement ToIP lantency, jitter. there are some pluging I search but i find 
nothing.


thanks

 Ange Olivier AMBEMOU



  --
___
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] Compliance: Re: Monitoring Web Sites

2009-06-30 Thread Chris Beattie
On Tue, 2009-06-30 at 10:25 +0100, cr...@hooters-uk.com wrote:
 I'm looking to monitor a web site that is hosted on a
 server that has multiple sites, how would I go about
 monitoring multiple sites on one server?

The check_http command supports arguments for the host name, the host
address, and a URI.  The standard command definition includes $HOSTNAME$
and $HOSTADDRESS$, but that doesn't mean you can't roll your own.

I have a load balancer that a number of web sites need to be available
through, that itself does not have any services that need to be checked.
I set up a custom check command like this:

define command {
command_namecheck_lb_http
command_linecheck_http -H $ARG1$ -I $ARG2$ -u $ARG3$
}


In the load balancer's configuration, I have a dozen or so service
checks defined like this:

define service {
use standard_service
host_name prodapploadbalancer
service_description website1
check_command check_lb_http!virtualhostname!ipaddress!/somepage.html
}

-- 
-Chris


--
___
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] Scheduled downtime and comments

2009-06-30 Thread Marc-André Doll
Hi all,

I've noticed that when a scheduled downtime is set up, we are forced to
enter some comments but those seem not to be processed and saved by
Nagios since the comment shown by Nagios are always like This service
has been scheduled for fixed downtime from 05-29-2009 10:46:55 to
03-29-2010 12:46:55. Notifications for the service will not be sent out
during that time period. for example.

Is there a way to force Nagios to store the comment for a scheduled
downtime instead of having it replaced by some impersonal ones?

Marc-André


--
___
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] Problems w/ Nagios Web Interface

2009-06-30 Thread Leleux, Jeremy J
Hi all,

I have a fresh install of nagios 3.1.2 and I'm able to login into the
web interface, but once I'm authenticated I get the following error:

403 Forbidden - You don't have permission to access
/nagios/ on this server.

Here is the output from my Apache error_log:

[Tue Jun 30 09:47:17 2009] [notice] Apache/2.2.3
(CentOS) configured -- resuming normal operations
[Tue Jun 30 09:47:57 2009] [error] [client 127.0.0.1]
Directory index forbidden by Options directive: /usr/local/nagios/share/
[Tue Jun 30 09:47:57 2009] [error] [client 127.0.0.1]
File does not exist: /var/www/html/favicon.ico
[Tue Jun 30 09:48:00 2009] [error] [client 127.0.0.1]
File does not exist: /var/www/html/favicon.ico

I'm using the newly installed, unedited nagios.conf and have also
created the htpasswd.users as instructed by the quick start guide.  I
can provide any configs as needed, just let me know.  Here are my
computer/nagios specifics:

CentOS 5.2 kernel 2.6.18-128.1.6.el5 / Apache 2.2.3 release
22.el5.centos 
Nagios 3.1.2
Copyright (c) 2009 Nagios Core Development Team and Community
Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-23-2009
License: GPL
Nagios-Plugins v1.4.13

Respectfully,

Jeremy Leleux
IT Administrator
Sunland Construction, Inc.
Corporate Division
Office: 337.550.2142
Fax: 337.546.0245
Mobile: 337.580.6062
Email: jjlel...@sunlandconstruction.com


--
___
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] RPM for Nagios 3.1.2 Fedora 9?

2009-06-30 Thread David Rosenstrauch
Natalie Aloi wrote:
 Does anyone know of a location for rpm for Nagios 3.1.2 on fedora 9?
 I located http://dag.wieers.com/rpm/packages/nagios/ but 2.11 is the
 latest rpm
 
 thanks! Natalie


If you use the rpmforge repositories and install it from there, it'll 
give you v3.0.6.

How to configure to use RPMforge ?
http://dag.wieers.com/rpm/FAQ.php#B2

HTH,

DR

--
___
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] External commands and nagios.log

2009-06-30 Thread Keller, Mark D
Hello,

We have a distributed Nagios environment that is working fine.

On the frontend I am getting about 400MB of logs a day. That makes any web 
cgi's that need to read the logs horribly slow. I have noticed that about half 
of the log messages are for external commands. Is there any reason to keep the 
external commands in the log files? Does some of the history or reports rely on 
them?

Then the second question is, how do I get them to stop logging to the file? I 
see there is a log_external_commands option in the nagios.cfg, but setting that 
to 0 doesn't seem to actually stop the log entry from going to the nagios.log.

I am using Nagios 3.0.6.

Any help would be appreciated,

Thanks,

Mark

--
___
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] Checking URL on windows-client using NSClient++

2009-06-30 Thread Frater, Greg J
Dennis, 
 
Your almost there, you need to set your vbs script to output an exit
code of 0-4 according to the nagios plug in documentation
(http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT)
.  Then setup the nsclient to run your script as a plug in check.  To do
that you will need to follow these basic steps.
 
1. add the configuration to the nsc.ini file on each xp workstation you
want to run this check on.  It should look something like this:
 
[NRPE Handlers]
webpage_check=c:\windows\system32\cscript.exe //nologo c:\program
files\nsclient++\scripts\web_page_check.vbs
 
2. Setup check in Nagios 
 
In your commands definition file:
define command {
   command_name webpage_check
   command_line$USER1$/check_nrpe -H
$HOSTADDRESS$ -t 60 -c webpage_check
}
 
In your services definition file:
 
define service {
host_name   XPhost01, XPhost02
service_description check web page on XP host
display_namewebpage check
check_command webpage_check
use service-template
.
}
 
That should do it, and it uses your existing script (i.e. no rework).  
 
Good luck, hope that helps,
 
-greg

 
 


From: jvc_dvl...@hotmail.com [mailto:jvc_dvl...@hotmail.com] 
Sent: Tuesday, June 30, 2009 4:08 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Checking URL on windows-client using NSClient++


Hi,
 
I would like to check if a certain website is available on some of my
windows xp clients. These clients are public self-service computers to
make bookings for a railway organisation. Every now and then, some of
these self-service computers show a blank screen without the default
start-page. 
 
I would like to check if the page is shown up and if it's not, it
notifies Nagios which notifies me by email.
 
I've tried to run an external script (vbs) which checks the availability
of the site and that goes well if you use it manually but i dont want
any popups saying: OK. It should run in the background. So i've edited
the vbs file and now it does check it and doesnt give any output
anymore.
 
Has anyone else tried something like this before?
 
I use NSClient++ and Nagios v3.0.6.
 
Kind Regards,
 
Dennis de Vries.
--
___
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] External commands and nagios.log

2009-06-30 Thread Marc Powell

On Jun 30, 2009, at 12:22 PM, Keller, Mark D wrote:

 Hello,

 We have a distributed Nagios environment that is working fine.

 On the frontend I am getting about 400MB of logs a day.

That's very very large...

 That makes any web cgi’s that need to read the logs horribly slow. I  
 have noticed that about half of the log messages are for external  
 commands.

That is still very very large. 8603 passive services here on a  
somewhat volatile network (89 down currently) --

1.8Mnagios-06-27-2009-00.log
1.9Mnagios-06-28-2009-00.log
2.2Mnagios-06-29-2009-00.log
2.2Mnagios-06-30-2009-00.log

 Is there any reason to keep the external commands in the log files?

No. Not unless you have some custom script that does something with  
them.

 Does some of the history or reports rely on them?

Not at all.

 Then the second question is, how do I get them to stop logging to  
 the file? I see there is a log_external_commands option in the  
 nagios.cfg, but setting that to 0 doesn’t seem to actually stop the  
 log entry from going to the nagios.log.

Are you confusing external commands with passive checks perhaps  
(log_passive_checks)?

--
Marc



--
___
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 external internet connectivity

2009-06-30 Thread shadih rahman
All,
  What is the best way to check if our network has connection to commodity
internet or not.  What I am trying to achieve is to ensure internal network
has connection to Internet.  One thing is to ping google check.  Is this a
good idea or can someone suggest a better way to do this.  Please advise on
this.  Thanks

-- 
Cordially,
Shadhin Rahman
--
___
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 external internet connectivity

2009-06-30 Thread Marc Powell

On Jun 30, 2009, at 2:43 PM, shadih rahman wrote:

 All,
   What is the best way to check if our network has connection to  
 commodity internet or not.  What I am trying to achieve is to ensure  
 internal network has connection to Internet.  One thing is to ping  
 google check.  Is this a good idea or can someone suggest a better  
 way to do this.

It is never a good idea to steal the resources of some third party for  
your own purposes, no matter how infinite you think those resources to  
be. If you and hundreds, thousands or millions of other people all  
think it's just fine to ping Google all the time, Google takes the  
brunt of that resource hit.

I would recommend that you poll your router's snmp tables to get  
interface status (ifStatus, ifOperStatus). Alternately, place a test  
device or purchase a small colo server somewhere outside your network  
that you can use as the target for your tests; or work with someone  
with similar needs to arrange permission to ping devices on each  
other's network.

--
Marc


--
___
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] Monitor Wireless Network Bandwidth Health

2009-06-30 Thread Dei Bertine
Hi,
I was wondering if there's a way to monitor my wireless router via Nagios?
I have Cisco 520 Series Wireless LAN Controller with 3 APs attached 
(AIRLAP521G).
Mainly want to monitor the performance of the wireless connections and if 
possible send alerts if the network is slow.
Any advise would be appreciated.
Thanks, 
DB



  --
___
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 external internet connectivity

2009-06-30 Thread Jayson Broughton
Shadhin,

I had our nagios ping google.com for awhile, but if something happens to the
DNS server internally then it gave a false reading saying the internet was
down when it was a DNS issue.  Eventually I figured I could ping my ISP's IP
address instead of hostname, and that seemed to work well.  Im sure a place
like google has more than 1 ip address associated with it, so I would pick
an external IP address of a known site/company and plug it in.  I also have
SMS enabled/setup on my nagios machine so that when the internal network is
down, an SMS message is generated and sent to the techie phones.  (can't get
email if the network is down, eh?)

 

 

Hope this helps,

 

Jayson Broughton

 

 

From: shadih rahman [mailto:shadhi...@gmail.com] 
Sent: Tuesday, June 30, 2009 1:44 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] monitoring external internet connectivity

 

All,
  What is the best way to check if our network has connection to commodity
internet or not.  What I am trying to achieve is to ensure internal network
has connection to Internet.  One thing is to ping google check.  Is this a
good idea or can someone suggest a better way to do this.  Please advise on
this.  Thanks

-- 
Cordially,
Shadhin Rahman


The information in this electronic mail message and any attached files is 
confidential and may be legally privileged.  If you are not the intended 
recipient, delete this message and contact the sender immediately.  Access to 
this message by anyone other than its intended recipient is unauthorized.  You 
must not use or disseminate this information as it is proprietary property of 
the True companies.  Communications on or through the True companies' computer 
systems may be monitored or recorded to secure effective system operation and 
for other lawful purposes.  Thank you.--
___
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] External commands and nagios.log

2009-06-30 Thread Keller, Mark D
Just looking at yesterdays logs, I have 1,491,321 lines for external commands 
and about the same for passive checks. We have do about 5300 service checks 
every five minutes which comes out to around 1,500,000. So they seem to match. 
Unless I am missing something.

Service checks by far dominant the log. We have a distributed server send all 
service checks passively to the front end. Then NSCA sends them through an 
external command. So for each service entry I get a log like the following:

[1246345229] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;myserver;Load;0;OK -
[1246345230] PASSIVE SERVICE CHECK: myserver;Load;0;OK - load average: 0.19, 
0.09, 0.08

At this point I would just be happy to not log any of the external command 
entries. Still the log may be big, but much smaller.

I can't seem to get any of the following options in nagios.cfg to make a 
difference. They all log no matter what they are set to:

log_notifications
log_service_retries
log_host_retries
log_event_handlers
log_initial_states
log_external_commands
log_passive_checks

Thanks,

Mark

-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Tuesday, June 30, 2009 11:12 AM
To: Nagios Users Mail-list
Subject: Re: [Nagios-users] External commands and nagios.log


On Jun 30, 2009, at 12:22 PM, Keller, Mark D wrote:

 Hello,

 We have a distributed Nagios environment that is working fine.

 On the frontend I am getting about 400MB of logs a day.

That's very very large...

 That makes any web cgi's that need to read the logs horribly slow. I  
 have noticed that about half of the log messages are for external  
 commands.

That is still very very large. 8603 passive services here on a  
somewhat volatile network (89 down currently) --

1.8Mnagios-06-27-2009-00.log
1.9Mnagios-06-28-2009-00.log
2.2Mnagios-06-29-2009-00.log
2.2Mnagios-06-30-2009-00.log

 Is there any reason to keep the external commands in the log files?

No. Not unless you have some custom script that does something with  
them.

 Does some of the history or reports rely on them?

Not at all.

 Then the second question is, how do I get them to stop logging to  
 the file? I see there is a log_external_commands option in the  
 nagios.cfg, but setting that to 0 doesn't seem to actually stop the  
 log entry from going to the nagios.log.

Are you confusing external commands with passive checks perhaps  
(log_passive_checks)?

--
Marc



--
___
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 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] Getting Nagios to go active

2009-06-30 Thread David Krider
On Tue, 2009-06-30 at 09:00 +0200, Andreas Ericsson wrote:
 Use merlin. It was designed for setting up redundant/loadbalanced systems
 and will transfer your check-results between your two nagios instances
 seemlessly.

I had not heard of Merlin; that's very interesting, and thanks for the
link.

Since I had already come so far with the native solution that the
online documentation describes, I wanted to take one more shot at it.
Since I'm on Gentoo, I checked, and found that there was a newer version
in the portage tree (3.1.2). I upgraded, and everything started working.
Apparently, my problems with ENABLE_NOTIFICATIONS was just a bug. It's
all working like I expect now.

dk



--
___
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 external internet connectivity

2009-06-30 Thread Jayson Broughton
I gotta 2nd Marc on that.  We did get permission from our ISP to ping their
network, as we are usually the first to know when one of our 28+ networks go
down in the country :-)  I too would get permission. Because if they don't
know who you are, some attentive little admin at x site might see your
possibly mis-configured nagios server as a DOS attack against their network
and block you.  Thus leaving you with a false response that your network is
down :-)  Or even if it's not mis-configured, having your server pinging
their server at regular intervals might seem abit off to someone that's
monitoring logs.

Jayson

-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Tuesday, June 30, 2009 2:05 PM
To: Nagios Users Mail-list
Subject: Re: [Nagios-users] monitoring external internet connectivity


On Jun 30, 2009, at 2:43 PM, shadih rahman wrote:

 All,
   What is the best way to check if our network has connection to  
 commodity internet or not.  What I am trying to achieve is to ensure  
 internal network has connection to Internet.  One thing is to ping  
 google check.  Is this a good idea or can someone suggest a better  
 way to do this.

It is never a good idea to steal the resources of some third party for  
your own purposes, no matter how infinite you think those resources to  
be. If you and hundreds, thousands or millions of other people all  
think it's just fine to ping Google all the time, Google takes the  
brunt of that resource hit.

I would recommend that you poll your router's snmp tables to get  
interface status (ifStatus, ifOperStatus). Alternately, place a test  
device or purchase a small colo server somewhere outside your network  
that you can use as the target for your tests; or work with someone  
with similar needs to arrange permission to ping devices on each  
other's network.

--
Marc



--
___
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
The information in this electronic mail message and any attached files is 
confidential and may be legally privileged.  If you are not the intended 
recipient, delete this message and contact the sender immediately.  Access to 
this message by anyone other than its intended recipient is unauthorized.  You 
must not use or disseminate this information as it is proprietary property of 
the True companies.  Communications on or through the True companies' computer 
systems may be monitored or recorded to secure effective system operation and 
for other lawful purposes.  Thank you.


--
___
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] External commands and nagios.log

2009-06-30 Thread Keller, Mark D
Ah, thank you for that point. I guess I was misinterpreting the meaning of 
those options.

I did what you said and now the logs are looking to be way smaller. I also 
trimmed out the passive and external command check lines from my previous logs. 
The history reporting is working way faster now and is actually usable.

Thanks for the help!

Mark

-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Tuesday, June 30, 2009 2:01 PM
To: Nagios Users Mail-list
Subject: Re: [Nagios-users] External commands and nagios.log


On Jun 30, 2009, at 3:17 PM, Keller, Mark D wrote:

 Just looking at yesterdays logs, I have 1,491,321 lines for external  
 commands and about the same for passive checks. We have do about  
 5300 service checks every five minutes which comes out to around  
 1,500,000. So they seem to match. Unless I am missing something.

 Service checks by far dominant the log. We have a distributed server  
 send all service checks passively to the front end. Then NSCA sends  
 them through an external command. So for each service entry I get a  
 log like the following:

 [1246345229] EXTERNAL COMMAND:  
 PROCESS_SERVICE_CHECK_RESULT;myserver;Load;0;OK -
 [1246345230] PASSIVE SERVICE CHECK: myserver;Load;0;OK - load  
 average: 0.19, 0.09, 0.08

These are the previously mentions passive service checks, not external  
commands. Logging treats them differently even though the mechanism to  
get both to nagios is the same.

 At this point I would just be happy to not log any of the external  
 command entries. Still the log may be big, but much smaller.

 I can't seem to get any of the following options in nagios.cfg to  
 make a difference. They all log no matter what they are set to:

 log_passive_checks

This is the one you want set to 0. Make sure that nagios is restarted  
and that you only have one nagios daemon running. These are the  
settings I use --

log_file=/usr/local/nagios/var/nagios.log
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=0

--
Marc


--
___
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 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 external internet connectivity

2009-06-30 Thread Mathew Walker

do you host your website internally?  if not, ping that host and or do an HTTP 
check of it.

 

one thing i highly recommend is using a small little VPS ($10/mo even) to do 
some basic monitoring.  I use one personally for testing and to monitor my 
websites, friends websites, our email and dns services, etc.  Also I use it to 
monitor our corporate Nagios servers as a sanity check.  :-)

-- 
Mat W. - http://www.techadre.com


 


Date: Tue, 30 Jun 2009 15:43:57 -0400
From: shadhi...@gmail.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] monitoring external internet connectivity

All,
  What is the best way to check if our network has connection to commodity 
internet or not.  What I am trying to achieve is to ensure internal network has 
connection to Internet.  One thing is to ping google check.  Is this a good 
idea or can someone suggest a better way to do this.  Please advise on this.  
Thanks
-- 
Cordially,
Shadhin Rahman

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290--
___
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] Problems w/ Nagios Web Interface

2009-06-30 Thread Jon Angliss
On Tue, 30 Jun 2009 09:56:13 -0500, Leleux, Jeremy J
jjlel...@sunlandconstruction.com wrote:

Hi all,

I have a fresh install of nagios 3.1.2 and I'm able to login into the
web interface, but once I'm authenticated I get the following error:

   403 Forbidden - You don't have permission to access
/nagios/ on this server.

Here is the output from my Apache error_log:

   [Tue Jun 30 09:47:17 2009] [notice] Apache/2.2.3
(CentOS) configured -- resuming normal operations
   [Tue Jun 30 09:47:57 2009] [error] [client 127.0.0.1]
Directory index forbidden by Options directive: /usr/local/nagios/share/

This here says that your server is attempting to send a list of the
directory contents back to the client, but settings in the apache
configuration deny it.  That probably means it's not treating
index.html as the default page in the directory.  Hunt down the
DirectoryIndex line in your apache configuration, and add index.html
to the end, and restart apache.

-- 
Jonathan Angliss
j...@netdork.net


--
___
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_smtp issue

2009-06-30 Thread Dei Bertine
I have setup check_smtp in my Nagios to possibly check smtp flow. 

I have manually tested initiated this command and seems to be ok:
nag...@servedhcp1~/libexec# ./check_smtp -H serveip1.csaa.com -w 3 -c 5 -t 100
SMTP OK - 0.003 sec. response time|time=0.002578s;3.00;5.00;0.00

Configured my cfgs in command.cfg:
define command{
command_namecheck_smtp
command_line$USER1$/check_smtp -H $HOSTADDRESS$ -p 25 -w $ARG1$ -c $ARG2$ 
-t $ARG3$
}

Configured on host nrpe:
command[check_smtp]=/usr/local/nagios/libexec/check_smtp -p 25 -w 5 -c 8 -t 100

However when I check nagios page, I'm getting this error:
check_smtp: Warning time must be a positive integer

Any ideas on why this is happening?

Please advise.

Thanks!
DB



  --
___
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] How to surpess notifications if ping fails.

2009-06-30 Thread Jon Angliss
On Mon, 29 Jun 2009 14:57:19 -0700, Jeremiah Jester
jeremiahjes...@gmail.com wrote:

Hello,

I have a working nagios2 installation under Ubuntu.  I would like to
configure nagios so that when a host cannot be ping'd by nagios all other
services related to this server/s are stopped so I don't get a slew of
notifications for that host.

I'm thinking i want servicedepency directive in my dependecies.cfg file?
Does this sound about right?


define servicedependency{
hostgroup_name   servers
service_description ping
dependent_hostgroup_nameservers
dependent_service_description   *
execution_failure_criteria  w,c
notification_failure_criteria   w,u,c
}

Yes, that's one way to do it, though over-complicating it.  The other
is to actually have ping (usually defined as check-host-alive) as the
host check, when the host is unreachable, the notifications for the
services will not be sent. 

Nagios3 would also be a good idea for an upgrade (something I believe
ubuntu has as a package already) as the host checks are much better in
v3.
-- 
Jonathan Angliss
j...@netdork.net


--
___
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 external internet connectivity

2009-06-30 Thread Johannes Dagemark
shadih rahman wrote:
 All,
   What is the best way to check if our network has connection to 
 commodity internet or not.  What I am trying to achieve is to ensure 
 internal network has connection to Internet.  One thing is to ping 
 google check.  Is this a good idea or can someone suggest a better way 
 to do this.  Please advise on this.  Thanks

I created an extremely simple plugin that takes several hosts as 
argument and if one of them is up, Internet is considered to be up

its available at 
http://git.op5.org/git/?p=nagios/op5plugins.git;a=blob_plain;f=check_internet.sh;hb=HEAD

cheers
Johannes
 -- 
 Cordially,
 Shadhin Rahman
 

 --
   
 

 ___
 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


-- 
Johannes Dagemark
CTO / VP Engineering


op5 AB
Första Långgatan 19
SE-413 27 Gothenburg
cell: +46 733-70 90 24
fax:  +46 31-774 04 32
Email: j...@op5.com
http://www.op5.com/


--
___
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] How to surpess notifications if ping fails.

2009-06-30 Thread Jon Angliss
Jeremiah Jester wrote:
 Jon,
 
 Thanks for the reply. I've been struggling with this for some days. Can
 you give me an example of what how to define this and in what file? I
 would appreciate your help.

Files don't really matter.  Nagios loads them all, and processes.
Its up to you how you want to format.  Sometimes it's easier to
group by type (hosts, services, commands, etc), and others by
location (server room, etc).  How you format is up to you.  If you
want, you can even bundle it all in a single file.

Lines ending in \ are wrapped and should appear on a single line in
your config.

define command {
command_namecheck-host-alive
command_line$USER1$/check_ping -H $HOSTADDRESS$ \
-w 3000.0,80% -c 5000.0,100% \
-p 5
}

define command {
command_namecheck_http
command_line$USER1$/check_http -H $HOSTNAME$
}

define host {
host_name   myhost
address 1.1.1.1
check_command   check-host-alive
notification_optionsd,r
check_periodAll
max_check_attempts  3
check_interval  1
retry_interval  1
contact_groups  mycontacts
}

define service {
host_name   myhost
check_command   check_http
{.. other stuff here .. }
}

This will execute check_http against the myhost.  check-host-alive
will be executed every 1 minute.  If check-host-alive fails 3 times,
host is considered down, and alerts for check_http will be
suppressed.  You should read up on host checks [1], service checks
[2], and notifications [3].

 Also, I've not seen v3 in the repsository but maybe i need to change my
 sources?

You didn't mention which version of ubuntu you were using, but
jaunty has nagios3...

  http://packages.ubuntu.com/jaunty/nagios3



[1]: http://nagios.sourceforge.net/docs/3_0/hostchecks.html
[2]: http://nagios.sourceforge.net/docs/3_0/servicechecks.html
[3]: http://nagios.sourceforge.net/docs/3_0/notifications.html

-- 
Jon Angliss
j...@netdork.net

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