Re: [Nagios-users-br] NSClient - ERROR: PDH Collection thread not running.

2008-03-05 Thread Leandro de Araujo Julio
Então, eu testei varias configurações mudei o nome varias vezes olhei lá
no performer que em portugues tem outro nome, que eu não me lembro
agora, mas até o momento não consegui fazer isso funcionar, aproveitando
a msg, alguem da lista que monitore servidores windows em portugues
poderia me dar uma dica de como faz isso??  

Em Sáb, 2008-03-01 às 07:49 -0300, Vinícius de Figueiredo Silva
escreveu:
 Eu só testei mesmo no Windows XP para minha estação. As versões
 servers de Windows aqui são todas em inglês.
 
 Teoricamente basta pegar o nome exato no Performance Monitor e
 adicionar no arquivo. Tente novamente e nos fale o que aconteceu.
 
 Abraço!
 
 -- 
 Vinícius.
 personal site - http://vinicius.oitobits.net
 gaming blog - http://www.oitobits.net
 
 
 2008/2/28 Leandro de Araujo Julio [EMAIL PROTECTED]:
  Vinicios quase funfou, quer dizer funcionou para um desktop com o XP mas
   para os server 2000 e 2003 ainda não consegui, quando funcionou no XP
   achei que agora ia, mas até agora sem sucesso e o pior é que isso ta me
   deixando de cabelo em pé, eu até olhei no performance do windows e fiz
   algumas modificações para ver se funcionava, mas até agora sem sucesso,
   se alguem mais tiver uma ideia de como resolver isso eu agradeço.
 
 
   Em Ter, 2008-02-26 às 09:20 -0300, Vinícius de Figueiredo Silva
   escreveu:
 
 
   2008/2/20 Leandro de Araujo Julio [EMAIL PROTECTED]:
 Pessoal essa é a minha primeira msg e estou com um problema que esta me
  atormentando a uns dias tenho o nagios2 instalado em um Debian etch e
  funcionando sem maiores problemas, o unico problema que esta me
  incomodando é essa mensagem de erro que esta dando:
  NSClient - ERROR: PDH Collection thread not running
  pelo que pude apurar esse problema é no NSClient++ e ele só acontece
  quando estou monitorando servidores windows 2000, 2003 e XP em
  portugues, pois tenho um servidor com 2003 server em ingles e nele
  funciona sem problemas, nesses que estão com problemas só consegui
  monitorar o disco C:\, alguem sabe como posso resolver isso.
   
Edite o arquivo counters.defs substituindo a entrada Portuguese_BR por 
  essa:
   
[0x0416]
Description = Portuguese_BR
W2K_SystemTotalProcessorTime = \Processador(_Total)\% tempo de 
  processador
W2K_SystemSystemUpTime = \Sistema\Tempo de ativação do sistema
W2K_MemoryCommitLimit = \Memória\Limite de confirmação
W2K_MemoryCommitByte = \Memória\Bytes confirmados
   
Esses são os nomes que eu chequei no Performance Monitor do Windows e
funcionaram aqui. Depois da alteração reinicie o serviço e teste
novamente.
   
--
Vinícius.
personal site - http://vinicius.oitobits.net
gaming blog - http://www.oitobits.net
   
 
 
   -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   --
   In a World without Walls and Fences, who needs Windows and Gates? -
   Think different. -Think Linux.
 
 
 
   -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2008.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   --
   Nagios-users-br@lists.sourceforge.net mailing list
   https://lists.sourceforge.net/lists/listinfo/nagios-users-br
   Wiki: http://nagios-br.sf.net/wiki
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
-- 
In a World without Walls and Fences, who needs Windows and Gates? -
Think different. -Think Linux.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
-- 
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] question about nagios on solaris 10

2008-03-05 Thread Canhua
hello all

I am installing nagios on solaris 10. I have problem with svcadm. The
situation is as follows.

1. If I svcadm enable nrpe/tcp, the nrpe is indeed online. However
if I try to telnet to nrpe port from localhost and monitoring server,
I both get :
||Trying *
||Connected to *.
||Escape character is '^]'.
||Connection to localhost closed by foreign host.

2.If I manually start nrpe from the command line
directly,(/usr/local/nagios/bin/nrpe -c ...),  then I could get
correct output on localhost, while still get same message on
monitoring server as in the case 1( connected and then closed)

Could anyone help me to figure out where the problem lie? Thank you in advance.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Matthew Macdonald-Wallace
Hi All,

Before I start coding my own plugin to do this, does anyone know of a
plugin that monitors the number of external connection attempts over a
given period of time for a given service and sends alerts accordingly?

I've noticed on a number of servers that we maintain recently that
there are unauthorised attempts to connect via SSH/FTP.  These appear
in the log files about 2 seconds apart and are obviously automated.  

We've got Logcheck in place which alerts us to this kind of thing
already, however I like the idea of a nice visual/audible alert (we all
use the nagios-plugin for firefox here).

Like I say, if it doesn't exist, I'll try and write it, I just thought
someone might have a way of doing this already!

Cheers,

M.
-- 
|Matthew Macdonald-Wallace
|Tiger Computing Ltd
|The Linux Specialists
|
|Tel: 0845 373 3579
|Web: http://www.tiger-computing.co.uk
|
|Registered in England. Company number: 3389961
|Registered address: Wyastone Business Park,
| Wyastone Leys, Monmouth, NP25 3SR

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring windows servers

2008-03-05 Thread Phil Costelloe
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Matthew Macdonald-Wallace
 On Tue, 4 Mar 2008 10:54:44 +
 Alex Dehaini [EMAIL PROTECTED] wrote:

  We have a couple of windows servers. We are monitoring services they
  are running i.e. IMAP, POP, SMTP, PING. I want to monitor CPU,
 memory,
  Disk-space and any other low level service. What is the best
 approach?
 
  Should I install snmp on the windows servers or is there something
  else that I can use.

 There is a nagios client for windows that we have used very
 successfully
 in the past.

 Download the client zip file from http://nsclient.ready2run.nl/ and
 extract to a suitable directory.

The original NSClient has not been developed for a long time and can have some 
problems on Server 2003 and 64 bit machines. There are several Windows clients 
that fulfill the same function as NSClient, but my favourite at the moment is 
OpMonAgent which is an actively developed update of the original NSClient code -
http://www.opservices.com.br/index.php?option=com_contenttask=viewid=54Itemid=54.
 If anything it's easier to install and maintain than NSClient and It Just 
Works which is always good.

Phil


--
Phil Costelloe
Technical Consultant
mailto:[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
--



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] question about nagios on solaris 10

2008-03-05 Thread Canhua
Thank you so much. I get information from /var/adm/message
 It said that

||Mar  5 14:58:41 uis1 nrpe[26376]: [ID 306117 daemon.error] Error:
NRPE daemon ||cannot be run as user/group root!
 and
 ||Mar  5 15:35:14 uis1 nrpe[26475]: [ID 381997 daemon.error] Host
10.240.0.54 is ||not allowed to talk to us!

 however I still do not know what causes this two kind of errors.





 On Wed, Mar 5, 2008 at 6:08 PM, Phil Costelloe [EMAIL PROTECTED] wrote:
   I am installing nagios on solaris 10. I have problem with svcadm. The
situation is as follows.
   
1. If I svcadm enable nrpe/tcp, the nrpe is indeed online. However
if I try to telnet to nrpe port from localhost and monitoring server,
I both get :
||Trying *
||Connected to *.
||Escape character is '^]'.
||Connection to localhost closed by foreign host.
   
2.If I manually start nrpe from the command line
directly,(/usr/local/nagios/bin/nrpe -c ...),  then I could get
correct output on localhost, while still get same message on
monitoring server as in the case 1( connected and then closed)
 
   Do you have tcpwrappers enabled? Check /var/adm/messages to see if
there are any rejection messages.
 
   Try adding the line
 
   nrpe:   127
 
   to /etc/hosts.allow which will permit localhost access to the nrpe service.
 
   Phil
 
   --
   Phil Costelloe
   Technical Consultant
   mailto:[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
   --
 
 
 
   -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2008.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   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
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] question about nagios on solaris 10

2008-03-05 Thread Phil Costelloe
 I am installing nagios on solaris 10. I have problem with svcadm. The
 situation is as follows.

 1. If I svcadm enable nrpe/tcp, the nrpe is indeed online. However
 if I try to telnet to nrpe port from localhost and monitoring server,
 I both get :
 ||Trying *
 ||Connected to *.
 ||Escape character is '^]'.
 ||Connection to localhost closed by foreign host.

 2.If I manually start nrpe from the command line
 directly,(/usr/local/nagios/bin/nrpe -c ...),  then I could get
 correct output on localhost, while still get same message on
 monitoring server as in the case 1( connected and then closed)

Do you have tcpwrappers enabled? Check /var/adm/messages to see if there are 
any rejection messages.

Try adding the line

nrpe:   127

to /etc/hosts.allow which will permit localhost access to the nrpe service.

Phil

--
Phil Costelloe
Technical Consultant
mailto:[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
--



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] question about nagios on solaris 10

2008-03-05 Thread Phil Costelloe
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Canhua

 Thank you so much. I get information from /var/adm/message
  It said that

 ||Mar  5 14:58:41 uis1 nrpe[26376]: [ID 306117 daemon.error] Error:
 NRPE daemon ||cannot be run as user/group root!
  and
  ||Mar  5 15:35:14 uis1 nrpe[26475]: [ID 381997 daemon.error] Host
 10.240.0.54 is ||not allowed to talk to us!

  however I still do not know what causes this two kind of errors.

Check your nrpe.cfg file and change the nrpe_user and nrpe_group items to 
something other than root. I usually set up a nagios user and group with the 
least login and permission rights I can get away with. Also in nrpe.cfg, add 
10.240.0.54 and 127.0.0.1 to allowed_hosts. Restart nrpe and see what 
difference that makes.

Phil

--
Phil Costelloe
Technical Consultant
mailto:[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
--



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Alex Dehaini
Hi Guys,

What plugin can I use to do these?


-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Giles Coochey


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Alex Dehaini
 Sent: 05 March 2008 12:33
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Monitoring Unix servers CPU, memory and
hard-disk
 
 Hi Guys,
 
 What plugin can I use to do these?
 

Check_load, check_disk, check_procs

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Alex Dehaini
Many thanks

On 3/5/08, Giles Coochey [EMAIL PROTECTED] wrote:


   -Original Message-
   From: [EMAIL PROTECTED] [mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Alex Dehaini
   Sent: 05 March 2008 12:33
   To: nagios-users@lists.sourceforge.net
   Subject: [Nagios-users] Monitoring Unix servers CPU, memory and
  hard-disk
  
   Hi Guys,
  
   What plugin can I use to do these?
  


 Check_load, check_disk, check_procs



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Alex Dehaini
check_swap tests the local available swap. What about the acual memory
that is free or used?

Alex

On 3/5/08, Alex Dehaini [EMAIL PROTECTED] wrote:
 Many thanks


  On 3/5/08, Giles Coochey [EMAIL PROTECTED] wrote:
  
  
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Alex Dehaini
 Sent: 05 March 2008 12:33
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Monitoring Unix servers CPU, memory and
hard-disk

 Hi Guys,

 What plugin can I use to do these?

  
  
   Check_load, check_disk, check_procs
  



 --
  Alex Dehaini
  Developer
  Site - www.alexdehaini.com
  Email - [EMAIL PROTECTED]



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Add information in notification

2008-03-05 Thread Bráulio H . Soares
Hi people,

 

I need to send the notifications with a comment, including information about 
the incident, instead only information about host or service...

 

I think to achieve this using event handler, with scripts that send e-mail 
containing that message, but I not able to do this, because the user could 
receive two e-mail, the first could be a notification and the second the 
incident information, generated by the script.

 

Can I to add environment variables (like $HOSTALIAS$ or $HOSTSTATE$) in the 
Nagios, using to send the enhanced information?

 

(The attachment contains a example of the e-mail I need. The additional 
information should be below the topic Techinical Info).

 

 

Thanks for advance.

 

Best Regards,

brHS.




Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.

Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 
bank. Personal opinions, remarks and conclusions are not endorsed by Halógica 
Tecnologia, and must be disconsidered. Thank you.
* Nagios *

Notification Type: PROBLEM
Host: host1.fake.com
Description: Fake Description
State: DOWN
Address: 1.1.1.1
Info: (Host Check Timed Out)

Techinical Info:
(THIS IS THE INFORMATION I NEED TO ADD...)
- This incident can be occurred for this or that reason. Try doing anything to 
solve this question.
- If anything to solve, run run run most quickly you can!
- [...]
- And more and more and more information...
.
.
.
- ... and more...

Date/Time: Tue Feb 19 14:35:24 BRT 2008
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Alex Dehaini
Also, check_load and check_procs doesn't tell you the memory that is
used or the memory that is free. What plugin can I use for that?

On 3/5/08, Alex Dehaini [EMAIL PROTECTED] wrote:
 check_swap tests the local available swap. What about the acual memory
  that is free or used?


  Alex


  On 3/5/08, Alex Dehaini [EMAIL PROTECTED] wrote:
   Many thanks
  
  
On 3/5/08, Giles Coochey [EMAIL PROTECTED] wrote:


   -Original Message-
   From: [EMAIL PROTECTED] [mailto:nagios-users-
   [EMAIL PROTECTED] On Behalf Of Alex Dehaini
   Sent: 05 March 2008 12:33
   To: nagios-users@lists.sourceforge.net
   Subject: [Nagios-users] Monitoring Unix servers CPU, memory and
  hard-disk
  
   Hi Guys,
  
   What plugin can I use to do these?
  


 Check_load, check_disk, check_procs

  
  
  
   --
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
  


  --
  Alex Dehaini
  Developer
  Site - www.alexdehaini.com
  Email - [EMAIL PROTECTED]



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Giles Coochey


 
 Also, check_load and check_procs doesn't tell you the memory that is
 used or the memory that is free. What plugin can I use for that?
 

Check out
http://www.nagiosexchange.org/Linux.55.0.html?tx_netnagext_pi1[p_view]=
1149

Note that UNIX systems have different memory management systems and can
use, in the case of Linux, practically all spare memory for buffers and
cache to improve performance.

You will need to take this into account when choosing an appropriate
plugin.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread James E. Pratt
Kinda off-topic, but why on earth would you care much about memory
details on a Linux box? Most memory is cached, so output from, say,
free is kinda useless. (Not sure where that plugin gets it's info
though either?).. IMO You are much better off monitoring loadavg . (Or,
am I just losing it?) 

Regards,
jp

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Alex Dehaini
 Sent: Wednesday, March 05, 2008 7:56 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Monitoring Unix servers CPU, memory and
 hard-disk
 
 Also, check_load and check_procs doesn't tell you the memory that is
 used or the memory that is free. What plugin can I use for that?
 
 On 3/5/08, Alex Dehaini [EMAIL PROTECTED] wrote:
  check_swap tests the local available swap. What about the acual
 memory
   that is free or used?
 
 
   Alex
 
 
   On 3/5/08, Alex Dehaini [EMAIL PROTECTED] wrote:
Many thanks
   
   
 On 3/5/08, Giles Coochey [EMAIL PROTECTED] wrote:
 
 
-Original Message-
From: [EMAIL PROTECTED]
 [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Alex Dehaini
Sent: 05 March 2008 12:33
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Monitoring Unix servers CPU, memory
 and
   hard-disk
   
Hi Guys,
   
What plugin can I use to do these?
   
 
 
  Check_load, check_disk, check_procs
 
   
   
   
--
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED]
   
 
 
   --
   Alex Dehaini
   Developer
   Site - www.alexdehaini.com
   Email - [EMAIL PROTECTED]
 
 
 
 --
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED]
 

---
 --
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Hari Sekhon
Matthew Macdonald-Wallace wrote:
 Hi All,

 Before I start coding my own plugin to do this, does anyone know of a
 plugin that monitors the number of external connection attempts over a
 given period of time for a given service and sends alerts accordingly?

 I've noticed on a number of servers that we maintain recently that
 there are unauthorised attempts to connect via SSH/FTP.  These appear
 in the log files about 2 seconds apart and are obviously automated.  

 We've got Logcheck in place which alerts us to this kind of thing
 already, however I like the idea of a nice visual/audible alert (we all
 use the nagios-plugin for firefox here).
   
You could probably use check_logfiles to search for those logged strings 
and alert on those. Haven't used it myself yet but it seems good.

http://www.consol.com/opensource/nagios/check-logfiles/

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Add information in notification

2008-03-05 Thread Hari Sekhon
Bráulio H. Soares wrote:

 Hi people,

 I need to send the notifications with a comment, including information 
 about the incident, instead only information about host or service…

 I think to achieve this using event handler, with scripts that send 
 e-mail containing that message, but I not able to do this, because the 
 user could receive two e-mail, the first could be a notification and 
 the second the “incident information”, generated by the script.

 Can I to add “environment variables” (like $HOSTALIAS$ or $HOSTSTATE$) 
 in the Nagios, using to send the enhanced information?


See misccommands.cfg where your notification commands are enabled. They 
use Nagios macros, so you can add more information using other macros there.

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Hari Sekhon
James E. Pratt wrote:
 Kinda off-topic, but why on earth would you care much about memory
 details on a Linux box? Most memory is cached, so output from, say,
 free is kinda useless. (Not sure where that plugin gets it's info
 though either?).. IMO You are much better off monitoring loadavg . (Or,
 am I just losing it?) 

 Regards,
 jp
You would care if you've ever used Linux and heard of oom-killer.

I wrote a plugin ages ago that checks this and takes this caching 
behaviour of Linux in to account.

http://www.nagiosexchange.org/Linux.55.0.html?tx_netnagext_pi1[p_view]=909

This plugin counts cache ram as free by default as it effectively is on 
Linux architecture and so this is the correct thing to do, but there is 
also a switch to change this behaviour if you want.

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Michael Schwartzkopff
Am Mittwoch, 5. März 2008 14:14 schrieb Hari Sekhon:
 Matthew Macdonald-Wallace wrote:
  Hi All,
 
  Before I start coding my own plugin to do this, does anyone know of a
  plugin that monitors the number of external connection attempts over a
  given period of time for a given service and sends alerts accordingly?
 
  I've noticed on a number of servers that we maintain recently that
  there are unauthorised attempts to connect via SSH/FTP.  These appear
  in the log files about 2 seconds apart and are obviously automated.
 
  We've got Logcheck in place which alerts us to this kind of thing
  already, however I like the idea of a nice visual/audible alert (we all
  use the nagios-plugin for firefox here).

 You could probably use check_logfiles to search for those logged strings
 and alert on those. Haven't used it myself yet but it seems good.

 http://www.consol.com/opensource/nagios/check-logfiles/

 -h


1) Better use the logmatch option in the net-snmp configuration. It is quite 
undocumented but works like a charm. nagios can read these values with 
check_snmp.

Syntax:
logmatch name logile interval regex

2) On the other hand: Why don't you use limits for external ssh connections?


-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: [EMAIL PROTECTED]
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Tom Throckmorton
On Mar 05 09:34, Matthew Macdonald-Wallace wrote:
 Hi All,
 
 Before I start coding my own plugin to do this, does anyone know of a
 plugin that monitors the number of external connection attempts over a
 given period of time for a given service and sends alerts accordingly?
 
 I've noticed on a number of servers that we maintain recently that
 there are unauthorised attempts to connect via SSH/FTP.  These appear
 in the log files about 2 seconds apart and are obviously automated.  
 
 We've got Logcheck in place which alerts us to this kind of thing
 already, however I like the idea of a nice visual/audible alert (we all
 use the nagios-plugin for firefox here).

Since you already have an investment in Logcheck, you could feed those events
directly to Nagios using NSCA.  There's an example configuration outlined in
this document:

https://www2.sans.org/reading_room/whitepapers/logging/198.php

If you're looking for something more real-time, you might consider dropping
Logcheck in favor of swatch/SEC.  

Cheers,

-tt

-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Tom Throckmorton
On Mar 05 14:22, Michael Schwartzkopff wrote:
 1) Better use the logmatch option in the net-snmp configuration. It is quite 
 undocumented but works like a charm. nagios can read these values with 
 check_snmp.
 
 Syntax:
 logmatch name logile interval regex

That's a good method, also, if you're just looking for counts of a very general
regex.   I've found this approach useful when I need to watch a log that isn't
already getting fed to the central loghost, or I'm just looking for counters
and not content.

One caveat of logmatch is that some values are reset upon log rotation
(logMatchCurrentCounter) or reading (logMatchCounter) - it's a feature :-D

-tt

-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Add information in notification

2008-03-05 Thread John Kramme
This is a perl script that I use.   very informational, very configurable



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bráulio H. Soares
Sent: Wednesday, March 05, 2008 6:53 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Add information in notification



Hi people,

 

I need to send the notifications with a comment, including information about 
the incident, instead only information about host or service...

 

I think to achieve this using event handler, with scripts that send e-mail 
containing that message, but I not able to do this, because the user could 
receive two e-mail, the first could be a notification and the second the 
incident information, generated by the script.

 

Can I to add environment variables (like $HOSTALIAS$ or $HOSTSTATE$) in the 
Nagios, using to send the enhanced information?

 

(The attachment contains a example of the e-mail I need. The additional 
information should be below the topic Techinical Info).

 

 

Thanks for advance.

 

Best Regards,

brHS.

Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado. 

Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 
bank. Personal opinions, remarks and conclusions are not endorsed by Halógica 
Tecnologia, and must be disconsidered. Thank you. 



send_mail.pl
Description: send_mail.pl
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] service notifications not being sent

2008-03-05 Thread nagios
Pili,

Thanks for your response. Email is working correctly since the host 
notices are going out. I'm aware that the notifications won't go out if 
the server is down, but the server is up as we setup a dummy service. 
Hitting a brick wall here. :)

Pili Muñoz Gargallo wrote:
 I am not sure but i think i read notifications for services are not 
 sent is the host is down..
 anyway, your options are critical and recovery, (are you calling down 
 to critical state?)
 Are you sure you have your email server properly configured?

 hope this help you


 2008/3/4, nagios [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:

 Hello everyone,

 I have just configured some service checks for services such as
 http, smtp, etc.. The commands are defined in the commands.cfg
 file and then called in the services.cfg file. The following is an
 example of how a commands.cfg and services.cfg looks:

 # 'check_http' command definition
 define command{
 command_namecheck_http
 command_line$USER1$/check_http -H $HOSTADDRESS$
 }

  Generic services template 
 define service{
 name generic-service;
 active_checks_enabled 1;
 obsess_over_service 1;
 check_freshness 0;
 notifications_enabled 1;
 event_handler_enabled 1;
 flap_detection_enabled 1;
 retain_status_information 1;
 retain_nonstatus_information 1;
 register 0;
 }
 define service{
 use generic-service
 namebasic-service
 is_volatile 0
 check_period24x7
 max_check_attempts  15
 normal_check_interval   5
 retry_check_interval1
 notification_interval   240
 notification_period 24x7
 register0
 }
 define service{
 use basic-service
 name smtp-service
 check_command check_smtp
 notification_options c,r
 register 0
 }

 Example service called for a specific host (same services.cfg file
 as where the above services are declared in the beginning)

 define service{
 use dns-service
 host_name serv01
 servicegroups mygroup
 service_description DNS
 contact_groups localadmin,supportpro
 }

 The contacts are setup correctly since our check_ping which is
 declared in the hosts.cfg file works perfectly fine and we do get
 the correct alerts.

 Could someone point me in the right direction of what I'm doing
 wrong here? I can't seem to get emails if a service is down. It's
 most likely in my syntax, but I'm not sure where since I get no
 errors when reloading Nagios.

 Thanks for your help.


 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Nagios-users mailing list

 Nagios-users@lists.sourceforge.net
 mailto: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


 

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 

 ___
 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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Melanie Pfefer
check_load works on the local server only right?

how to check_load on $HOSTNAME???

thanks
--- Hari Sekhon [EMAIL PROTECTED] wrote:

 James E. Pratt wrote:
  Kinda off-topic, but why on earth would you care
 much about memory
  details on a Linux box? Most memory is cached, so
 output from, say,
  free is kinda useless. (Not sure where that
 plugin gets it's info
  though either?).. IMO You are much better off
 monitoring loadavg . (Or,
  am I just losing it?) 
 
  Regards,
  jp
 You would care if you've ever used Linux and heard
 of oom-killer.
 
 I wrote a plugin ages ago that checks this and takes
 this caching 
 behaviour of Linux in to account.
 

http://www.nagiosexchange.org/Linux.55.0.html?tx_netnagext_pi1[p_view]=909
 
 This plugin counts cache ram as free by default as
 it effectively is on 
 Linux architecture and so this is the correct thing
 to do, but there is 
 also a switch to change this behaviour if you want.
 
 -h
 
 -- 
 Hari Sekhon
 
 

-
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio
 2008.

http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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
 



  __
Sent from Yahoo! Mail.
A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Giles Coochey


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Melanie Pfefer
 Sent: 05 March 2008 16:01
 To: Hari Sekhon; James E. Pratt
 Cc: Nagios Users
 Subject: Re: [Nagios-users] Monitoring Unix servers CPU, memory and
hard-
 disk
 
 check_load works on the local server only right?
 
 how to check_load on $HOSTNAME???
 


NRPE http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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_svn - Plugin to test Subversion repositories

2008-03-05 Thread Hari Sekhon
Hi,

   I've just released another plugin on NagiosExchange called check_svn 
that tests subversion repositories over svn://, http:// or https://.

This is a re-write of a plugin I've been using for more than a year and 
had been meaning to release earlier, I know there were some people who 
had asked for it, and my apologies to those folks for taking so long on 
this, but work has not allowed me to spend time on the things I've been 
wanting to and I generally don't release my plugins until I feel they 
meet a minimum standard.


The plugin takes range of options including username/password 
credentials, port, protocol, directory, directory content listing, timer 
output. It follows the standard Nagios coding guidelines with a 
--timeout for the test and levels of verbosity for more information or 
debugging. It requires that the svn command line client svn be 
somewhere in the path as it uses this to connect to the Subversion 
server to fetch a listing to determine that the repository is online and 
available.


You can get the plugin from NagiosExchange:

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


Feedback on this plugin is always welcome. For support, feature requests 
or bug reports email me at this address.

Thanks

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Hari Sekhon
Melanie Pfefer wrote:
 check_load works on the local server only right?

 how to check_load on $HOSTNAME???
   
Read up on Nagios remote execution mechanisms, specifically NRPE, NSCA 
which are the 2 main ways of running remote checks (there is also SNMP 
and check_by_ssh but I don't recommend these as much for nagios, they're 
generally harder to get right).

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Hari Sekhon
Gary Every wrote:
 Here is my command for checking load - it grabs 1,5,15 mins and 
 displays them. I'm watching to 5 min load, so it is first in the check:

 command_line/usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C 
 $ARG1$ -o 
 enterprises.ucdavis.laTable.laEntry.laLoadInt.2,enterprises.ucdavis.laTable.laEntry.laLoadInt.1,enterprises.ucdavis.laTable.laEntry.laLoadInt.3
  
 -w :$ARG2$ -c :$ARG3$ -u is 5min - ,is Current - ,is 15min


 The important thing in this is the 
 enterprises.ucdavis.laTable.laEntry.laLoadInt.2 where 2 is the 
 second object returned, but since it is first, that is what nagios 
 will measure. The -u is formatting so the nagios check looks like this 
 on the webpage:

 SNMP OK - 68 is 5min - 72 is Current - 63 is 15min

 snmp is the way to go. Read up on it, you can do MANY checks - mem, 
 procs, disk space, execute remote commands, etc
Don't forget to CC the list.

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Alex Dehaini
Hari,

I agree snmp is he way but I need the specific OIDs to monitor. Can I
get all the OIDs for memory, cpu, etc? The OIDS that WORK

Alex


On 3/5/08, Hari Sekhon [EMAIL PROTECTED] wrote:
 Gary Every wrote:
   Here is my command for checking load - it grabs 1,5,15 mins and
   displays them. I'm watching to 5 min load, so it is first in the check:
  
   command_line/usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C
   $ARG1$ -o
   
 enterprises.ucdavis.laTable.laEntry.laLoadInt.2,enterprises.ucdavis.laTable.laEntry.laLoadInt.1,enterprises.ucdavis.laTable.laEntry.laLoadInt.3
   -w :$ARG2$ -c :$ARG3$ -u is 5min - ,is Current - ,is 15min
  
  
   The important thing in this is the
   enterprises.ucdavis.laTable.laEntry.laLoadInt.2 where 2 is the
   second object returned, but since it is first, that is what nagios
   will measure. The -u is formatting so the nagios check looks like this
   on the webpage:
  
   SNMP OK - 68 is 5min - 72 is Current - 63 is 15min
  
   snmp is the way to go. Read up on it, you can do MANY checks - mem,
   procs, disk space, execute remote commands, etc
  Don't forget to CC the list.


  -h

  --
  Hari Sekhon


  -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  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



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Rainer Duffner
Alex Dehaini schrieb:
 Hari,

 I agree snmp is he way but I need the specific OIDs to monitor. Can I
 get all the OIDs for memory, cpu, etc? The OIDS that WORK

 Alex

   

Use an SNMP-Browser (like mbrowse).

There are also ready-made plugins for this.
Go to nagiosexchange and search for snmp - various are on the first
page already.



cheers,
Rainer

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Melanie Pfefer
 Sent: Wednesday, March 05, 2008 10:44 AM
 To: Alex Dehaini; nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Monitoring Unix servers CPU, memory and
hard-
 disk
 
 excetly!
 can we have list of OID (cpu,mem and disk) for linux
 also?

snmpwalk -c yourcommunitystring hostname

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Melanie Pfefer
excetly!
can we have list of OID (cpu,mem and disk) for linux
also?

I tested
./check_snmp -H CLEO -o
enterprises.ucdavis.laTable.laEntry.laLoadInt.2,enterprises.ucdavis.laTable.laEntry.laLoadInt.1,enterprises.ucdavis.laTable.laEntry.laLoadInt.3
-w 98 -c 99  -u is 5min - ,is Current - ,is 15min
SNMP OK - 0 is 5min -  0 is Current -  0 is 15min |
UCD-SNMP-MIB::laLoadInt.2=0
UCD-SNMP-MIB::laLoadInt.1=0
UCD-SNMP-MIB::laLoadInt.3=0

CLEO is a solaris machine. These OIDs are what
exactly?

--- Alex Dehaini [EMAIL PROTECTED] wrote:

 Hari,
 
 I agree snmp is he way but I need the specific OIDs
 to monitor. Can I
 get all the OIDs for memory, cpu, etc? The OIDS that
 WORK
 
 Alex
 
 
 On 3/5/08, Hari Sekhon [EMAIL PROTECTED]
 wrote:
  Gary Every wrote:
Here is my command for checking load - it grabs
 1,5,15 mins and
displays them. I'm watching to 5 min load, so
 it is first in the check:
   
command_line   
 /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$
 -C
$ARG1$ -o
   

enterprises.ucdavis.laTable.laEntry.laLoadInt.2,enterprises.ucdavis.laTable.laEntry.laLoadInt.1,enterprises.ucdavis.laTable.laEntry.laLoadInt.3
-w :$ARG2$ -c :$ARG3$ -u is 5min - ,is Current
 - ,is 15min
   
   
The important thing in this is the
   
 enterprises.ucdavis.laTable.laEntry.laLoadInt.2
 where 2 is the
second object returned, but since it is first,
 that is what nagios
will measure. The -u is formatting so the
 nagios check looks like this
on the webpage:
   
SNMP OK - 68 is 5min - 72 is Current - 63 is
 15min
   
snmp is the way to go. Read up on it, you can
 do MANY checks - mem,
procs, disk space, execute remote commands, etc
   Don't forget to CC the list.
 
 
   -h
 
   --
   Hari Sekhon
 
 
  

-
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio
 2008.
  

http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   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
 
 
 
 -- 
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED]
 

-
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio
 2008.

http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 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
 



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Add information in notification

2008-03-05 Thread Bráulio H . Soares
Thanks for the help, Hari. But I need to add information possibly different for 
each host and/or service notification, understand?

By this way, I cannot insert static parameter in the command_line, into the 
commands file.

I think another method to do this, but is no functional. I think the following:

- Create a contact template with a specific service and host notifies command.
- Create a command to send e-mail to each contact template, so I would have 
customized commands to each situation I need.

The problem rises when creating the contacts, because the same contact should 
be assigned to several contact template, but is not possible.

Anymore idea!?

Thanks.

Sds,
 

 
 
-Mensagem original-
De: Hari Sekhon [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 5 de março de 2008 10:17
Para: Bráulio H. Soares
Cc: nagios-users@lists.sourceforge.net
Assunto: Re: [Nagios-users] Add information in notification

Bráulio H. Soares wrote:

 Hi people,

 I need to send the notifications with a comment, including information 
 about the incident, instead only information about host or service...

 I think to achieve this using event handler, with scripts that send 
 e-mail containing that message, but I not able to do this, because the 
 user could receive two e-mail, the first could be a notification and 
 the second the incident information, generated by the script.

 Can I to add environment variables (like $HOSTALIAS$ or $HOSTSTATE$) 
 in the Nagios, using to send the enhanced information?


See misccommands.cfg where your notification commands are enabled. They 
use Nagios macros, so you can add more information using other macros there.

-h

-- 
Hari Sekhon




Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.

Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 
bank. Personal opinions, remarks and conclusions are not endorsed by Halógica 
Tecnologia, and must be disconsidered. Thank you.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] RES: Add information in notification

2008-03-05 Thread Hari Sekhon
Bráulio H. Soares wrote:
 Thanks for the help, Hari. But I need to add information possibly different 
 for each host and/or service notification, understand?

 By this way, I cannot insert static parameter in the command_line, into the 
 commands file.

 I think another method to do this, but is no functional. I think the 
 following:

 - Create a contact template with a specific service and host notifies command.
 - Create a command to send e-mail to each contact template, so I would have 
 customized commands to each situation I need.

 The problem rises when creating the contacts, because the same contact should 
 be assigned to several contact template, but is not possible.

 Anymore idea!?

 Thanks.

 Sds,
   
If you are trying to do something too complicated, you might be trying 
to push a square peg in to a round hole by forcing Nagios to work in a 
way it normally doesn't do.

Have you considered just having one notification command which calls a 
script. You can then program in all the logic in to this script.

The script can accept lots and lots of Nagios macros and change the 
output depending of conditional testing and outputting certain macros 
with information depending on which host or service it is.

This way all the logic is in once place and you just need to maintain 
that notification script.

I didn't look at the one contributed by John Kramme just now, but that 
might be a good starting point for you.

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: RES: Add information in notification

2008-03-05 Thread Bráulio H . Soares
Truly, this is not the normal way that Nagios work, but, while I try to find a 
method to add information in the e-mail, I also try to find methods to send 
e-mail through using event handler (see the attachment History.txt).

This is the other problem I'm facing. If anybody can help...

Thanks!

Best Regards,
brHS

 

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Bráulio H. Soares
Enviada em: quarta-feira, 5 de março de 2008 14:21
Para: Hari Sekhon
Cc: nagios-users@lists.sourceforge.net
Assunto: [Nagios-users] RES: Add information in notification

Thanks for the help, Hari. But I need to add information possibly different for 
each host and/or service notification, understand?

By this way, I cannot insert static parameter in the command_line, into the 
commands file.

I think another method to do this, but is no functional. I think the following:

- Create a contact template with a specific service and host notifies command.
- Create a command to send e-mail to each contact template, so I would have 
customized commands to each situation I need.

The problem rises when creating the contacts, because the same contact should 
be assigned to several contact template, but is not possible.

Anymore idea!?

Thanks.

Sds,
 

 
 
-Mensagem original-
De: Hari Sekhon [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 5 de março de 2008 10:17
Para: Bráulio H. Soares
Cc: nagios-users@lists.sourceforge.net
Assunto: Re: [Nagios-users] Add information in notification

Bráulio H. Soares wrote:

 Hi people,

 I need to send the notifications with a comment, including information 
 about the incident, instead only information about host or service...

 I think to achieve this using event handler, with scripts that send 
 e-mail containing that message, but I not able to do this, because the 
 user could receive two e-mail, the first could be a notification and 
 the second the incident information, generated by the script.

 Can I to add environment variables (like $HOSTALIAS$ or $HOSTSTATE$) 
 in the Nagios, using to send the enhanced information?


See misccommands.cfg where your notification commands are enabled. They 
use Nagios macros, so you can add more information using other macros there.

-h

-- 
Hari Sekhon




Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.


Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 
bank. Personal opinions, remarks and conclusions are not endorsed by Halógica 
Tecnologia, and must be disconsidered. Thank you.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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



Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta 

Re: [Nagios-users] RES: Parameters not passed to event handler's script

2008-03-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Bráulio H. Soares
 Sent: Tuesday, March 04, 2008 2:35 PM
 To: Patrick Morris
 Cc: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RES: Parameters not passed to event handler's
 script
 
 To test effects, consider the script like the example available at Nagios
 online docs, with some modifications (see the attachment).
 
 The command with the parameters is this:
 command_line /fakepath/nagios/fake_script $SERVICESTATE$
 $SERVICESTATETYPE$ $SERVICEATTEMPT$

See below...
 
 -Mensagem original-
 De: Patrick Morris [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 4 de março de 2008 17:24
 Para: Bráulio H. Soares
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] Parameters not passed to event handler's
 script
 
 Hi Br?ulio!
 
 On Tue, 04 Mar 2008, Br?ulio H. Soares wrote:
 
  Hi people,
 
  I?ve a Nagios 3rc1 with a very simple configuration and I?m facing a
 problem while using Event Handler.
 
  When the script run, in the logs I can to verify that the parameters is
 not passed to the code. See below:
 
  [1204655932] SERVICE ALERT: host1.fake.int;PING;CRITICAL;SOFT;1;PING
 CRITICAL - Packet loss = 100%
  [1204655962] HOST ALERT: host1.fake.int;DOWN;SOFT;1;(Host Check Timed
 Out)
  [1204655962] HOST EVENT HANDLER:
 host1.fake.int;(null);(null);(null);fakescript

$SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$ macros are not valid for 
host event handlers, only service event handlers.

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

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Unix servers CPU, memory and hard-disk

2008-03-05 Thread Gary Every
Go to:
http://ultralight.caltech.edu/web-site/ultralight/workgroups/network/sc2005/snmpd.conf

There are most of the ucdavis snmp strings that work. Use it as a model and
replace the strings from my command

It'll take a little playing, but it's worth it!


On Wed, Mar 5, 2008 at 9:30 AM, Hari Sekhon [EMAIL PROTECTED] wrote:

 Gary Every wrote:
  Here is my command for checking load - it grabs 1,5,15 mins and
  displays them. I'm watching to 5 min load, so it is first in the check:
 
  command_line/usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C
  $ARG1$ -o
  enterprises.ucdavis.laTable.laEntry.laLoadInt.2,
 enterprises.ucdavis.laTable.laEntry.laLoadInt.1,
 enterprises.ucdavis.laTable.laEntry.laLoadInt.3
  -w :$ARG2$ -c :$ARG3$ -u is 5min - ,is Current - ,is 15min
 
 
  The important thing in this is the
  enterprises.ucdavis.laTable.laEntry.laLoadInt.2 where 2 is the
  second object returned, but since it is first, that is what nagios
  will measure. The -u is formatting so the nagios check looks like this
  on the webpage:
 
  SNMP OK - 68 is 5min - 72 is Current - 63 is 15min
 
  snmp is the way to go. Read up on it, you can do MANY checks - mem,
  procs, disk space, execute remote commands, etc
 Don't forget to CC the list.

 -h

 --
 Hari Sekhon




-- 
Gary Every
Pay it Forward!
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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: RES: Parameters not passed to event handler'sscript

2008-03-05 Thread Bráulio H . Soares
You're correct!
I see fix issue but the outputs in the log are the same... and the Nagios' 
behaviour too.

To test, I'm using a firewall to drop ICMP in a host. When dropping ICPM 
packets, the host appears to be DOWN, and the log generate the message, like 
below. No e-mail is sent. When the firewall stops to drop ICMP the host appears 
UP, and a e-mail is sent, and the parameter are UP, HARD and 1, but any is 
passed to script, only is wrote in the log file.


Best Regards,
 brHS.

 
 

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Marc Powell
Enviada em: quarta-feira, 5 de março de 2008 14:55
Para: nagios-users@lists.sourceforge.net
Assunto: Re: [Nagios-users] RES: Parameters not passed to event handler'sscript



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Bráulio H. Soares
 Sent: Tuesday, March 04, 2008 2:35 PM
 To: Patrick Morris
 Cc: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RES: Parameters not passed to event handler's
 script
 
 To test effects, consider the script like the example available at Nagios
 online docs, with some modifications (see the attachment).
 
 The command with the parameters is this:
 command_line /fakepath/nagios/fake_script $SERVICESTATE$
 $SERVICESTATETYPE$ $SERVICEATTEMPT$

See below...
 
 -Mensagem original-
 De: Patrick Morris [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 4 de março de 2008 17:24
 Para: Bráulio H. Soares
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] Parameters not passed to event handler's
 script
 
 Hi Br?ulio!
 
 On Tue, 04 Mar 2008, Br?ulio H. Soares wrote:
 
  Hi people,
 
  I?ve a Nagios 3rc1 with a very simple configuration and I?m facing a
 problem while using Event Handler.
 
  When the script run, in the logs I can to verify that the parameters is
 not passed to the code. See below:
 
  [1204655932] SERVICE ALERT: host1.fake.int;PING;CRITICAL;SOFT;1;PING
 CRITICAL - Packet loss = 100%
  [1204655962] HOST ALERT: host1.fake.int;DOWN;SOFT;1;(Host Check Timed
 Out)
  [1204655962] HOST EVENT HANDLER:
 host1.fake.int;(null);(null);(null);fakescript

$SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$ macros are not valid for 
host event handlers, only service event handlers.

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

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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



Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.

Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 
bank. Personal opinions, remarks and conclusions are not endorsed by Halógica 
Tecnologia, and must be disconsidered. Thank you.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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. 
::: 

[Nagios-users] RES: RES: RES: Parameters not passed to eventhandler'sscript

2008-03-05 Thread Bráulio H . Soares
I'm using to tests purposes the script attached.
It's only send a e-mail when a change status occurs, based on the parameters 
$SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$.

I'm thinking by the following way:
The conditions to the cases are not being matched.

Thx in advance.

Best Regards,
 brHS.

 
 

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Bráulio H. Soares
Enviada em: quarta-feira, 5 de março de 2008 15:11
Para: Marc Powell; nagios-users@lists.sourceforge.net
Assunto: [Nagios-users] RES: RES: Parameters not passed to eventhandler'sscript

You're correct!
I see fix issue but the outputs in the log are the same... and the Nagios' 
behaviour too.

To test, I'm using a firewall to drop ICMP in a host. When dropping ICPM 
packets, the host appears to be DOWN, and the log generate the message, like 
below. No e-mail is sent. When the firewall stops to drop ICMP the host appears 
UP, and a e-mail is sent, and the parameter are UP, HARD and 1, but any is 
passed to script, only is wrote in the log file.


Best Regards,
 brHS.

 
 

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Marc Powell
Enviada em: quarta-feira, 5 de março de 2008 14:55
Para: nagios-users@lists.sourceforge.net
Assunto: Re: [Nagios-users] RES: Parameters not passed to event handler'sscript



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Bráulio H. Soares
 Sent: Tuesday, March 04, 2008 2:35 PM
 To: Patrick Morris
 Cc: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RES: Parameters not passed to event handler's
 script
 
 To test effects, consider the script like the example available at Nagios
 online docs, with some modifications (see the attachment).
 
 The command with the parameters is this:
 command_line /fakepath/nagios/fake_script $SERVICESTATE$
 $SERVICESTATETYPE$ $SERVICEATTEMPT$

See below...
 
 -Mensagem original-
 De: Patrick Morris [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 4 de março de 2008 17:24
 Para: Bráulio H. Soares
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] Parameters not passed to event handler's
 script
 
 Hi Br?ulio!
 
 On Tue, 04 Mar 2008, Br?ulio H. Soares wrote:
 
  Hi people,
 
  I?ve a Nagios 3rc1 with a very simple configuration and I?m facing a
 problem while using Event Handler.
 
  When the script run, in the logs I can to verify that the parameters is
 not passed to the code. See below:
 
  [1204655932] SERVICE ALERT: host1.fake.int;PING;CRITICAL;SOFT;1;PING
 CRITICAL - Packet loss = 100%
  [1204655962] HOST ALERT: host1.fake.int;DOWN;SOFT;1;(Host Check Timed
 Out)
  [1204655962] HOST EVENT HANDLER:
 host1.fake.int;(null);(null);(null);fakescript

$SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$ macros are not valid for 
host event handlers, only service event handlers.

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

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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



Aviso de Confidencialidade: As informações contidas nesta mensagem de e-mail, 
incluindo quaisquer anexos, são confidenciais, e estão destinadas apenas à 
pessoa ou entidade para a qual foi diretamente endereçada. Se você não é o 
destinatário, nem o empregado ou agente responsável por encaminhar esta 
mensagem ao destinatário, então você está notificado de que não deverá rever, 
retransmitir, imprimir, copiar, usar ou distribuir esta mensagem de e-mail ou 
seus anexos. Se você recebeu este e-mail por engano, por favor, contate o 
remetente imediatamente e apague (delete) esta mensagem de seu computador ou de 
qualquer outro banco de dados. Opiniões pessoais, comentários e conclusões não 
são endossados pela Halógica Tecnologia e devem ser desconsideradas. Obrigado.


Confidentiality Notice: The information contained in this email message, 
including any attachment, is confidential and is intended only for the person 
or entity to which it is addressed. If you are neither the intended recipient 
nor the employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that you may not review, 
retransmit, convert to hard copy, copy, use or distribute this email message or 
any attachments to it. If you have received this email in error, please contact 
the sender immediately and delete this message from any computer or other data 

Re: [Nagios-users] RES: RES: RES: Parameters not passed to eventhandler'sscript

2008-03-05 Thread Joerg Linge
Bráulio H. Soares schrieb:
 I'm using to tests purposes the script attached.
 It's only send a e-mail when a change status occurs, based on the parameters 
 $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$.
 
 I'm thinking by the following way:
 The conditions to the cases are not being matched.

Hi,
please use the complete path to your printf and mail binaray.
$PATH is not set when nagios execute commands

Joerg



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] RES: RES: RES: Parameters not passed toeventhandler'sscript

2008-03-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Bráulio H. Soares
 Sent: Wednesday, March 05, 2008 12:37 PM
 To: Bráulio H. Soares; Marc Powell; nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] RES: RES: RES: Parameters not passed
 toeventhandler'sscript
 
 I'm using to tests purposes the script attached.
 It's only send a e-mail when a change status occurs, based on the
 parameters $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$.
 
 I'm thinking by the following way:
 The conditions to the cases are not being matched.


  The command with the parameters is this:
  command_line /fakepath/nagios/fake_script $SERVICESTATE$
  $SERVICESTATETYPE$ $SERVICEATTEMPT$

$1 in your script should be 'OK', etc, presuming this is a service event 
handler. It will be null otherwise. However, the values $SERVICESTATE$, 
$SERVICESTATETYPE$ and $SERVICEATTEMPT$ will *always* be null within the 
script. Nagios doesn't perform macro substitution within scripts, only on the 
command_line used to call the script. In your script they'd be $1, $2 and $3 
respectively if called as above.

Why don't you provide full information in one concise e-mail. There are too 
many going around with hints and bits in each. If you're trying to get an event 
handler to work --

- a precise description of the scenario you are testing and the results you 
expect.
- Nagios version
- host{} definition
-- host check_command command{} definition
-- host event_handler command{} definition
-- host event handler script
- service{} definition
-- service check_command command{} definition
-- service event_handler command{} definition
-- service event_handler script


--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matthew Macdonald-Wallace wrote:
| Hi All,
|
| Before I start coding my own plugin to do this, does anyone know of a
| plugin that monitors the number of external connection attempts over a
| given period of time for a given service and sends alerts accordingly?
|
| I've noticed on a number of servers that we maintain recently that
| there are unauthorised attempts to connect via SSH/FTP.  These appear
| in the log files about 2 seconds apart and are obviously automated.

They are in fact rooted machines running a bot doing the work. these are
around for years and apparantly people still think that they can put up
unpatched servers on the internet.

But unless you will report the server to th owner of the network or
anything like that I think it will be just adrain of resources without
any benefit.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

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

iD8DBQFHzxjfBvzDRVjxmYERApWLAJ0T+XRDxY0QzwX3Gb9hJms8aCs3GACdF/dY
E0w7IE9UPrEFuW0VXcW1Dlg=
=41iP
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts [OT Response]

2008-03-05 Thread mark . potter
Best Regards,

Mark L. Potter
Systems Engineer
Academy Sports  Outdoors
1800 N. Mason Rd
Katy, Texas 77449
Office: 281-646-5857
Cell: 281-734-6965


[EMAIL PROTECTED] wrote on 03/05/2008 04:04:16 
PM:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Matthew Macdonald-Wallace wrote:
 | Hi All,
 |
 | Before I start coding my own plugin to do this, does anyone know of a
 | plugin that monitors the number of external connection attempts over a
 | given period of time for a given service and sends alerts accordingly?
 |
 | I've noticed on a number of servers that we maintain recently that
 | there are unauthorised attempts to connect via SSH/FTP.  These appear
 | in the log files about 2 seconds apart and are obviously automated.
 
 They are in fact rooted machines running a bot doing the work. these are
 around for years and apparantly people still think that they can put up
 unpatched servers on the internet.
 
 But unless you will report the server to th owner of the network or
 anything like that I think it will be just adrain of resources without
 any benefit.
 
 Hugo.
 
As much as reporting them sounds nice I find only about one in ten reports 
ever has any response and only about one on five of those has anything 
done about it. I use a combination of scripts to simply null route the 
bastards and be done with them.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] dnx version 0.16 release announcement

2008-03-05 Thread John Calcote
Everyone,

I'm pleased to announce the release of version 0.16 of the DNX package.

DNX is a modular extension for the Nagios network monitoring package.

One of the most significant enhancements is that we now set file
system right properly during installation if you're running make
install as root. Not setting file system rights correctly was the
root cause of most of the startup problems with both the client daemon
and the server module.

Another significant addition is that of a more generic init script for
non-SUSE linux distros - make install automatically detects SUSE
platforms and installs the correct version - thanks to Alberto
Villegas for this contribution.

This version of DNX provides the following enhancments:

- Fixed install bugs - mostly related to improper file system rights.
- Debug output is now realistic - not pumping out droves of useless info.
- Added new configure options for specifying log directory.
- Fixed miscellaneous build system problems.
- Fixed rpm build issue - getaddrinfo failing under OBS.
- Fixed doxygen generation issues related to incorrect exclude dir list.
- Added new unit test for dnxClient - tests proper client daemonization.
- Added generic init script for non-SUSE platforms.

Please download DNX version 0.16 and give it a try. I think you'll
find the installation much cleaner since version 0.15.

Thanks and enjoy!
John

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Doubt

2008-03-05 Thread Fabiano Martins
Hi all!!

I have one file server in my company that provide many files to the
costumers. I would like to know if it is possible to make nagios check
file download.

So I would give a URL to nagios and then it would check if the file is
there and if it was realy downloaded.

If anyone have saw that... Please give me a hint.

Regards,

Fabiano

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Integrating MIBs with Nagios

2008-03-05 Thread Mr Manoj
  
Hi Friends,

Can you share your ideas on integrating vendor MIBs with Nagios monitoring 
system.

Thank you,

Manu.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] question about nagios on solaris 10

2008-03-05 Thread Canhua
Actually I do have config nrpe_user and nrpe_group to nagios/nagios,
 and added that monitoring ip to allowed_hosts.



 On Wed, Mar 5, 2008 at 6:35 PM, Phil Costelloe [EMAIL PROTECTED] wrote:
   From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED] On Behalf Of Canhua
 
  
Thank you so much. I get information from /var/adm/message
 It said that
   
||Mar  5 14:58:41 uis1 nrpe[26376]: [ID 306117 daemon.error] Error:
NRPE daemon ||cannot be run as user/group root!
 and
 ||Mar  5 15:35:14 uis1 nrpe[26475]: [ID 381997 daemon.error] Host
10.240.0.54 is ||not allowed to talk to us!
   
 however I still do not know what causes this two kind of errors.
 
   Check your nrpe.cfg file and change the nrpe_user and nrpe_group
items to something other than root. I usually set up a nagios user and
group with the least login and permission rights I can get away with.
Also in nrpe.cfg, add 10.240.0.54 and 127.0.0.1 to allowed_hosts.
Restart nrpe and see what difference that makes.
 
 
 
   Phil
 
   --
   Phil Costelloe
   Technical Consultant
   mailto:[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
   --
 
 
 
   -
   This SF.net email is sponsored by: Microsoft
   Defy all challenges. Microsoft(R) Visual Studio 2008.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   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
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Connection attempts

2008-03-05 Thread Bob Amen
Matthew Macdonald-Wallace wrote:
 Hi All,

 Before I start coding my own plugin to do this, does anyone know of a
 plugin that monitors the number of external connection attempts over a
 given period of time for a given service and sends alerts accordingly?

 I've noticed on a number of servers that we maintain recently that
 there are unauthorised attempts to connect via SSH/FTP.  These appear
 in the log files about 2 seconds apart and are obviously automated. 


Better than checking for this is to block them with iptables. Take a 
look at http://denyhosts.sourceforge.net/ which we use on our outward 
facing servers. It comes with notification via email as a bonus. As 
others have mentioned even reporting this abuse to the owners/ISPs is 
pretty useless.

Bob

-- 
Bob Amen
O'Reilly Media, Inc.
http://www.ora.com/
  http://www.oreilly.com/


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] dnx version 0.16 release announcement

2008-03-05 Thread John Calcote
Sorry for the list spam everyone, but I realized while I was updating
the dnx web site that I had forgotten to include links:

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

Enjoy!
John

On Wed, Mar 5, 2008 at 3:51 PM, John Calcote [EMAIL PROTECTED] wrote:
 Everyone,

  I'm pleased to announce the release of version 0.16 of the DNX package.

  DNX is a modular extension for the Nagios network monitoring package.

  One of the most significant enhancements is that we now set file
  system right properly during installation if you're running make
  install as root. Not setting file system rights correctly was the
  root cause of most of the startup problems with both the client daemon
  and the server module.

  Another significant addition is that of a more generic init script for
  non-SUSE linux distros - make install automatically detects SUSE
  platforms and installs the correct version - thanks to Alberto
  Villegas for this contribution.

  This version of DNX provides the following enhancments:

  - Fixed install bugs - mostly related to improper file system rights.
  - Debug output is now realistic - not pumping out droves of useless info.
  - Added new configure options for specifying log directory.
  - Fixed miscellaneous build system problems.
  - Fixed rpm build issue - getaddrinfo failing under OBS.
  - Fixed doxygen generation issues related to incorrect exclude dir list.
  - Added new unit test for dnxClient - tests proper client daemonization.
  - Added generic init script for non-SUSE platforms.

  Please download DNX version 0.16 and give it a try. I think you'll
  find the installation much cleaner since version 0.15.

  Thanks and enjoy!
  John


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] JMX plugin

2008-03-05 Thread Chris Lee
Hi Ryan 

You mentioned that you modified check_jmx so that it can take authentication 
argument. Do you mind showing us the code for doing that?

Thanks very much,

- Chris Lee (cleegt)

---
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=9677


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] manually remove hard state

2008-03-05 Thread James Lockie
I am trying to test email notifications but the host (invalid IP) is in 
a hard state.
How do I manually remove the hard state so it checks and notifies again?


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] JMX plugin

2008-03-05 Thread Ryan Gravener
Sure, I made a google code project:

http://code.google.com/p/jmxquery/source/browse/trunk/src/main/java/jmxquery/JMXQuery.java

And here is the auth code:

if(username!=null) {
 Map m = new HashMap();
 m.put(JMXConnector.CREDENTIALS,new String[]
{username,password});
 connector = JMXConnectorFactory.connect(jmxUrl,m);
 } else {
 connector = JMXConnectorFactory.connect(jmxUrl);
 }

On 05/03/2008, Chris Lee [EMAIL PROTECTED] wrote:
 Hi Ryan

  You mentioned that you modified check_jmx so that it can take authentication 
 argument. Do you mind showing us the code for doing that?

  Thanks very much,

  - Chris Lee (cleegt)

  ---
  This thread is located in the archive at this URL:
  
 http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=9677



  -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  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



-- 
Ryan Gravener
http://ryangravener.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] ipmi?

2008-03-05 Thread Jonathan Mills
Does anyone have any specific experience using ipmi to check the  
status of disks in a Dell PERC raid?

Yes, yes, I know there are many nrpe plugins to do this using  
omreport, the tool provided by the Dell OpenManage software.  I want  
to know if anyone has done it without having OpenManage installed at  
all (I'm not a fan of it).

Any advice would be much appreciated!  Cheers!

Jonathan

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] About False notifications..

2008-03-05 Thread Harshal Yadwadkar
Hello,

I am having the nagios installed on the server for monitoring the
different services on the differenet hosts.But the problem i am facing is
that nagios giving me a notification for http service for one of the host
and the fact is that the port 80 is connecting perfectly fine from any
where and from the server itself where the Nagios has been installed.

It's giving me the status info as CRITICAL - Socket timeout after 10
seconds

Can any body pls help me out to stop this false notifications.

Regards,
Harshal.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] About False notifications..

2008-03-05 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harshal Yadwadkar wrote:
| Hello,
|
| I am having the nagios installed on the server for monitoring the
| different services on the differenet hosts.But the problem i am facing is
| that nagios giving me a notification for http service for one of the host
| and the fact is that the port 80 is connecting perfectly fine from any
| where and from the server itself where the Nagios has been installed.
|
| It's giving me the status info as CRITICAL - Socket timeout after 10
| seconds
|
| Can any body pls help me out to stop this false notifications.

First off. There is no false notification. Just an issue with the way
you check your website.

I suggest you check the webserver logs, use tcpdump to see what happens
in the connection, ...

Think of the way you check your website with Nagios and verify each and
every step.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

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

iD8DBQFHz43EBvzDRVjxmYERAsjZAJ4+1lx2wVAsp9/20vAOhk/17rK3TwCgq0I7
Qbl81FmOMH7ABOYv5IqOUow=
=8b0E
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Escalations and notification_intervall

2008-03-05 Thread Sebastian Ries
Hi

 I am trying to archieve the following goal:
 
 A service notification should be sent out after following time periods:
 
 1.Notification:   directly
 2.Notification:   after 1 hour
 3.Notification:   after 2 hours
 4.Notification:   after 4 hours
 5.Notification:   after 8 hours
 and every 24 hours from that time on
 
 I tried following configuration but I got 6 Norifications till now (one
 every hour)

Just for those who are interested in how to archive this:

My Configuration works fine!

I just didn't know, that someone else restarted the Nagios-Server while
I was running the test :-/
So Nagios startet with notification 1 again after the first 3 were sent
out...

Regards
Sebastian Ries

-- 

DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36   Fax: +49-711-849910-936
WEB: http://www.dtnet.de/ email: [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] include notification number in subject

2008-03-05 Thread Sebastian Ries
Hi

Regarding to my post on Topic Escalations and notification_intervall

Is it possible to include the Notification number in the Subject of a
notification email?

I know that I just can edit the command definition
define command{
command_namenotify-by-email
command_line/usr/bin/printf %b * Nagios  *\n
\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$ | /usr/bin/mail -s **
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
** $CONTACTEMAIL$
}

But I do not know how the variable is called - or even if it exists...

Is there a list of available variables anywhere in the documentation?
I did not find it...

Regards
Sebastian Ries

-- 

DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36   Fax: +49-711-849910-936
WEB: http://www.dtnet.de/ email: [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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