Re: [Nagios-users-br] solução de portal

2007-11-29 Thread Marcel
PEssoal,

Este site é muito bom pra esse tipo de avaliação:

www.cmsmatrix.org

Divirtam-se comparando todos (ou muitos deles) os CMS listados lá!

[]s

On Nov 28, 2007 11:26 AM, Jose Augusto [EMAIL PROTECTED] wrote:

 Eu tenho uma mescla aqui

 XOOPS - Suporte
 ZOPE-Plone - Intranet
 Tiki-Wiki - Acompanhamento

 :D

 flws

 Em 28/11/07, Jeann Wilson [EMAIL PROTECTED] escreveu:
 
  Existem estas soluções
 
  Joomla
  Xoops
  Zone + Plone
 
  dentre vários outros estes três são ótimas escolhas
 
  Em 28/11/07, Jose Oliveira [EMAIL PROTECTED] escreveu:
  
   Colegas
  
   Uma pergunta bem off-topic mas como vocês são todos batutas... E
 como
  eu
   só participo desta lista...
  
   Alguém ai conhece uma solução de portal que seja software livre ou
   software grátis ?
  
   Obrigado e desculpem.
  
   Podem mandar respostas em private, por favor.
  
   --
  
   Abraços
   JGeraldo
  
 
 -
   SF.Net email is sponsored by: The Future of Linux Business White Paper
   from Novell.  From the desktop to the data center, Linux is going
   mainstream.  Let it simplify your IT future.
   http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
   --
   Nagios-users-br@lists.sourceforge.net mailing list
   https://lists.sourceforge.net/lists/listinfo/nagios-users-br
   Wiki: http://nagios-br.sf.net/wiki
  
 
 
 
  --
  site: http://www.melhordetudo.com
 
 -
  SF.Net email is sponsored by: The Future of Linux Business White Paper
  from Novell.  From the desktop to the data center, Linux is going
  mainstream.  Let it simplify your IT future.
  http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
  --
  Nagios-users-br@lists.sourceforge.net mailing list
  https://lists.sourceforge.net/lists/listinfo/nagios-users-br
  Wiki: http://nagios-br.sf.net/wiki
 



 --
 --
 Segurança da Informação se faz com tecnologia, processos e pessoas, e a
 formação destas exige mais que uma seqüência de treinamentos. Porque você
 treina macacos. Pessoas,você educa.

 Se a gente se lança sem vigor, sete de dez ações tomadas não dão certo. É
 extremamente difícil tomar decisões num estado de agitação. Por outro
 lado,
 se sem se preocupar com as conseqüências menores, abordamos os problemas
 com
 o espíito afiado como uma lâmina, sempre encontramos a solução em menos
 tempo do que é necessáio para respirar sete vezes.  Nabeshima Naoshige
 (1538-1618)
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users-br] Zenoss

2007-11-29 Thread Jose Oliveira
Colegas

Alguem ai já ouviu falar no Zenoss ?

Meu gerente pediu para avaliar e, se for melhor que o nagios, migrar para
ele...   :-(

www.zenoss.com

-- 

Abraços
JGeraldo
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-- 
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-br] Zenoss

2007-11-29 Thread Vinícius de Figueiredo Silva
O seu gerente vai achar melhor do que o Nagios. Hehehe...

Eu só visitei o site deles, parece ser uma boa ferramenta. A vantagem
dela em relação ao Nagios é que parece vir 'melhor acabada' para uso
corporativo. Acho que o Nagios perde em alguns recursos para o Zenoss
e para o Zabbix. Agora pra mim esta difícil mudar, o jeito vai ser
continuar brigando com o Nagios para chegar onde eu quero.

Att,

On Nov 29, 2007 10:03 AM, Jose Oliveira [EMAIL PROTECTED] wrote:
 Colegas

 Alguem ai já ouviu falar no Zenoss ?

 Meu gerente pediu para avaliar e, se for melhor que o nagios, migrar para
 ele...   :-(

 www.zenoss.com

 --

 Abraços
 JGeraldo
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 
Vinícius.
personal site - http://vinicius.oitobits.net
gaming blog - http://www.oitobits.net

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-- 
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] SMS gateway

2007-11-29 Thread nagios
Hi Marcel
have a lock at
http://www.kannel.org/
and
http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN4201
Regards Florian

Marcel Hecko schrieb:
 Hi, does anybody know of any HARDWARE solution into which I would just
 stick GSM SIM card and send SMS messages from Nagios?
 Something with ethernet interface - like - I would just call HTTP URI and
 the device will send the SMS text to the number encoded in the HTTP
 request (both - the text and phone number).

 Basically - very basic SMS gateway. With pre-paid sim card that would be
 just magic!

 Does something like that exist? Possibly with two-way communitaction?
 What price should I be looking at?

 Cheers!
 Marcel

 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


   


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Dealing with nightly high load

2007-11-29 Thread Jasper Filon
All,

I'm trying to deal with a bunch of servers that generate some high load
during the night. That is, between 00:00 and 06:00 a series of job is
run that will generate load from 10 to 15. Outside this windows, load
should be no more than 3.

I have read all the documentation, but I cant find a way to implement
this in Nagios. I have found 2 options:
- defining 2 services (load_daily and load_nightly) with different
tresholds. This will make 2 services show up in nagios that are
essential the same
- using escalations to supress messages during the night. This will
however still show errors in the webinterface and spoil you reports with
fake errors

How can I tell Nagios that during the day the load should be max 3
(warning) and max 5 (critical) but during the night, it's ok if they are
8 (warning) and 10 (critical)? I'm sure other people have ran into this
same problem and found a solution for it? Please share!

I'm running Nagios 2.10

Thanx for the help.

Met vriendelijke groet/With kind regards, 

Jasper Filon

CAIWAY Business

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] snmptraphandling.py

2007-11-29 Thread Giles Coochey
Is anyone using Francois Meehan's snmptraphandling.py script?

There's a part of the script where it opens the Nagios.cmd file. I'm not
a python coder, but it appears to me that it writes to the file with 'w'
which would overwrite any pending commands that Nagios has not yet
processed:

#print mondata_res
output = open('/opt/nagios/var/rw/nagios.cmd', 'w')
results = [ + mytime + ]  + PROCESS_SERVICE_CHECK_RESULT;
\
  + host + ; + TRAP- + service_suffix + ; \
  + return_code + ; + mondata_res + \n
output.write(results)

I'm thinking that this script should be opening the file with the 'a'
(Append) mode, so that unprocessed commands in nagios.cmd do not get
overwritten.

I do appear to be missing some traps within Nagios, I can see them as
far as snmptt, but it seems either sec.pl or snmptraphandling.py somehow
doesn't process them and the trap doesn't make it as far as Nagios.

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Dealing with nightly high load

2007-11-29 Thread Duncan Ferguson

On 29 Nov 2007, at 08:30, Jasper Filon wrote:

 All,

 I'm trying to deal with a bunch of servers that generate some high  
 load
 during the night. That is, between 00:00 and 06:00 a series of job is
 run that will generate load from 10 to 15. Outside this windows, load
 should be no more than 3.


http://altinity.blogs.com/dotorg/2007/04/changing_a_serv.html

It works for us...

   Duncs

-- 
Duncan Ferguson
Senior Developer, Altinity Limited

http://www.altinity.com
Tel: +44 (0)870 787 9243
US:  +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: duncan_j_ferguson
MSN: [EMAIL PROTECTED]

The contents of this email and any files transmitted with it are  
confidential and intended solely for the use of the individuals to  
whom it is addressed.
If you are not the intended recipient or have received this e-mail in  
error please notify the sender and delete this e-mail immediately.
Any unauthorised copying, disclosure or distribution of the material  
in this e-mail is strictly prohibited.

Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United  
Kingdom
Registered in England and Wales under company number 4743767


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] snmptraphandling.py

2007-11-29 Thread Duncan Ferguson

On 29 Nov 2007, at 08:53, Giles Coochey wrote:

 Is anyone using Francois Meehan's snmptraphandling.py script?

 There's a part of the script where it opens the Nagios.cmd file.  
 I'm not
 a python coder, but it appears to me that it writes to the file  
 with 'w'
 which would overwrite any pending commands that Nagios has not yet
 processed:


nagios.cmd is a pipe, not an ordinary file and the contents cannot be  
overwritten as such - whatever gets written into the pipe will be  
read out of the pipe by the controlling binary in the same order.

If you cat the pipe then the contents will be lost to nagios, as when  
items are read from the pipe they are automatically removed from it.

Pipes have the first letter as a 'p' on 'ls -l'.

   Duncs

-- 
Duncan Ferguson
Senior Developer, Altinity Limited

http://www.altinity.com
Tel: +44 (0)870 787 9243
US:  +1 866 879 9184
Fax: +44 (0)845 280 1725
Skype: duncan_j_ferguson
MSN: [EMAIL PROTECTED]

The contents of this email and any files transmitted with it are  
confidential and intended solely for the use of the individuals to  
whom it is addressed.
If you are not the intended recipient or have received this e-mail in  
error please notify the sender and delete this e-mail immediately.
Any unauthorised copying, disclosure or distribution of the material  
in this e-mail is strictly prohibited.

Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United  
Kingdom
Registered in England and Wales under company number 4743767


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] snmptraphandling.py

2007-11-29 Thread Giles Coochey
 On 29 Nov 2007, at 08:53, Giles Coochey wrote:
 
  Is anyone using Francois Meehan's snmptraphandling.py script?
 
  There's a part of the script where it opens the Nagios.cmd file.
  I'm not
  a python coder, but it appears to me that it writes to the file
  with 'w'
  which would overwrite any pending commands that Nagios has not yet
  processed:
 
 
 nagios.cmd is a pipe, not an ordinary file and the contents cannot be
 overwritten as such - whatever gets written into the pipe will be
 read out of the pipe by the controlling binary in the same order.
 
 If you cat the pipe then the contents will be lost to nagios, as when
 items are read from the pipe they are automatically removed from it.
 
 Pipes have the first letter as a 'p' on 'ls -l'.
 

Thanks Duncan, so it's a FIFO. So now I need to find out why I'm losing
events along the way :-(

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] test

2007-11-29 Thread Carsten Philipp
only a testmail

-- 


Mit freundlichen Grüßen

Max-Planck-Institut fuer Kognitions- und Neurowissenschaften 
Carsten Philipp Web: http://www.cbs.mpg.de
Stephanstr. 1a  Mail: [EMAIL PROTECTED]
04103 Leipzig   Phone: +49 341 9940-169


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] SMS gateway

2007-11-29 Thread R.Oxley
I use a Nokia 6210e with a data cable connected to the serial port, 
running gnokii to handle sending the SMSs.
Cheap and functional,
regards
Rafe


Marcel Hecko wrote:
 Hi, does anybody know of any HARDWARE solution into which I would just
 stick GSM SIM card and send SMS messages from Nagios?
 Something with ethernet interface - like - I would just call HTTP URI and
 the device will send the SMS text to the number encoded in the HTTP
 request (both - the text and phone number).
 
 Basically - very basic SMS gateway. With pre-paid sim card that would be
 just magic!
 
 Does something like that exist? Possibly with two-way communitaction?
 What price should I be looking at?
 
 Cheers!
 Marcel
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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

-- 


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] SMS gateway

2007-11-29 Thread Phil Costelloe
I use Gnokii with a Nokia phone and it works really well but it relies
on a wired or wireless connection (serial, usb, infrared or Bluetooth
according to the website) between the server and the phone. I use some
simple shell scripts to interface between Nagios and Gnokii. It could be
part of what the OP wants if somebody writes (or has already written) an
http-to-gnokii gateway, but then that wouldn't really be a hardware
solution as requested. I've never run across anything that implements
the sending interface and modem hardware in one product but it may be
out there.

-- 
Phil Costelloe
Foundation IT, Hermitage, Berkshire RG18 9SE
(apologies for the top post, we were already on that path)






Phil Costelloe
Technical Consultant


[EMAIL PROTECTED]
http://www.foundation-it.com
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299














This message contains confidential information and is intended only for [EMAIL 
PROTECTED] If you are not nagios-users@lists.sourceforge.net you should not 
disseminate, distribute or copy this e-mail. Please notify Foundation IT 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. Foundation IT 
therefore does not accept liability for any errors or omissions in the contents 
of this message, which arise as a result of e-mail transmission. If 
verification is required please request a hard-copy version. 

Foundation IT
Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, 
RG18 9SE
Registered in England Number 3281803
















































-Original Message-

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric
Frazier
Sent: 28 November 2007 22:16
To: 'Marcel Hecko'; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] SMS gateway

Hi,

This looks like a winner. Since it is a command line tool it should be
easy
to get working with Nagios.

http://www.gnokii.org/

Others? 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcel
Hecko
Sent: Wednesday, November 28, 2007 5:40 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] SMS gateway


Hi, does anybody know of any HARDWARE solution into which I would just
stick
GSM SIM card and send SMS messages from Nagios?
Something with ethernet interface - like - I would just call HTTP URI
and
the device will send the SMS text to the number encoded in the HTTP
request
(both - the text and phone number).

Basically - very basic SMS gateway. With pre-paid sim card that would be
just magic!

Does something like that exist? Possibly with two-way communitaction?
What price should I be looking at?

Cheers!
Marcel

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: SMS gateway

2007-11-29 Thread Dario B. Bestetti

We use Smstools (http://smstools.meinemullemaus.de/) which works very smoothly, 
but hardware is always a problems because of cable
and cel devices compatibility. Lately we´ve found a little device from Huawei, 
the E220 model which connects trhough USB and works
fine. I think the best hw solution would be the Falcon modems, but 
unfortunately they are hard and expensive to find here. Check
with the guys from Netways (www.netways.de), I believe they have a ready 
package using Falcon as SMS gateway fully integrated with
Nagios.

[]s
_
Dario B. BestettiOpServices
  R. Luciana de Abreu, 471 - Sala 403
  Porto Alegre, RS - CEP 90570-060
Fone 55(51)30613588 Mobile  55(51)81518218 
Fax 55(51)30613588  Email    [EMAIL PROTECTED] 
 
   In God we trust, the rest we monitor ...
_


 -Mensagem original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
 nome de R.Oxley
 Enviada em: quinta-feira, 29 de novembro de 2007 08:14
 Para: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] SMS gateway
 
 
 
 I use a Nokia 6210e with a data cable connected to the serial port,
 running gnokii to handle sending the SMSs.
 Cheap and functional,
 regards
 Rafe
 
 
 Marcel Hecko wrote:
  Hi, does anybody know of any HARDWARE solution into which I would just
  stick GSM SIM card and send SMS messages from Nagios?
  Something with ethernet interface - like - I would just call HTTP URI and
  the device will send the SMS text to the number encoded in the HTTP
  request (both - the text and phone number).
 
  Basically - very basic SMS gateway. With pre-paid sim card that would be
  just magic!
 
  Does something like that exist? Possibly with two-way communitaction?
  What price should I be looking at?
 
  Cheers!
  Marcel
 
  -
  SF.Net email is sponsored by: The Future of Linux Business White Paper
  from Novell.  From the desktop to the data center, Linux is going
  mainstream.  Let it simplify your IT future.
  http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
  ___
  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
 
 --
 
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] obsessing and event handlers

2007-11-29 Thread mark redding
Hi all,

Can anyone here tell me where I'm going wrong in my attempts to
correctly setup a slave nagios server.

What I have is as follows :-

1 master nagios host (running FreeBSD 6.2). This host executes active
checks some of which trigger event handlers (ie. to restart web
servers, etc... the usual stuff).
1 slave nagios host (running FreeBSD 5.5). This host rsyncs the nagios
configuration files from the master, and performs the check_nagios
plugin to determine if the master is running. If it is not, then it
takes over active checks.

The above has been setup using the documentation accompanying the
nagios installation and has v 2.10 installed.

Yesterday I tried to get the slave to receive service check results
from the master by running the nsca daemon on the slave and adding
commands to enable send_nsca on the master to transmit results to the
slave. To achieve this I forced the master to obsess over services and
this all worked correctly.

However, when I checked the system today I have found that although an
event handler should have been executed overnight, it did NOT get
executed.
The only way I've been able to get the master to actually run the
event handlers as needed has been to disable obsessing on the master -
hence I no longer have the slave passively receiving service check
results.
I've sort of worked round this by enabling a global event handler on
the master which calls the send_nsca command, so at the moment the
slave is passively gettings the changes of state to services (but, as
the http://nagios.sourceforge.net/docs/2_0/distributed.html page says,
We could use event handlers to report changes in the state of a
service, but that just doesn't cut it.) and the master is happily
executing event handlers as needed.

Anyone else had this problem with event handlers when obsessing is
enabled ? And does anyone have this working correctly ?

thanks,
Mark

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Dealing with nightly high load

2007-11-29 Thread mark . potter
Cell: 281-734-6965


[EMAIL PROTECTED] wrote on 11/29/2007 02:30:20 
AM:

 All,
 
 I'm trying to deal with a bunch of servers that generate some high load
 during the night. That is, between 00:00 and 06:00 a series of job is
 run that will generate load from 10 to 15. Outside this windows, load
 should be no more than 3.
 
 I have read all the documentation, but I cant find a way to implement
 this in Nagios. I have found 2 options:
 - defining 2 services (load_daily and load_nightly) with different
 tresholds. This will make 2 services show up in nagios that are
 essential the same
 - using escalations to supress messages during the night. This will
 however still show errors in the webinterface and spoil you reports with
 fake errors
 
 How can I tell Nagios that during the day the load should be max 3
 (warning) and max 5 (critical) but during the night, it's ok if they are
 8 (warning) and 10 (critical)? I'm sure other people have ran into this
 same problem and found a solution for it? Please share!
 
 I'm running Nagios 2.10
 
 Thanx for the help.
 
 Met vriendelijke groet/With kind regards, 
 
 Jasper Filon
 
 CAIWAY Business
 
SNIP

Jasper,

I have sort of the same issue and you have already stated the most 
expedient, and indeed only, solution that I found. Two services with 
different time periods for checking. It's doesn't look as pretty in the 
web interface but it works like a charm. The other method would be to 
write a wrapper that performs the check and alerts on the value you set 
based on time. This wouldn't be hard to do to be honest but it seems like 
re-inventing the wheel to some degree. The other question I have is if the 
servers are capable of withstanding a load that high why not just have 
your high threshold set the same all time? My situation isn't load based 
but with the standard Nagios plugin you can alert on any of the three 
points that uptime returns (here I make the assumption you are monitoring 
*nix boxen). If the situation calls for being able to be alerted to spikes 
during normal operating hours then you will either need two checks and 
time period for each or a wrapper that checks the time and returns an 
alert based on the time and load.

Best Regards,

Mark L. Potter
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Need help using check_by_ssh with check_disk

2007-11-29 Thread Sean Bowers
I'm running Nagios 2.10 with plugins 1.4.10 running on:
Linux nagioshost 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006
x86_64 x86_64 x86_64 GNU/Linux

System information on the two remote hosts is:

Linux remotehost1 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005
i686 i686 i386 GNU/Linux
Linux remotehost2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005
i686 i686 i386 GNU/Linux


My check (in commands.cfg as check_disk_by_ssh) is:

$USER1$/libexec/check_by_ssh -E -i identify.txt -l nagios -H
$HOSTADDRESS$ -C /usr/lib/nagios/plugins/check_disk -w $ARG1$ -c
$ARG2$

The services.cmd has:

check_disk_by_ssh!10%!5%

This test runs fine on remotehost1, but on remotehost2 it returns back
UNKNOWN - check_by_ssh: Remote command
'/usr/lib/nagios/plugins/check_disk -w 10% -c 5%' returned status
255.  At first, I thought this could be a 32 vs. 64-bit issue, but
the Nagios host is 64-bit while both remotes are 32.

From the command line, both hosts work fine and 'echo $?' shows 0 for
both.  Logging into the remote boxes and running check_disk manually
is fine as well.  Using -v doesn't help since it doesn't show tracing
information.

Does anyone have any ideas or thoughts on this?  Are there any other
tricks I can try for debugging this?  Any help would be appreciated
immensely.

Thanks!

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Announce: Check Dhcpd Leases - Shows leases / Alerts on unauthorized machines

2007-11-29 Thread Hari Sekhon
Hi,

   I've just released another plugin on www.NagiosExchange.org to 
display the leases that have been handed out by an ISC Dhcpd server.

It can also be used to alert you if any unauthorized machine is detected 
as having a dhcp lease by going Critical.
This works by giving the plugin any combination of Whitelists/Blacklists 
of Hostnames and/or Mac Addresses.
Combine for maximum tripping effect.

Outputting is also flexible so you can choose whether you want to 
include/exclude Hostnames and/or Macs displayed as well as just IPs when 
displaying the leases (default is Hostname = IP). There are also 
switches for sorting the order of display and whether you want compacted 
output, as well as whether to give the summary information on the number 
of active leases.

As usual, it should be flexible enough for all needs, and is open to 
suggestions/constructive criticisms or feature requests which should be 
sent to this address.

Find the plugin here:

http://www.nagiosexchange.org/Check_Plugins.21.0.html?tx_netnagext_pi1[p_view]=1164


Hope you find it useful

Thanks

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 Nagios

2007-11-29 Thread Israel Brewster


On Nov 28, 2007, at 4:52 AM, Mohr James wrote:

 Hi All!

 We had a problem the other day where the nagios process died and no  
 one
 noticed it for over 30 minutes. Therefore, I was thinking about ways  
 to
 monitor Nagios itself. One simply way would be a cronjob that checks  
 if
 the nagios process is running and then uses yaps or something to  
 send an
 SMS. But what about cases where the nagios process is running, but for
 whatever reason the messages are not being processed.

 I was thinking about setting up a service that is triggered by a  
 cronjob
 and then sends a notification. This notification writes a flag file  
 and
 every X minutes a cron job checks the age of the flag file. If the  
 flag
 file is too old, it sends an SMS via yaps.

 Rather than re-invent the wheel, I was wondering if other people had
 already implemented something similar.

 Regards,

 Jim Mohr

For a simple solution that requires no additional software, I just use  
the check_nagios plugin that comes with nagios, and run it from a  
script/cron job. This not only checks to see if nagios has crashed,  
but also checks the age of the status file. If a problem is detected  
with either (and I have had both situations) the script then first  
attempts to restart nagios via a full stop/start, then checks again  
and e-mails me with the result. So far, this has always just been a  
status notification saying that it had restarted nagios, as the stop/ 
start has worked as expected, but if for some reason that should fail  
it would notify me of this fact as well.
---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---




 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] hard_check_interval revisited

2007-11-29 Thread Jeremy C. Reed
I want my final failed services to be rechecked faster that my normal 
checks. I want this so I will be notified quicker when the service is 
successful again. (I already use retry_check_interval with 
max_check_attempts, but I want an interval when the service is in HARD 
state.)

So I googled hard_check_interval and I saw that keyword was mentioned 
before. This mail from 2003 nagios-devel archive describes it:

http://ml.osdir.com/network.nagios.devel/2003-06/msg00064.html

Does anything like this exist but maybe with a different configuration 
name?

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios-users Digest, Vol 18, Issue 48

2007-11-29 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of NTOUGHE GUY-SERGE
 Sent: Thursday, November 29, 2007 10:49 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios-users Digest, Vol 18, Issue 48
 

We'll start with the problems at the bottom of your e-mail and work our
way up (Subject: [Nagios-users] Need help using check_by_ssh with
check_disk). Since the e-mail is quite long, it may take us some time to
read through it all.

--
Marc


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to get reboot messages

2007-11-29 Thread chris serafin
I have a bunch of devices which alert me fine up/down, but I'm looking to
find how to get messages when they reboot. Solarwinds does this for me now,
but I'm trying to move off this solution, but my boss want reboot messages
as well as up/downs for the devices...

Any ideas?

Chris Serafin
[EMAIL PROTECTED]
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] hard_check_interval revisited

2007-11-29 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Jeremy C. Reed
 Sent: Thursday, November 29, 2007 11:06 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] hard_check_interval revisited
 
 I want my final failed services to be rechecked faster that my normal
 checks. I want this so I will be notified quicker when the service is
 successful again. (I already use retry_check_interval with
 max_check_attempts, but I want an interval when the service is in HARD
 state.)
 
 So I googled hard_check_interval and I saw that keyword was
mentioned
 before. This mail from 2003 nagios-devel archive describes it:
 
 http://ml.osdir.com/network.nagios.devel/2003-06/msg00064.html
 
 Does anything like this exist but maybe with a different configuration
 name?

It does not. Nagios uses normal_check_interval (or check_interval for
nagios-3) for checks beyond max_check_attempts (HARD states).

--
Marc

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

chris serafin wrote:
 I have a bunch of devices which alert me fine up/down, but I'm looking
 to find how to get messages when they reboot. Solarwinds does this for
 me now, but I'm trying to move off this solution, but my boss want
 reboot messages as well as up/downs for the devices...
 
 Any ideas?

Are you talking Linux? If not, ignore the rest of this message. :)

If so, what about some type of script to write a flag file when the host
reboots. Then a script which checks to see if that flag file exists. If
it exists, exit with an OK status and delete the flag file.

I set something similar to this up yesterday with an AS400 backup. My
boss was tired of getting a page off of a completed backup. He set
things up to write to an NFS share with a simple touch flag file.

I then check to see if that files exists. If the backup completed
successfully the night before it sees the file, says ok, deletes the
file and exits normally. If the file isn't there, then it exits with an
error to which we get notified.

#!/bin/bash

FILE=/var/flags/AS400_DAILY

if [ -f $FILE ]; then
echo OK: AS400 backup completed normally.
rm -f $FILE
exit 0
else
echo CRIT: AS400 backup error.
exit 2
fi

A simple script of some sort linked to /etc/init.d could write the flag
file after the system boots and disks are mounted. Once that's there,
then you can check if the file exists.

It's not elegant, but would work. If anyone has a better idea, please
chime in.

Regards,
Max
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHTwcKHoeeepPau2ERArpDAJ4lVqyC5z2nWt2uBwD+aFiTBGOYQgCgtZ+f
rubEvG3ToHPGsm34ubat0UE=
=GUQs
-END PGP SIGNATURE-

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Kevin Scott Sumner
We have our site-specific init script do this on Linux and Solaris.  We 
also dump the users from last into the mail just in case a user rebooted a 
lab machine.

The general algorithm is:
-build the input to /usr/lib/sendmail in some file
-mail it with `cat $file | /usr/lib/sendmail -oi $emailAddress`
-if shutting down, wait 10 seconds (this was for older Solaris, may not be 
needed)

Make it run last on boots and first on shutdowns and you should be good.

Cheers,
Kevin
-
Kevin Sumner
[EMAIL PROTECTED]
(919) 962-6494
Assistant Systems Administrator
Physics and Astronomy Networking Infrastructure and Computing
University of North Carolina at Chapel Hill


On Thu, 29 Nov 2007, Max Hetrick wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 chris serafin wrote:
 I have a bunch of devices which alert me fine up/down, but I'm looking
 to find how to get messages when they reboot. Solarwinds does this for
 me now, but I'm trying to move off this solution, but my boss want
 reboot messages as well as up/downs for the devices...

 Any ideas?

 Are you talking Linux? If not, ignore the rest of this message. :)

 If so, what about some type of script to write a flag file when the host
 reboots. Then a script which checks to see if that flag file exists. If
 it exists, exit with an OK status and delete the flag file.

 I set something similar to this up yesterday with an AS400 backup. My
 boss was tired of getting a page off of a completed backup. He set
 things up to write to an NFS share with a simple touch flag file.

 I then check to see if that files exists. If the backup completed
 successfully the night before it sees the file, says ok, deletes the
 file and exits normally. If the file isn't there, then it exits with an
 error to which we get notified.

 #!/bin/bash

 FILE=/var/flags/AS400_DAILY

 if [ -f $FILE ]; then
echo OK: AS400 backup completed normally.
rm -f $FILE
exit 0
else
echo CRIT: AS400 backup error.
exit 2
 fi

 A simple script of some sort linked to /etc/init.d could write the flag
 file after the system boots and disks are mounted. Once that's there,
 then you can check if the file exists.

 It's not elegant, but would work. If anyone has a better idea, please
 chime in.

 Regards,
 Max
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.6 (GNU/Linux)

 iD8DBQFHTwcKHoeeepPau2ERArpDAJ4lVqyC5z2nWt2uBwD+aFiTBGOYQgCgtZ+f
 rubEvG3ToHPGsm34ubat0UE=
 =GUQs
 -END PGP SIGNATURE-

 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


 -- 



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Yost, Josh
hi,
   One simple idea is to use the Uptime number from SNMP (hrSystemUptime.0), 
and if that ever says 0 days then you get an alert.  I have a script that 
does a little more than this, but that's the basic idea.
 
you should be able to do this with check_snmp (or a quick perl script that uses 
snmpget and does regular expression matches).
 
- Josh
 



From: [EMAIL PROTECTED] on behalf of chris serafin
Sent: Thu 11/29/2007 11:59 AM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] How to get reboot messages


I have a bunch of devices which alert me fine up/down, but I'm looking to find 
how to get messages when they reboot. Solarwinds does this for me now, but I'm 
trying to move off this solution, but my boss want reboot messages as well as 
up/downs for the devices... 

Any ideas?

Chris Serafin
[EMAIL PROTECTED]

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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 get reboot messages

2007-11-29 Thread Donnell Lewis
You could also (if it's linux) just put a simple mail command with
message in /etc/rc.local which executes after system boot and init.

-Don

On Thu, 2007-11-29 at 11:59 -0600, chris serafin wrote:
 I have a bunch of devices which alert me fine up/down, but I'm looking
 to find how to get messages when they reboot. Solarwinds does this for
 me now, but I'm trying to move off this solution, but my boss want
 reboot messages as well as up/downs for the devices... 
 
 Any ideas?
 
 Chris Serafin
 [EMAIL PROTECTED]
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___ 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


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Donnell Lewis wrote:
 You could also (if it's linux) just put a simple mail command with
 message in /etc/rc.local which executes after system boot and init.
 

Duh! That's so simple I wasn't even thinking about it. I was thinking of
how to have it checked in Nagios, so see it in the web interface that it
was rebooted. :)

Max

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHTwxKHoeeepPau2ERAhUYAKCUKiBCtVYhzl8mbBk2l3o5acwtXgCgw4P2
NwcIMRgeKePQOlyhaYsUmKA=
=bqYi
-END PGP SIGNATURE-

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Yost, Josh
if you're trying to check windows boxes, I wouldn't use this snmp value because 
I don't think it's set reliably.  I've been using check_nt -v UPTIME for 
those (but i still think it resets correctly at reboot).
 
Also, it may not say 0 days (so you could look to see if days doesn't show 
up); it may just give a time such as the following:
 
host libexec # snmpget -v1 -c string host hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (8082663) 22:27:06.63
 
you'll have to play around w/ it, I guess (sorry for the top-posting).
 
- Josh



From: [EMAIL PROTECTED] on behalf of Yost, Josh
Sent: Thu 11/29/2007 12:47 PM
To: chris serafin; Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How to get reboot messages


hi,
   One simple idea is to use the Uptime number from SNMP (hrSystemUptime.0), 
and if that ever says 0 days then you get an alert.  I have a script that 
does a little more than this, but that's the basic idea.
 
you should be able to do this with check_snmp (or a quick perl script that uses 
snmpget and does regular expression matches).
 
- Josh
 



From: [EMAIL PROTECTED] on behalf of chris serafin
Sent: Thu 11/29/2007 11:59 AM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] How to get reboot messages


I have a bunch of devices which alert me fine up/down, but I'm looking to find 
how to get messages when they reboot. Solarwinds does this for me now, but I'm 
trying to move off this solution, but my boss want reboot messages as well as 
up/downs for the devices... 

Any ideas?

Chris Serafin
[EMAIL PROTECTED]

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Help with failover

2007-11-29 Thread Michael T
I have 2 master servers that attach to a shared NAS which holds the nagios
configs and status data basically /etc and /var. When the primary goes down
there's an event handler that mounts the NAS on the backup and starts
nagios. When I implemented this setup I thought it would be beneficial in
the sense that I would have all the status data retained from the primary
instance. This is not the case when I initiate a failover the backup system
which mounts all the same data that the primary had prior to being brought
down doesn't see any saved status data all checks are in a pending state
until the distributed servers send new check data via nsca. The other
confusing thing is that if I fail it back over to the primary it see's the
old saved status data.

I'm not sure what I'm missing here can anyone enlighten me?

Thanks in advance
Michael
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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 get reboot messages

2007-11-29 Thread chris serafin
Thanks for all the replies, these would be Windows servers,
Cisco/Juniper devices and Checkpoint boxes running mainly on SPLAT (linux)

I prefer to do this with SNMP, as that's how I have done it on
Solarwinds.  I will be trying the SNMP_uptime command and report my results.

[EMAIL PROTECTED]



On Nov 29, 2007 12:03 PM, Edwin Zoeller [EMAIL PROTECTED] wrote:

  You could create a script in /etc/rc2.d or rc3.d that will page/email
 upon shutdown/startup.

  --
 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *chris serafin
 *Sent:* Thursday, November 29, 2007 12:00 PM
 *To:* Nagios-users@lists.sourceforge.net
 *Subject:* [Nagios-users] How to get reboot messages

 I have a bunch of devices which alert me fine up/down, but I'm looking to
 find how to get messages when they reboot. Solarwinds does this for me now,
 but I'm trying to move off this solution, but my boss want reboot messages
 as well as up/downs for the devices...

 Any ideas?

 Chris Serafin
 [EMAIL PROTECTED]

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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_rbl.c in contrib

2007-11-29 Thread slamp slamp
anyone using this? please share how you compiled it and how you are
using it. what rbl's is it checking against?

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 get reboot messages

2007-11-29 Thread Steve Shipway
Here, we do this by checking the uptime of the host/device.For
switches etc, this is in the SNMP counter.  For windows hosts, it is via
check_nt and the UPTIME object.  For unix, you just create an
appropriate script to run via nrpe.

We then do a critical if uptime  10min.  Since hosts are checked every
5min at most then even if the hosts reboots quickly, this will alert.  A
scheduled outage is OK because the scheduled downtime extends 10min
after the reboot.

 

Steve

 



I have a bunch of devices which alert me fine up/down, but I'm looking
to find how to get messages when they reboot. Solarwinds does this for
me now, but I'm trying to move off this solution, but my boss want
reboot messages as well as up/downs for the devices... 



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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 get reboot messages

2007-11-29 Thread chris serafin
So SNMP won't work with Windows? Damn, clients hate extra software. :(
Would you be willing to post your commands/services configs?
I bet if I see your configs I may be able to replicate it to SNMP/windows.

Thanks

[EMAIL PROTECTED]


On Nov 29, 2007 2:57 PM, Steve Shipway [EMAIL PROTECTED] wrote:

  Here, we do this by checking the uptime of the host/device.For
 switches etc, this is in the SNMP counter.  For windows hosts, it is via
 check_nt and the UPTIME object.  For unix, you just create an appropriate
 script to run via nrpe.

 We then do a critical if uptime  10min.  Since hosts are checked every
 5min at most then even if the hosts reboots quickly, this will alert.  A
 scheduled outage is OK because the scheduled downtime extends 10min after
 the reboot.



 Steve


   --

 I have a bunch of devices which alert me fine up/down, but I'm looking to
 find how to get messages when they reboot. Solarwinds does this for me now,
 but I'm trying to move off this solution, but my boss want reboot messages
 as well as up/downs for the devices...


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Need help using check_by_ssh with check_disk

2007-11-29 Thread Dave
Oops, sent from wrong return address.

-- Forwarded message --
From: Dave Burns [EMAIL PROTECTED]
Date: Nov 29, 2007 11:12 AM
Subject: Re: [Nagios-users] Need help using check_by_ssh with check_disk
To: nagios-users@lists.sourceforge.net


On Nov 29, 2007 6:09 AM, Sean Bowers [EMAIL PROTECTED] wrote:
 From the command line, both hosts work fine and 'echo $?' shows 0 for
 both.

In a similar situation, I found it helpful to break my command line
tests into steps. First ssh directly into the remote as nagios and
execute the disk check, as you seem to have done. Then

 sudo  -u nagios ssh  -i /var/spool/nagios/.ssh/id_dsa  [EMAIL PROTECTED]
/usr/lib/nagios/plugins/check_disk -w 10%  -c 5% -e -m -p /

to make sure the key is working and the args and path are correct. Then

sudo  -u nagios  /usr/lib/nagios/plugins/check_by_ssh -H linoleum -i
/var/spool/nagios/.ssh/id_dsa -C /usr/lib/nagios/plugins/check_disk
-w 10%  -c 5% -e -m -p /

If that works, the regular nagios process should work. I once had a
sticky problem where I could get the above working, but nagios kept
telling me unknown. It turned out I had a subtle little typo in my
config that made it different from my command line tests. Headache!

HTH,
Dave

Here are my defs

define command{
command_namecheck_slash_free
command_line $USER1$/check_by_ssh -i
/var/spool/nagios/.ssh/id_dsa  -H $HOSTADDRESS$ -C '$USER1$/check_disk
-w $ARG1$ -c $ARG2$ -e -p \/ -m '
}

and the service

define service {
host_name   hostname
service_description check slash
check_command   check_slash_free!30%!20%
max_check_attempts  3
retry_check_interval1
normal_check_interval   5
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsw,u,c,r,f
contact_groups  localadmins
}

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 plugin Problem

2007-11-29 Thread Kaplan, Andrew H.
Hi there -

 

I want to monitor the status of our Sendmail server, and I plan on using the
check_smtp plugin. When I manually run the plugin using the following syntax:

 

./check_smtp -H hostname

 

The output I get is the following:

 

Connection refused

SMTP CRITICAL - 0.000 sec. response time|time=0.000473s;;;0.00

 

The server is outside the company's firewall, but it is able to be monitored via
port 5666. What steps can I take to enable the use of this plugin? The Nagios

server are both version 2.6. Thanks. 


The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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_SMTP plugin Problem

2007-11-29 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 
 The server is outside the company’s firewall, but it is able to be
 monitored via port 5666. What steps can I take to enable the use of this
 plugin? The Nagios

Read the help on the plugin.

./check_smtp --help

./check_smtp -H HOST -p 5666  # specify the port

Regards,
Max
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt
smwA2hbI00BBoA0v4pgvlP4=
=k9Xp
-END PGP SIGNATURE-

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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_SMTP plugin Problem

2007-11-29 Thread Kaplan, Andrew H.
Hi there --

I tried the command syntax you suggested, and the output was the following:

Invalid SMTP response received from host on port 5666

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max Hetrick
Sent: Thursday, November 29, 2007 4:38 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Check_SMTP plugin Problem

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kaplan, Andrew H. wrote:

 
 The server is outside the company's firewall, but it is able to be
 monitored via port 5666. What steps can I take to enable the use of this
 plugin? The Nagios

Read the help on the plugin.

./check_smtp --help

./check_smtp -H HOST -p 5666  # specify the port

Regards,
Max
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt
smwA2hbI00BBoA0v4pgvlP4=
=k9Xp
-END PGP SIGNATURE-

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] NRPE_NT Error: NRPE_NT failed to create process, exiting...

2007-11-29 Thread Stover, Beth
Hi there,

I'm trying to use NRPE to monitor remote Windows XP machines for the
first time.

Nagios version 2.8.  I have installed check_nrpe on the Nagios server.

Windows XP SP2 is the remote host.   I installed NRPE_NT Version:
0.7f/2.0 on the XP machine.

I edited the nrpe.cfg with the basic info including the following
command definition:

command[check_cmd]=c:\nrpe\test.cmd

Test.cmd is on the XP machine in the following location:
c:\nrpe\test.cmd.  Here are the contents:

@echo off
echo hallo from cmd
exit 1

I do a basic test from the Nagios server like this and it works:

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.10
NRPE_NT v0.7f/2.0

Next, I try executing the remote cmd file, and this is where I get the
error:

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd
NRPE_NT failed to create process, exiting...

There's nothing in the Windows event log.  Nothing interesting in the
nagios.log.

Am I missing something totally simple?

Thanks so much...

Beth Stover
Systems Administrator
415.395.8768


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] String errors

2007-11-29 Thread Jerad Riggin
Ok, so I'm monitoring about 100 websites with string checks via check_http.
We are mirroring what our datacenter actually checks, so we have
notifications turned off so when a site goes down we aren't being spammed by
the datacenter and our nagios installation.

The issue is that every once in awhile a string changes on the site so it
goes critical in our nagios.  We perhaps won't notice it for a day which
messes up our availability reports.  Is there a way to retroactively mark
the time that it was critical as scheduled downtime?
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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_SMTP plugin Problem

2007-11-29 Thread stava
On Thu, 29 Nov 2007 16:42:20 -0500, Kaplan, Andrew H. [EMAIL PROTECTED] 
wrote:
 Hi there --
 
 I tried the command syntax you suggested, and the output was the
 following:
 
 Invalid SMTP response received from host on port 5666

And what do you suppose that could mean?

I wild guess: there's no SMTP server listening on port 5666.

Cheers
/Lars

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Max
 Hetrick
 Sent: Thursday, November 29, 2007 4:38 PM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Check_SMTP plugin Problem
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Kaplan, Andrew H. wrote:
 

 The server is outside the company's firewall, but it is able to be
 monitored via port 5666. What steps can I take to enable the use of this
 plugin? The Nagios
 
 Read the help on the plugin.
 
 ./check_smtp --help
 
 ./check_smtp -H HOST -p 5666  # specify the port
 
 Regards,
 Max
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.6 (GNU/Linux)
 
 iD8DBQFHTzE6HoeeepPau2ERAp0nAKCekPQyym9WjG9GnvosqrDYcDS+MgCeKbtt
 smwA2hbI00BBoA0v4pgvlP4=
 =k9Xp
 -END PGP SIGNATURE-
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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 transmitted in this electronic communication is intended
 only
 for the person or entity to whom it is addressed and may contain
 confidential
 and/or privileged material. Any review, retransmission, dissemination or
 other
 use of or taking of any action in reliance upon this information by
 persons or
 entities other than the intended recipient is prohibited. If you received
 this
 information in error, please contact the Compliance HelpLine at
 800-856-1983 and
 properly dispose of this information.
 
 
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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
--
Lars Stavholm



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] String errors

2007-11-29 Thread Aidan Anderson
Jerad Riggin wrote:
 Ok, so I'm monitoring about 100 websites with string checks via 
 check_http.  We are mirroring what our datacenter actually checks, so 
 we have notifications turned off so when a site goes down we aren't 
 being spammed by the datacenter and our nagios installation.

 The issue is that every once in awhile a string changes on the site so 
 it goes critical in our nagios.  We perhaps won't notice it for a day 
 which messes up our availability reports.  Is there a way to 
 retroactively mark the time that it was critical as scheduled downtime?
I'm not aware of any way to retrospectively schedule downtime but you 
could probably solve your problem by adjusting your checking procedure.  
Assuming you or a colleague has access to change the html on your 
websites, you could have a standard string of text that you add to all 
your websites so that Nagios is checking the same text on each site.  
Whenever a new site is added, just make sure that your standard text 
string is added and you will avoid this problem in the first place.

hth

Aidan


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] SMS notification commands

2007-11-29 Thread Peter Hallam
On Fri, 30 Nov, 13:20 +1000 Nick Pratley wrote:
 Hi, I need to be able to send notifications via SMS in the event that the
 email servers are unavailable, or the internet connection is down. There is
 a server on the same network as the Nagios host that has a modem installed
 and uses SMS Tools 3 to send messages. To send a message all I need to do is
 place a file in a certain directory on that server, in a simple format, and
 it does the rest.
  
 Any ideas what the problem could be, when it runs manually from the command
 line but not through the nagios daemon?

Having just solved this problem this week:

chmod g+w /var/spool/sms/outgoing
chgrp nagios /var/spool/sms/outgoing

This should enable nagios to write to the directory using your script.

Regards,
Peter.


pgpObEhO8E6qd.pgp
Description: PGP signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] SMS notification commands

2007-11-29 Thread Nick Pratley
Thanks for the reply Peter, however that isn't what the problem is in my
case. The /var/spool/sms/outgoing directory on that server is in fact
world-writable. And as I said I can run it from the command line
successfully while logged in as the nagios user, which I wouldn't be able to
do if the permissions were not right.

Keep in mind that SMS Tools is running on a different server, and I'm using
SCP to copy the file to that server.

Any other ideas?

Thanks anyway.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hallam
Sent: Friday, 30 November 2007 2:33 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] SMS notification commands

Having just solved this problem this week:

chmod g+w /var/spool/sms/outgoing
chgrp nagios /var/spool/sms/outgoing

This should enable nagios to write to the directory using your script.

Regards,
Peter.


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] SMS notification commands

2007-11-29 Thread Nick Pratley
Hi, I need to be able to send notifications via SMS in the event that the
email servers are unavailable, or the internet connection is down. There is
a server on the same network as the Nagios host that has a modem installed
and uses SMS Tools 3 to send messages. To send a message all I need to do is
place a file in a certain directory on that server, in a simple format, and
it does the rest.

 

So, I created a script called 'notify-by-sms' in /usr/local/nagios/libexec
which is as follows:

 

TMPFILE=`/bin/mktemp notify.XX`

/bin/echo -e $1  $TMPFILE

/usr/bin/scp $TMPFILE sms-server:/var/spool/sms/outgoing/

rm $TMPFILE

 

The script is owned by the user nagios and is executable. To run it I just
need to pass it a string like To: phonenumber\n\nmessagebody as the
only parameter. If I run it from the command line while logged in as nagios
it works fine.

 

I have the following in commands.cfg which I adapted from
notify-service-by-email and notify-host-by-email:

 

# 'notify-host-by-sms' command definition

define command{

command_name notify-host-by-sms

command_line /usr/local/nagios/libexec/notify-by-sms To:
$CONTACTPAGER$\n\n* Nagios *\n\nNotification Type:
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n

}

 

# 'notify-service-by-sms' command definition

define command{

command_name notify-service-by-sms

command_line /usr/local/nagios/libexec/notify-by-sms To:
$CONTACTPAGER$\n\n* Nagios *\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$

 

}

 

I see the following in /usr/local/nagios/var/nagios.log, as an example (I
have replaced some things with ...):

 

[1196327641] SERVICE NOTIFICATION:
contactname;servername;SyncServer;CRITICAL;notify-service-by-sms;CRITICA
L - Error Fetching http://ipaddress/sync/ds [503] Service Temporarily
Unavailable

 

however the sms is not received. It does not even appear in the log on the
SMS server which indicates the script isn't running or isn't able to scp the
file to that server. I am using public key authentication to negate the need
for a SSH password to be entered.

 

Any ideas what the problem could be, when it runs manually from the command
line but not through the nagios daemon?

 

Thank you,

Nick

 

 

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] SMS notification commands

2007-11-29 Thread Peter Hallam
On Fri, 30 Nov, 15:24 +1000 Nick Pratley wrote:
 Thanks for the reply Peter, however that isn't what the problem is in my
 case. The /var/spool/sms/outgoing directory on that server is in fact
 world-writable. And as I said I can run it from the command line
 successfully while logged in as the nagios user, which I wouldn't be able to
 do if the permissions were not right.
 
 Keep in mind that SMS Tools is running on a different server, and I'm using
 SCP to copy the file to that server.


Ah I overlooked it was being copied to a remote server.  As for running as the 
user nagios, how did you achieve that - with su or logging in directly?  I 
found that su doesn't work as expected.

Anyhow, as you say the outgoing dir is world-writeable on the remote server, 
then it should work AFAIK - though why don't you move the notify-by-sms script 
to the remote server and have a sommand on the nagios server such as:


define command {
command_namenotify-host-by-sms
command_line/usr/bin/ssh [EMAIL PROTECTED] 
/some/path/notify-by-sms $CONTACTPAGER$ \$TIME$ $HOSTALIAS$ $HOSTSTATE$ 
$NOTIFICATIONTYPE$ $HOSTOUTPUT$\
}

In my mind it's cleaner than the scp method, though whether or not it'll work 
or not I'm not sure!

Regards,
Peter


pgpe1AKpkkHwB.pgp
Description: PGP signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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