Re: [Nagios-users-br] Monitorar processos

2009-03-13 Thread Daniel Barcelini
Cleiton,

O SNMP gerá graficos de consumo de proc, mem. la, interfaces de redes.

E o cacti eh um software que vai consultar nos equipamentos esses daddos
atravez do rrdtools, mas isso são programas a parte, aconselharia vc a dar uma
googleada nesse assunto.
Nunca mexi com o centreon entao nao sei se ele tb tem como fazer essa leitura
snmp nos devices, mas se tiver é só habilitar o snmp nos seus ativos da rede.

abraços


On Thu, 12 Mar 2009 17:17:35 -0300, Cleiton Souza wrote
 Rafael, você tem este plugin que faz isto pronto? pode me enviar??
 
 Valeu!
 
 Cleiton
 
 2009/3/12 Rafael Turazzi Moreira rafael.tura...@gmail.com
 
  Olá Cleiton,
 
  No meu caso eu utilizo o protocolo SNMP para monitorar o que eu quiser.
  Depois que o SNMP estiver rodando, é só integrar o Nagios e o Cacti.
  Tem um livro muito bom que mostra detalhadamente como fazer (Ambiente de
  Rede Monitorado com Nagios e Cacti).
 
  Qualquer coisa chama.
 
  Abraços,
 
 
  Cleiton Souza escreveu:
   Olá Alex, muito obrigado pela ajuda, não conhecia este plugin, realmente
   muito interessante.
  
   Mas eu gostaria ter realmente a porcentagem de utilização da CPU pelo
   processo, quero com esta informação fazer utilizando o RRD um grafico de
   utilização de CPU pelo processo.
  
   Verifiquei o manual deste plugin (
   http://nagiosplugins.org/man/check_procs) mas realmente ele nao
   retorna o percentual utilizado.
  
   Será que alguém mais tem mais alguma sugestao??
  
   Cleiton Souza
  
  
   On Thu, Mar 12, 2009 at 10:49, Alex Montoanelli
   alexmontoane...@gmail.comwrote:
  
  
   Bom dia Cleiton
  
   O plugin check_procs, deve resolver seu problema.
  
   ./check_procs -w 10 -c 20 --metric=CPU -a /usr/sbin/apache
  
  
  
   Abraços
  
   On Thu, Mar 12, 2009 at 10:18 AM, Cleiton Souza 
  cleiton.bra...@gmail.com
  
   wrote:
  
   Olá pessoal, bom dia!
  
   Seguinte, estou usando o plugin check_centreon_snmp_process_detailed
  para
   monitorar processos no windows, mas este plugin só mostra se o processo
   esta
   sendo executado e quantidade de memoria usada pelo processo.
  
   Alguem conhece algum plugin que monitore o consumo de CPU do processo??
  
   Obrigado!
  
   Cleiton Souza
  
  
  
  
  --
  
   Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
   powering Web 2.0 with engaging, cross-platform capabilities. Quickly
  and
   easily build your RIAs with Flex Builder, the Eclipse(TM)based
  
   development
  
   software that enables intelligent coding and step-through debugging.
   Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
   --
   Nagios-users-br@lists.sourceforge.net mailing list
   https://lists.sourceforge.net/lists/listinfo/nagios-users-br
   Wiki: http://nagios-br.sf.net/wiki
  
  
  
  --
   Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
   powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
   easily build your RIAs with Flex Builder, the Eclipse(TM)based
  development
   software that enables intelligent coding and step-through debugging.
   Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
   --
   Nagios-users-br@lists.sourceforge.net mailing list
   https://lists.sourceforge.net/lists/listinfo/nagios-users-br
   Wiki: http://nagios-br.sf.net/wiki
  
  
  
  --
   Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
   powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
   easily build your RIAs with Flex Builder, the Eclipse(TM)based
  development
   software that enables intelligent coding and step-through debugging.
   Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
  
 
 
 
  --
  Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
  powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
  easily build your RIAs with Flex Builder, the Eclipse(TM)based development
  software that enables intelligent coding and step-through debugging.
  Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
  --
  Nagios-users-br@lists.sourceforge.net mailing list
  https://lists.sourceforge.net/lists/listinfo/nagios-users-br
  Wiki: http://nagios-br.sf.net/wiki
 
 --
 Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
 powering Web 2.0 with engaging, cross-platform capabilities. Quickly 
 and easily build your RIAs with Flex Builder, the Eclipse(TM)based development
 software that enables intelligent coding and step-through debugging.
 Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
 -- 
 

Re: [Nagios-users-br] Monitorar processos

2009-03-13 Thread Cleiton Souza
Fala Daniel, tudo beleza?

Entao colega, o centreon é um front-end do nagios, na realidade todo o
trabalho de fazer o check inclusive via snmp quem faz é o nagios e depois o
centreon só le os dados do banco e mostra bonitinho na tela :)
O centreon também monta os graficos via RRDTool, e já estou conseguindo
monitorar meus servidores e equipamentos de rede tranquilamente.

O problema é que em uma analise de um servidor junto com meu chefe, vimos
que a CPU deste servidor em periodos ciclicos da uns picos de uso chegando a
95% de utilização. Tenho 7 serviços neste servidor e monitoro todos via
check_centreon_snmp_process_detailed, este plugin me tras se o processo esta
rodando e quanto de memoria esta utilizando, e o centreon monta até o
grafico de utilização de memoria por cada processo, mas além da utilização
da memoria gostaria de ter um grafico de utilização de CPU por cada
processo, dessa for iria saber qual processo esta provocando estes picos de
utilização de CPU.

Galera do grupo, desculpe pela insistencia, já procurei bastante no google,
nagios exchange, nagios wiki, nagios plugins, mas até agora nao consegui
achar uma solução.

Agradeço se alguém poder ajudar.

Obrigado!

Cleiton



2009/3/12 Daniel Barcelini dbarcel...@cirp.usp.br

 Cleiton,

 O SNMP gerá graficos de consumo de proc, mem. la, interfaces de redes.

 E o cacti eh um software que vai consultar nos equipamentos esses daddos
 atravez do rrdtools, mas isso são programas a parte, aconselharia vc a dar
 uma
 googleada nesse assunto.
 Nunca mexi com o centreon entao nao sei se ele tb tem como fazer essa
 leitura
 snmp nos devices, mas se tiver é só habilitar o snmp nos seus ativos da
 rede.

 abraços


 On Thu, 12 Mar 2009 17:17:35 -0300, Cleiton Souza wrote
  Rafael, você tem este plugin que faz isto pronto? pode me enviar??
 
  Valeu!
 
  Cleiton
 
  2009/3/12 Rafael Turazzi Moreira rafael.tura...@gmail.com
 
   Olá Cleiton,
  
   No meu caso eu utilizo o protocolo SNMP para monitorar o que eu quiser.
   Depois que o SNMP estiver rodando, é só integrar o Nagios e o Cacti.
   Tem um livro muito bom que mostra detalhadamente como fazer (Ambiente
 de
   Rede Monitorado com Nagios e Cacti).
  
   Qualquer coisa chama.
  
   Abraços,
  
  
   Cleiton Souza escreveu:
Olá Alex, muito obrigado pela ajuda, não conhecia este plugin,
 realmente
muito interessante.
   
Mas eu gostaria ter realmente a porcentagem de utilização da CPU pelo
processo, quero com esta informação fazer utilizando o RRD um grafico
 de
utilização de CPU pelo processo.
   
Verifiquei o manual deste plugin (
http://nagiosplugins.org/man/check_procs) mas realmente ele nao
retorna o percentual utilizado.
   
Será que alguém mais tem mais alguma sugestao??
   
Cleiton Souza
   
   
On Thu, Mar 12, 2009 at 10:49, Alex Montoanelli
alexmontoane...@gmail.comwrote:
   
   
Bom dia Cleiton
   
O plugin check_procs, deve resolver seu problema.
   
./check_procs -w 10 -c 20 --metric=CPU -a /usr/sbin/apache
   
   
   
Abraços
   
On Thu, Mar 12, 2009 at 10:18 AM, Cleiton Souza 
   cleiton.bra...@gmail.com
   
wrote:
   
Olá pessoal, bom dia!
   
Seguinte, estou usando o plugin
 check_centreon_snmp_process_detailed
   para
monitorar processos no windows, mas este plugin só mostra se o
 processo
esta
sendo executado e quantidade de memoria usada pelo processo.
   
Alguem conhece algum plugin que monitore o consumo de CPU do
 processo??
   
Obrigado!
   
Cleiton Souza
   
   
   
   
  
 --
   
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
 are
powering Web 2.0 with engaging, cross-platform capabilities.
 Quickly
   and
easily build your RIAs with Flex Builder, the Eclipse(TM)based
   
development
   
software that enables intelligent coding and step-through
 debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki
   
   
   
  
 --
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
 are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly
 and
easily build your RIAs with Flex Builder, the Eclipse(TM)based
   development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki
   
   
   
  
 --
Apps built with the Adobe(R) Flex(R) framework 

[Nagios-users-br] duvida nagios

2009-03-13 Thread Benvinda Barbosa
Olá,
Alguém sabe me dizer, P.F, se é passível criar um serviço que diz quais 
os processos que estão a correr num determinado momento? Pediram para 
ver isso, já fui no ficheiro de configuração já defeni um novo serviço:

define service{
 use local-service ; Name of 
service template to use
 host_name   saf...@meteo.pt 
mailto:saf...@meteo.pt
 service_description Processes ON
 check_command   check_processes_on!250!400!RSZDT
 }

E no ficheiro command.cgf defeni o comando :
define command{
   command_namecheck_processes_on
   command_line$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
   }

mas não acontece nada. Na pagina do nagios não aparece na lista dos 
serviços, tais como o PING, HTTP, SSH, etc.

E já agora mais uma dúvida - adicionei uns hosts e os respectivos 
serviços, mas não me aparecem quando eu clico no Service Detail. Só 
aparecem no Host Detail
Cumprimentos, Benvinda


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Monitorar processos

2009-03-13 Thread Daniel Barcelini
Bom kra entendi o problema é achar um plugin do nagios que vai te gerar um
grafico de consumo da CPU por processo, acho que isso vai ser pancadão kra ou
seja mt dificil consumo da cpu vc consegue gerar via snmp mesmo mas por
processo acho que vc vai ter que dar uma pesquisada se o snmp tem suporte a 
isso.

abraços


On Fri, 13 Mar 2009 09:29:12 -0300, Cleiton Souza wrote
 Fala Daniel, tudo beleza?
 
 Entao colega, o centreon é um front-end do nagios, na realidade todo 
 o trabalho de fazer o check inclusive via snmp quem faz é o nagios e 
 depois o centreon só le os dados do banco e mostra bonitinho na tela 
 :) O centreon também monta os graficos via RRDTool, e já estou conseguindo
 monitorar meus servidores e equipamentos de rede tranquilamente.
 
 O problema é que em uma analise de um servidor junto com meu chefe, vimos
 que a CPU deste servidor em periodos ciclicos da uns picos de uso 
 chegando a 95% de utilização. Tenho 7 serviços neste servidor e 
 monitoro todos via check_centreon_snmp_process_detailed, este plugin 
 me tras se o processo esta rodando e quanto de memoria esta 
 utilizando, e o centreon monta até o grafico de utilização de 
 memoria por cada processo, mas além da utilização da memoria 
 gostaria de ter um grafico de utilização de CPU por cada processo, 
 dessa for iria saber qual processo esta provocando estes picos de 
 utilização de CPU.
 
 Galera do grupo, desculpe pela insistencia, já procurei bastante no 
 google, nagios exchange, nagios wiki, nagios plugins, mas até agora 
 nao consegui achar uma solução.
 
 Agradeço se alguém poder ajudar.
 
 Obrigado!
 
 Cleiton
 
 2009/3/12 Daniel Barcelini dbarcel...@cirp.usp.br
 
  Cleiton,
 
  O SNMP gerá graficos de consumo de proc, mem. la, interfaces de redes.
 
  E o cacti eh um software que vai consultar nos equipamentos esses daddos
  atravez do rrdtools, mas isso são programas a parte, aconselharia vc a dar
  uma
  googleada nesse assunto.
  Nunca mexi com o centreon entao nao sei se ele tb tem como fazer essa
  leitura
  snmp nos devices, mas se tiver é só habilitar o snmp nos seus ativos da
  rede.
 
  abraços
 
 
  On Thu, 12 Mar 2009 17:17:35 -0300, Cleiton Souza wrote
   Rafael, você tem este plugin que faz isto pronto? pode me enviar??
  
   Valeu!
  
   Cleiton
  
   2009/3/12 Rafael Turazzi Moreira rafael.tura...@gmail.com
  
Olá Cleiton,
   
No meu caso eu utilizo o protocolo SNMP para monitorar o que eu quiser.
Depois que o SNMP estiver rodando, é só integrar o Nagios e o Cacti.
Tem um livro muito bom que mostra detalhadamente como fazer (Ambiente
  de
Rede Monitorado com Nagios e Cacti).
   
Qualquer coisa chama.
   
Abraços,
   
   
Cleiton Souza escreveu:
 Olá Alex, muito obrigado pela ajuda, não conhecia este plugin,
  realmente
 muito interessante.

 Mas eu gostaria ter realmente a porcentagem de utilização da CPU pelo
 processo, quero com esta informação fazer utilizando o RRD um grafico
  de
 utilização de CPU pelo processo.

 Verifiquei o manual deste plugin (
 http://nagiosplugins.org/man/check_procs) mas realmente ele nao
 retorna o percentual utilizado.

 Será que alguém mais tem mais alguma sugestao??

 Cleiton Souza


 On Thu, Mar 12, 2009 at 10:49, Alex Montoanelli
 alexmontoane...@gmail.comwrote:


 Bom dia Cleiton

 O plugin check_procs, deve resolver seu problema.

 ./check_procs -w 10 -c 20 --metric=CPU -a /usr/sbin/apache



 Abraços

 On Thu, Mar 12, 2009 at 10:18 AM, Cleiton Souza 
cleiton.bra...@gmail.com

 wrote:

 Olá pessoal, bom dia!

 Seguinte, estou usando o plugin
  check_centreon_snmp_process_detailed
para
 monitorar processos no windows, mas este plugin só mostra se o
  processo
 esta
 sendo executado e quantidade de memoria usada pelo processo.

 Alguem conhece algum plugin que monitore o consumo de CPU do
  processo??

 Obrigado!

 Cleiton Souza




   
  --

 Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
  are
 powering Web 2.0 with engaging, cross-platform capabilities.
  Quickly
and
 easily build your RIAs with Flex Builder, the Eclipse(TM)based

 development

 software that enables intelligent coding and step-through
  debugging.
 Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki



   
  --
 Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
  are
 powering Web 2.0 with engaging, cross-platform capabilities. Quickly
  

Re: [Nagios-users-br] Monitorar processos

2009-03-13 Thread Cleiton Souza
Beleza Daniel, obrigado. Vou pesquisar mais um pouco.

Cleiton

2009/3/13 Daniel Barcelini dbarcel...@cirp.usp.br

 Bom kra entendi o problema é achar um plugin do nagios que vai te gerar um
 grafico de consumo da CPU por processo, acho que isso vai ser pancadão kra
 ou
 seja mt dificil consumo da cpu vc consegue gerar via snmp mesmo mas por
 processo acho que vc vai ter que dar uma pesquisada se o snmp tem suporte a
 isso.

 abraços


 On Fri, 13 Mar 2009 09:29:12 -0300, Cleiton Souza wrote
  Fala Daniel, tudo beleza?
 
  Entao colega, o centreon é um front-end do nagios, na realidade todo
  o trabalho de fazer o check inclusive via snmp quem faz é o nagios e
  depois o centreon só le os dados do banco e mostra bonitinho na tela
  :) O centreon também monta os graficos via RRDTool, e já estou
 conseguindo
  monitorar meus servidores e equipamentos de rede tranquilamente.
 
  O problema é que em uma analise de um servidor junto com meu chefe, vimos
  que a CPU deste servidor em periodos ciclicos da uns picos de uso
  chegando a 95% de utilização. Tenho 7 serviços neste servidor e
  monitoro todos via check_centreon_snmp_process_detailed, este plugin
  me tras se o processo esta rodando e quanto de memoria esta
  utilizando, e o centreon monta até o grafico de utilização de
  memoria por cada processo, mas além da utilização da memoria
  gostaria de ter um grafico de utilização de CPU por cada processo,
  dessa for iria saber qual processo esta provocando estes picos de
  utilização de CPU.
 
  Galera do grupo, desculpe pela insistencia, já procurei bastante no
  google, nagios exchange, nagios wiki, nagios plugins, mas até agora
  nao consegui achar uma solução.
 
  Agradeço se alguém poder ajudar.
 
  Obrigado!
 
  Cleiton
 
  2009/3/12 Daniel Barcelini dbarcel...@cirp.usp.br
 
   Cleiton,
  
   O SNMP gerá graficos de consumo de proc, mem. la, interfaces de redes.
  
   E o cacti eh um software que vai consultar nos equipamentos esses
 daddos
   atravez do rrdtools, mas isso são programas a parte, aconselharia vc a
 dar
   uma
   googleada nesse assunto.
   Nunca mexi com o centreon entao nao sei se ele tb tem como fazer essa
   leitura
   snmp nos devices, mas se tiver é só habilitar o snmp nos seus ativos da
   rede.
  
   abraços
  
  
   On Thu, 12 Mar 2009 17:17:35 -0300, Cleiton Souza wrote
Rafael, você tem este plugin que faz isto pronto? pode me enviar??
   
Valeu!
   
Cleiton
   
2009/3/12 Rafael Turazzi Moreira rafael.tura...@gmail.com
   
 Olá Cleiton,

 No meu caso eu utilizo o protocolo SNMP para monitorar o que eu
 quiser.
 Depois que o SNMP estiver rodando, é só integrar o Nagios e o
 Cacti.
 Tem um livro muito bom que mostra detalhadamente como fazer
 (Ambiente
   de
 Rede Monitorado com Nagios e Cacti).

 Qualquer coisa chama.

 Abraços,


 Cleiton Souza escreveu:
  Olá Alex, muito obrigado pela ajuda, não conhecia este plugin,
   realmente
  muito interessante.
 
  Mas eu gostaria ter realmente a porcentagem de utilização da CPU
 pelo
  processo, quero com esta informação fazer utilizando o RRD um
 grafico
   de
  utilização de CPU pelo processo.
 
  Verifiquei o manual deste plugin (
  http://nagiosplugins.org/man/check_procs) mas realmente ele nao
  retorna o percentual utilizado.
 
  Será que alguém mais tem mais alguma sugestao??
 
  Cleiton Souza
 
 
  On Thu, Mar 12, 2009 at 10:49, Alex Montoanelli
  alexmontoane...@gmail.comwrote:
 
 
  Bom dia Cleiton
 
  O plugin check_procs, deve resolver seu problema.
 
  ./check_procs -w 10 -c 20 --metric=CPU -a /usr/sbin/apache
 
 
 
  Abraços
 
  On Thu, Mar 12, 2009 at 10:18 AM, Cleiton Souza 
 cleiton.bra...@gmail.com
 
  wrote:
 
  Olá pessoal, bom dia!
 
  Seguinte, estou usando o plugin
   check_centreon_snmp_process_detailed
 para
  monitorar processos no windows, mas este plugin só mostra se o
   processo
  esta
  sendo executado e quantidade de memoria usada pelo processo.
 
  Alguem conhece algum plugin que monitore o consumo de CPU do
   processo??
 
  Obrigado!
 
  Cleiton Souza
 
 
 
 

  
 --
 
  Apps built with the Adobe(R) Flex(R) framework and Flex
 Builder(TM)
   are
  powering Web 2.0 with engaging, cross-platform capabilities.
   Quickly
 and
  easily build your RIAs with Flex Builder, the Eclipse(TM)based
 
  development
 
  software that enables intelligent coding and step-through
   debugging.
  Download the free 60 day trial.
 http://p.sf.net/sfu/www-adobe-com
  --
  Nagios-users-br@lists.sourceforge.net mailing list
  https://lists.sourceforge.net/lists/listinfo/nagios-users-br
  Wiki: 

Re: [Nagios-users] WMI's

2009-03-13 Thread Andreas Ericsson
Martyn wrote:
 Thanks for the reply made me laugh did this line.
 
 You're holding a hammer and want someone to explain to you how to use it as
 a car  am going to use that myself one day.
 
 However I did get a reply saying
 
 You can make your very own checks using whatever credentials you like
 (and access any data you like).
 In other words, you don't have to use generic checks shipped with nagios
 
 This kind of implied that it can be done with Nagios.
 
 Apologies if I misunderstood it
 

It can be done with Nagios (which is just a scheduler), but not by using
check_nt. It can be done using check_nt to connect to an NCNet instance
(or perhaps NCNet can be compiled using Mono or some such, in which case
you should be able to tweak it enough to make it usable from command-line
on any unixy system where you can install mono).

In this case check_nt is the hammer. Nagios is just the carpenter, and
it can use hammers, cars, TV's, screwdrivers, beer and carpet slippers
just fine ;-)

I should look into NCNet. If it's written in C#, it might be usable with
mono and then we could get a Linux binary running checks directly against
windows hosts, with actual credentials being used for authentication.

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

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

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] WMI's

2009-03-13 Thread Mark Weaver


Andreas Ericsson wrote:
 Martyn wrote:
   
 How do I add the windows credentials.

 check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process

 If I run the above it will give me a refused connection, where in the above
 line would I add the username and password of the Windows box I want to
 connect to?

 

 You're holding a hammer and want someone to explain to you how to use it
 as a car. It can't be done with check_nt, but there are other programs out
 there that can ask questions over WMI, and you already know of some of
 them. Google should hold plenty of other resources if installing nsclient,
 NCNet or nsclient++ is not an option for you, although some programming
 may be necessary on your part.

   
*warning: post contains rant*

Andreas, you're making my head hurt! ;) I've been using (learning) 
Nagios now for about a week now and haven't encountered anything with 
such a vertical learning curve like this since I started learning Linux 
in 1996. Climbing this learning curve causes massive frustration, but 
once success happens there's a huge release of satisfaction and 
self-accomplishment. I personally am enjoying the trip and experience.

Yesterday, after feeling comfortable getting Nagios to talk to servers 
on my local network for checking the obvious services running on them - 
linux and windows servers - like IIS, Apache, SMTP and the like I 
started working on getting my workstation to talk to the Nagios server 
via the NSClient++ package. This is going to be yet another challenge 
and one I fully accept.

Let me tell you, for me the harder something is the more tenacious I 
become and refuse to let go until I master it. That being said the 
documentation which comes with Nagios seriously sucks until you begin to 
get on to the Nagios way of doing things. Over the last week I have 
googled more than I have in the last 5 years getting my test-bed nagios 
system going. I have literally googled my brains out. At the moment I'm 
somewhat at a loss to know whether I've worked harder googling for 
information or actually getting to know the Nagios way and making things 
work! I'm leaning towards Googling...

So for you to curtly suggest that all can easily be found googling as an 
answer to this question is, well... just too easy. Either you don't 
actually know or you don't feel like telling. I totally understand 
though because I suspect you yourself have worked very hard getting to 
know and work with Nagios and have put quite a bit of time into the 
gaining the experience you now possess, but throwing us noobs a bone 
isn't really asking too much is it?

Bone == link to information
slap in one's face == go google it...

Yeah... we can find the stuff we need by googling for it, but wouldn't 
it be nice if the documentation were a lot more robust and contained in 
a wiki somewhere? I have yet to find one for Nagios. In fact most of the 
sites I've found for Nagios waste my time. Which is pretty much what 
suggesting someone google for something does. They're hoping for, at the 
very least a kick in the ass in the right direction but get sent back to 
the place of frustration - Google! The trick to googling is knowing the 
right question to ask and after you've been spending hours trying to 
suss out something that is vexing one's soul that becomes an exercise in 
futility. (I'm ranting, but I don't mean it in an accusatory tone.)

As I said, I do understand that you and others have invested a great 
deal of time and effort into learning Nagios and how to work it, but if 
you don't want to share whats locked away in your brains then why even 
respond to the post?

If I've offended I do apologize, but as an experience network admin and 
a Nagios noob I know the value of my time and yours and others searching 
for the information that would hopfully unlock the doors currently 
barring them from reaching the next milestone or goal. I appreciated 
your metaphore of a hammer and a car; the fact that it can't be done 
with check_nt was informative, but then you lost me when you said just 
google it.

Google What for pete's sake? (after a long day of wrestling with the 
beast that could mean google for anything ranging from the best recipe 
for blueberry pancakes to the ingredient to a fusion device!)

Frankly, if I knew more about Nagios and the intimacies thereof, I would 
gladly host a wiki for it on one my web servers, but alas I'm a noob. my 
one burning question: Why the hell isn't there a wiki for Nagios, and if 
there is where the bloody hell is it?

Thank you for you kind attention and for putting up with this petulant 
Nagios Newbie.

Mark

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and 

Re: [Nagios-users] WMI's

2009-03-13 Thread Jim Avery
The learning curve is indeed steep at first.  I found the book
Nagios by Wolfgang Barth invaluable in flattening that curve.
http://nostarch.com/nagios_2e.htm  It's available as a .pdf download
or in traditional book form.

I'm not sure the book would answer your original question in this
thread though, and nor can I!

I hope this helps,

Jim

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] WMI's

2009-03-13 Thread Marc Powell

On Mar 13, 2009, at 7:36 AM, Mark Weaver wrote:

Just a couple of $.02us, please read in courteous, matter-of-fact tone  
--

 Andreas, you're making my head hurt! ;) I've been using (learning)
 Nagios now for about a week now and haven't encountered anything with
 such a vertical learning curve like this since I started learning  
 Linux
 in 1996.

Heh, the learning curve is not nearly so steep as say Slackware back  
in those days... Nagios is a lot like linux though; it's just a base  
platform. How you implement it, what you monitor with it and how you  
do so is going to greatly depend on what you want to get out of it and  
your environment. While there is a lot of commonality between users,  
there's also a lot of difference and flexibility to monitor things any  
way you like. If it can be run from the command line, it can be turned  
into a plugin generally.

 That being said the documentation which comes with Nagios seriously  
 sucks until you begin to
 get on to the Nagios way of doing things.

... one of the reasons I recommend reading the documentation, then the  
sample config files, then the documentation again. IMHO, the  
documentation is actually very good and covers most common concepts  
and scenarios, either very specifically or generally. ~90% of the time  
I respond to a question, I'm looking at the documentation that answers  
it.


 So for you to curtly suggest that all can easily be found googling  
 as an
 answer to this question is, well... just too easy. Either you don't
 actually know or you don't feel like telling.

I'm quite certain he knows, or has heard of people doing it, and  
believes that the answers you seek are easily found. I believe that  
you might not yet know the questions to ask google though because you  
don't yet understand the concepts.

 I totally understand
 though because I suspect you yourself have worked very hard getting to
 know and work with Nagios and have put quite a bit of time into the
 gaining the experience you now possess, but throwing us noobs a bone
 isn't really asking too much is it?

 Bone == link to information
 slap in one's face == go google it...

I don't think that expecting you to figure out that you should google  
for 'nagios wmi' is too much to expect, since that was your goal and  
what he pointed you to do. In your question, you made an assumption  
about a tool (check_nt) that was incorrect. The documentation for that  
tool would have told you it was incorrect by omission but he pointed  
it out and told you there were other tools available that might do  
what you need. There are *many* nagios plugins available created by  
many people. It's not possible to know them all or where they are  
located, hence the google recommendation. He can not be expected to do  
that kind of research for you in the same way that a kernel developer  
can't be expected to tell you which web server to install and how to  
use it.

 Yeah... we can find the stuff we need by googling for it, but wouldn't
 it be nice if the documentation were a lot more robust and contained  
 in
 a wiki somewhere? I have yet to find one for Nagios.

There's one linked directly from the Documentation page at 
http://www.nagios.org 
. http://www.nagiosexchange.org is another, somewhat different but  
well known community site.


 As I said, I do understand that you and others have invested a great
 deal of time and effort into learning Nagios and how to work it, but  
 if
 you don't want to share whats locked away in your brains then why even
 respond to the post?

Because posters and responders have unknown levels of knowledge? He  
provided information based on an expectation that you have a higher  
level of knowledge. That information would have been quite sufficient  
for many people. You have two possible paths in a case like that, you  
either try to figure out what he means or you ignore it and wait for  
someone else to answer at a level you understand. If you get no  
further answers that either indicates most people think it's  
sufficient, you didn't ask the right question or you didn't give the  
right information. If you're fortunate, you may even have people tell  
you that. He answered in a manner that is comfortable to him and meets  
his expectations of the questioner. We're all self-taught nagios  
users; if we can do it, so can you.

 Google What for pete's sake?

generally, 'nagios check whatever' will provide resources for  
checking most anything someone's tried to monitor. You'll either find  
plugins, web pages or list archives.

 Thank you for you kind attention and for putting up with this petulant
 Nagios Newbie.

Heh, you'll get there ;)

--
Marc


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based 

[Nagios-users] Monitoring root su.

2009-03-13 Thread Jussi Sallinen
Hi! 

My first post to Nagios list. 

Has someone done email/sms monitoring service to nagios for monitoring use of 
su? 
I would like to certain contact or contact group to be notified when someone 
su's or logins as root
to the system - any recommendations for the best way to do such monitoring?

-- 
-Jussi Sallinen, +358 40 700 7600
  ju...@sallinen.name
 http://www.sallinen.name


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring root su.

2009-03-13 Thread Hari Sekhon
Jussi Sallinen wrote:
 Has someone done email/sms monitoring service to nagios for monitoring use of 
 su? 
 I would like to certain contact or contact group to be notified when someone 
 su's or logins as root
 to the system - any recommendations for the best way to do such monitoring?
Nagios is not really the right tool for this job, look into logservers 
and automated alerting from syslog, this is how I do, much much better. 
Usually you would code any notification method you want, email or sms 
doesn't matter at that point, you can do what you want once you have the 
method of detection.

Google log analysis.

-h

-- 
Hari Sekhon
Always open to interesting opportunities
http://www.linkedin.com/in/harisekhon


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] WMI's

2009-03-13 Thread Andreas Ericsson
Mark, thanks for keeping the tone very much to the point and
trying hard yourself. Very few people do this, so the bones we throw
on this list are generally on the assumption that people haven't.

Mark Weaver wrote:
 
 Andreas Ericsson wrote:
 Martyn wrote:
   
 How do I add the windows credentials.

 check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process

 If I run the above it will give me a refused connection, where in the above
 line would I add the username and password of the Windows box I want to
 connect to?

 
 You're holding a hammer and want someone to explain to you how to use it
 as a car. It can't be done with check_nt, but there are other programs out
 there that can ask questions over WMI, and you already know of some of
 them. Google should hold plenty of other resources if installing nsclient,
 NCNet or nsclient++ is not an option for you, although some programming
 may be necessary on your part.


A clarification will be necessary here, I feel. You mentioned a few apps
in your original post which utilizes WMI to access windows boxes, so I
obviously figured you had researched them already.

The hammer != car analogy is two-fold actually. One meaning is that you
were using the wrong tool. The other is that you might be thinking along
wrong lines entirely. I'm willing to bet that 99% of all nagios installations
in the world monitor Windows servers either using SNMP or one of the 3 easily
available clients designed specifically for that purpose (nsclient, nsclient++
and NC_Net). check_nt *can* talk to either of those clients, but they do not
use WMI while doing so.

The exception is NC_Net which can, if I understand how it works correctly (I
may not; I haven't looked at its source/README's at all, since our own way
of doing it is sufficient), query other windows servers using the dotnet
framework. However, the chain then becomes

nagios - check_nt - NC_Net on one windows server - Other windows server

In other words, you need to use NC_Net on one server as a sort of proxy,
and that seems to fall slightly outside what you wanted.

However, the excellent Mono framework runs just fine under Linux, and
since NC_Net is written in C# (I checked since I last posted about it),
a moderately skilled programmer shouldn't have too much difficulty
adapting NC_Net to cut out the proxy server and send queries directly
to the targeted Windows server from which one actually wants information.

Had you responded Right, I'm not a programmer so if you could hint at
what's required for this?, I'd have known you're not. The post above
was a kind of bait for both you and Tony Montibello (NC_Net author), as
I believe a mono-based plugin to check windows systems would be totally
awesome. I have no need for it though, so I won't be working on it.


   
 *warning: post contains rant*
 
 Andreas, you're making my head hurt! ;) I've been using (learning) 
 Nagios now for about a week now and haven't encountered anything with 
 such a vertical learning curve like this since I started learning Linux 
 in 1996. Climbing this learning curve causes massive frustration, but 
 once success happens there's a huge release of satisfaction and 
 self-accomplishment. I personally am enjoying the trip and experience.
 
 Yesterday, after feeling comfortable getting Nagios to talk to servers 
 on my local network for checking the obvious services running on them - 
 linux and windows servers - like IIS, Apache, SMTP and the like I 
 started working on getting my workstation to talk to the Nagios server 
 via the NSClient++ package. This is going to be yet another challenge 
 and one I fully accept.
 
 Let me tell you, for me the harder something is the more tenacious I 
 become and refuse to let go until I master it. That being said the 
 documentation which comes with Nagios seriously sucks until you begin to 
 get on to the Nagios way of doing things. Over the last week I have 
 googled more than I have in the last 5 years getting my test-bed nagios 
 system going. I have literally googled my brains out. At the moment I'm 
 somewhat at a loss to know whether I've worked harder googling for 
 information or actually getting to know the Nagios way and making things 
 work! I'm leaning towards Googling...
 
 So for you to curtly suggest that all can easily be found googling as an 
 answer to this question is, well... just too easy. Either you don't 
 actually know or you don't feel like telling. I totally understand 
 though because I suspect you yourself have worked very hard getting to 
 know and work with Nagios and have put quite a bit of time into the 
 gaining the experience you now possess, but throwing us noobs a bone 
 isn't really asking too much is it?
 
 Bone == link to information
 slap in one's face == go google it...
 

Well, now that it seems you are no longer bothering to use WMI credentials
(which was what the original post was all about), you really should be
able to find all the information you need using 

Re: [Nagios-users] Monitoring root su.

2009-03-13 Thread Marouane Himdi
It's possible to use Nagios coupled with  SEC (Simple Event Correlator) to 
achieve a realtime log analysis

Dr Marouane HIMDI


- Mail Original -
De: Hari Sekhon hpsek...@googlemail.com
À: Jussi Sallinen ju...@sallinen.name
Cc: nagios-users@lists.sourceforge.net
Envoyé: Vendredi 13 Mars 2009 15h28:34 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Monitoring root su.

Jussi Sallinen wrote:
 Has someone done email/sms monitoring service to nagios for monitoring use of 
 su? 
 I would like to certain contact or contact group to be notified when someone 
 su's or logins as root
 to the system - any recommendations for the best way to do such monitoring?
Nagios is not really the right tool for this job, look into logservers 
and automated alerting from syslog, this is how I do, much much better. 
Usually you would code any notification method you want, email or sms 
doesn't matter at that point, you can do what you want once you have the 
method of detection.

Google log analysis.

-h

-- 
Hari Sekhon
Always open to interesting opportunities
http://www.linkedin.com/in/harisekhon


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Monitoring root su.

2009-03-13 Thread Marc Powell

On Mar 13, 2009, at 8:42 AM, Jussi Sallinen wrote:

 Hi!

 My first post to Nagios list.

 Has someone done email/sms monitoring service to nagios for  
 monitoring use of su?
 I would like to certain contact or contact group to be notified when  
 someone su's or logins as root
 to the system - any recommendations for the best way to do such  
 monitoring?

Since they're logged, I'd look at using one of the check_log plugins.  
That, possibly combined with 'is_volatile', should get you an alert  
for those events. The notification part is standard fare...

--
Marc



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Periodic Overrides

2009-03-13 Thread Ton Voon

On 12 Mar 2009, at 15:29, Jason Frisvold wrote:


   For any given service, what is the accepted method for overriding  
 test
 values for a specific time period?  For example, we have servers that
 are backed up at a given time each night.  During the backup period,
 load is driven up on the server, exceeding the current threshold.   
 This,
 in turn, results in alerts being sent out about the server.

   However, since we know about this in advance, and it's a scheduled
 service, we'd like to override the load value during the backup  
 period.
 So if we normally trigger on a load of 2, we'd like to instead trigger
 on a load of 4 during backups.

   I know I can create two services with two timeperiods that will  
 handle
 this, but is there a better way?

Check out our patch: 
http://opsview-blog.opsera.com/dotorg/2007/04/changing_a_serv.html

You can then run a different command based on the timeperiod specified.

Ton


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to receive notification alert by sms tomobile phone using Nagios

2009-03-13 Thread Mirza Dedic
Hi Andrew,

How are you configuring your sanity checks in Nagios?

Thanks.

From: Andrew Davis [mailto:ncc...@gmail.com]
Sent: March/11/2009 9:39 AM
To: Martyn
Cc: 'Onotsky, Steve x55328'; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How to receive notification alert by sms tomobile 
phone using Nagios

A combination of the parents, hostgroups, and escalation. I'll post my 
configs later, but once you have confirmed that SMS is setup and working (make 
sure that for every email alert, you also get an SMS alert), then you define 
your network topology and put them into hostgroups. In my case, I have a 
hostgroup of network-core which includes my core routers, firewalls, Exchange 
server, Exchange storage, and the switch connecting the Exchange system with 
the firewall. I then have a contactgroup of the SMS addresses of three key 
people (myself included). If any of those device fail, Nagios sends 
notification via SMS. If anything else fails, it goes via emails. The kewl 
thing is I'll often sleep through emails, but if I get an SMS, I know something 
serious failed and I force myself to get up...

Additionally, I tend to define a sanity check: a ping to yahoo and http to MSN 
and non-caching dns query of Google. If all sanity checks fail and are not 
resolved within 4 hours, then through escalations, an SMS is sent to the 
manager of the support team at our ISP as we likely have a bandwidth down 
issue. If sanity checks AND a core network device fail, my ISP doesn't get 
notified as we know its us...




  A. Davis

  Email: ncc...@gmail.commailto:ncc...@gmail.com



  There is no limit to what a man can accomplish

   if he doesn't care who gets the credit. - Ronald Reagan


Martyn wrote:
Beat me too it with the same question

Martyn

From: Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com]
Sent: 11 March 2009 15:55
To: ncc...@gmail.commailto:ncc...@gmail.com; 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How to receive notification alert by sms tomobile 
phone using Nagios
I've been messing around with this, off and on (as time permits).  How did you 
set up your config to go to SMS only if email fails?

Thanks


Steve Onotsky
Server Support Technologist
Broadridge
Investor Communication Solutions, Canada
5970 Chedworth Way
Mississauga  ON  L5R 4G5
Tel: (905) 507-5328
Fax: (905) 507-5312
Inet: steve.onot...@broadridge.commailto:steve.onot...@broadridge.com

Quis custodiet ipsos custodes?
- Juvenal, Satires, VI, 347


From: Andrew Davis [mailto:ncc...@gmail.com]
Sent: March 11, 2009 11:35
To: 
nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] How to receive notification alert by sms to mobile 
phone using Nagios

In Nagios 2nd Edition from Wolfgang Barth, he covers this in section 12.4.2. 
He covers smsclient, yasp, and smssend, but he points out what Jim 
pointed out... most are email to SMS conversion tools so if email is done, 
you're still not notified. smsclient and a modem resolve this. I have it 
installed and working fine. Our normal notifications go via email, but if a 
network device or email server is down, then notifications go via SMS.





  A. Davis

  Email: ncc...@gmail.commailto:ncc...@gmail.com



  There is no limit to what a man can accomplish

   if he doesn't care who gets the credit. - Ronald Reagan


Jim Avery wrote:

2009/3/11 tsedendorj oyunbat t_oyun...@yahoo.commailto:t_oyun...@yahoo.com:



I'm new one in Nagios system.

I work in mobile cellular operator company. And I need to know is there any

chance to get notification alert via sms to my mobile phone when BSC or HLR

equipments go down or stop working?

Is there any configuration on Nagios? And how to connect Nagios server to

sms center.





Currently I use an external email-sms service similar to

http://www.intellisms.co.uk so I can send emails from Nagios in the

usual way and have them converted to SMS.  It's extremely easy to set

up, but has the disadvantage that if the email system goes down, we

don't know about it!



Alternatively, you could connect a mobile 'phone to your Nagios server

and send SMS using gnokii http://www.gnokii.org/ or similar, or your

mobile operator might well have an http interface you could use or can

recommend other options.



In Nagios, you specify the notification methods in command definitions

which you can write yourself so it's extremely flexible.  See

http://nagios.sourceforge.net/docs/3_0/notifications.html under the

heading Notification Methods.



hth,



Jim



--

Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are

powering Web 2.0 with engaging, cross-platform capabilities. Quickly and

easily build your RIAs with Flex Builder, the Eclipse(TM)based development


[Nagios-users] Nagios and Fortimail by snmp

2009-03-13 Thread Carlos Herrera Polo
Hello.

Someone has managed to configure Nagios with SNMP and fortimail to check the
status cpuload, memory and the queue of messages?

Please I need that configuration.

Thank you very much
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] WMI's

2009-03-13 Thread Mark D. Weaver
Jim Avery wrote:
 The learning curve is indeed steep at first.  I found the book
 Nagios by Wolfgang Barth invaluable in flattening that curve.
 http://nostarch.com/nagios_2e.htm  It's available as a .pdf download
 or in traditional book form.

 I'm not sure the book would answer your original question in this
 thread though, and nor can I!

 I hope this helps,

 Jim
   
Hi Jim,

Thanks for the link. I ordered the PDF. Gonna be doing some reading this 
weekend by god!

Mark

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to receive notification alert by sms tomobile phone using Nagios

2009-03-13 Thread Andrew Davis

Like any other test...

I do a simple http test to msn.com like you'd test any website with the 
standard plugin.
I do a ping test to yahoo.com since they allow pings still (unlike many 
companies).

And I do a dig to google.com.

Those three are each defined as a host, then put in a hostgroup called 
sanity check. If one test fails, I assume there's an issue on there 
end and ignore it. If two fail, same thing. If all three fail, I know my 
ISP connection is down. The contactgroup for the hostgroup for these 
hosts goes to SMS (mine and the mgr at our ISP).


 A. Davis
 Email: ncc...@gmail.com

 There is no limit to what a man can accomplish
  if he doesn't care who gets the credit. - Ronald Reagan



Mirza Dedic wrote:


Hi Andrew,

 


How are you configuring your sanity checks in Nagios?

 


Thanks.

 


*From:* Andrew Davis [mailto:ncc...@gmail.com]
*Sent:* March/11/2009 9:39 AM
*To:* Martyn
*Cc:* 'Onotsky, Steve x55328'; nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] How to receive notification alert by sms 
tomobile phone using Nagios


 

A combination of the parents, hostgroups, and escalation. I'll post 
my configs later, but once you have confirmed that SMS is setup and 
working (make sure that for every email alert, you also get an SMS 
alert), then you define your network topology and put them into 
hostgroups. In my case, I have a hostgroup of network-core which 
includes my core routers, firewalls, Exchange server, Exchange 
storage, and the switch connecting the Exchange system with the 
firewall. I then have a contactgroup of the SMS addresses of three key 
people (myself included). If any of those device fail, Nagios sends 
notification via SMS. If anything else fails, it goes via emails. The 
kewl thing is I'll often sleep through emails, but if I get an SMS, I 
know something serious failed and I force myself to get up...


Additionally, I tend to define a sanity check: a ping to yahoo and 
http to MSN and non-caching dns query of Google. If all sanity checks 
fail and are not resolved within 4 hours, then through escalations, an 
SMS is sent to the manager of the support team at our ISP as we likely 
have a bandwidth down issue. If sanity checks AND a core network 
device fail, my ISP doesn't get notified as we know its us...


 
  A. Davis

  Email: ncc...@gmail.com mailto:ncc...@gmail.com
 
  There is no limit to what a man can accomplish

   if he doesn't care who gets the credit. - Ronald Reagan



Martyn wrote:

Beat me too it with the same question

 


Martyn



*From:* Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com]
*Sent:* 11 March 2009 15:55
*To:* ncc...@gmail.com mailto:ncc...@gmail.com; 
nagios-users@lists.sourceforge.net 
mailto:nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] How to receive notification alert by sms 
tomobile phone using Nagios


I've been messing around with this, off and on (as time permits).  How 
did you set up your config to go to SMS only if email fails?


 


Thanks

 

 


Steve Onotsky

Server Support Technologist

Broadridge

Investor Communication Solutions, Canada

5970 Chedworth Way

Mississauga  ON  L5R 4G5

Tel: (905) 507-5328

Fax: (905) 507-5312

Inet: steve.onot...@broadridge.com mailto:steve.onot...@broadridge.com

 


/Quis custodiet ipsos custodes?/

- Juvenal, /Satires/, VI, 347

 




*From:* Andrew Davis [mailto:ncc...@gmail.com]
*Sent:* March 11, 2009 11:35
*To:* nagios-users@lists.sourceforge.net 
mailto:nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] How to receive notification alert by sms 
to mobile phone using Nagios


 

In Nagios 2nd Edition from Wolfgang Barth, he covers this in section 
12.4.2. He covers smsclient, yasp, and smssend, but he points 
out what Jim pointed out... most are email to SMS conversion tools so 
if email is done, you're still not notified. smsclient and a modem 
resolve this. I have it installed and working fine. Our normal 
notifications go via email, but if a network device or email server is 
down, then notifications go via SMS.



 
  A. Davis

  Email: ncc...@gmail.com mailto:ncc...@gmail.com
 
  There is no limit to what a man can accomplish

   if he doesn't care who gets the credit. - Ronald Reagan



Jim Avery wrote:

2009/3/11 tsedendorj oyunbat t_oyun...@yahoo.com mailto:t_oyun...@yahoo.com:
  


I'm new one in Nagios system.

I work in mobile cellular operator company. And I need to know is there any

chance to get notification alert via sms to my mobile phone when BSC or HLR

equipments go down or stop working?

Is there any configuration on Nagios? And how to connect Nagios server to

sms center.



 
Currently I use an external email-sms service similar to

http://www.intellisms.co.uk so I can send emails from Nagios in the
usual way 

[Nagios-users] Empty Graphs

2009-03-13 Thread Eric Chatham
Hello,

Can someone help me with this?  None of my graphs have any information being 
displayed in them.  I've tried re-reading the INSTALL instructions thinking I 
may've missed a step.  It all seems to check out.  What information do you need 
from me.  I tried setting the debug level to (4) and insert_debug to 4 but 
nothing shows up in the log with any INSERT information.  Please help.  Thanks. 
 Just an FYI, I'm a really new to PERL and Linux altogether.


Eric Chatham


CONFIDENTIAL. This e-mail and any attached files are confidential and should be 
destroyed and/or returned if you are not the intended and proper recipient.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_ntp_peer unreliable on macs

2009-03-13 Thread Keith Erekson
I found this in my mailing list archives, while looking for information about 
check_ntp_peer. As far as I can tell, nobody ever answered you...

I was just looking into this exact problem. If you check the verbose output, 
you will probably see something like this:

0 candiate peers available
warning: no synchronization source found
warning: LI_ALARM bit is set

I do get valid output from ntpq -p hostname, however.

Apparently, the problems with OS X's NTP are well-known and documented. For 
example,

http://knol.google.com/k/dirk-h-schulz/time-synchronization-ntp-on-mac-os-x/2bcee0ik2900p/18#
http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.5

As a way around this, I thought I would just use check_ntp_time, to compare the 
xserve's clock against that of the nagios box. However, no luck there either:

sending request to peer 0
response from peer 0: offset -0.9300264975
sending request to peer 0
response from peer 0: offset -0.9299369976
sending request to peer 0
response from peer 0: offset -0.9299154976
sending request to peer 0
response from peer 0: offset -0.9298709977
discarding peer 0: stratum=0
overall average offset: 0
NTP CRITICAL: Offset unknown|


It seems that OS X is responding as a stratum 0 server, which is a no-no.

Also, while fiddling with check_ntp_peer, I noticed that it doesn't seem to 
accept a port (-p or --port), as the help output suggests it should be able to. 
Am I crazy?

-Keith





Message: 24
Date: Thu, 19 Feb 2009 17:13:58 -0500
From: Peter Doherty dohe...@crystal.harvard.edu
Subject: [Nagios-users] check_ntp_peer unreliable on macs
To: nagios-user Mailinglist nagios-users@lists.sourceforge.net
Message-ID: 8708358f-e3d4-4778-a90d-0c5c533ce...@crystal.harvard.edu
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I've got Nagios monitoring several Macs, and I'd like to know that NTP  
is running okay on them, since if the time drifts by a few minutes,  
Kerberos Authentication stops working.
It seems that some of the newest Macs work okay, pretty much any of  
the Intel Macs running 10.5 Leopard work, but on any of the 10.4 Tiger  
Macs, I just get
 NTP CRITICAL: Server not synchronized, Offset unknown 

I'm simply running check_ntp_peer -H localhost

Any suggestions on if this can be fixed somehow?

Thanks
--Peter



--



-- 

Keith Erekson
Systems Engineer
Digirati Consulting
erek...@digiraticonsulting.com


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Empty Graphs

2009-03-13 Thread Eric Chatham
nagiosgraph

Eric Chatham

From: RijilV [mailto:rij...@riji.lv]
Sent: Friday, March 13, 2009 18:25
To: Eric Chatham
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Empty Graphs

2009/3/13 Eric Chatham echat...@broadvox.netmailto:echat...@broadvox.net

Hello,



Can someone help me with this?  None of my graphs have any information being 
displayed in them.  I've tried re-reading the INSTALL instructions thinking I 
may've missed a step.  It all seems to check out.  What information do you need 
from me.  I tried setting the debug level to (4) and insert_debug to 4 but 
nothing shows up in the log with any INSERT information.  Please help.  Thanks. 
 Just an FYI, I'm a really new to PERL and Linux altogether.





Eric Chatham


So exactly what are you using for graphing?  Nagios by default doesn't do any 
sort of graphing by itself.

.r'


CONFIDENTIAL. This e-mail and any attached files are confidential and should be 
destroyed and/or returned if you are not the intended and proper recipient.
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Empty Graphs

2009-03-13 Thread RijilV
2009/3/13 Eric Chatham echat...@broadvox.net

  Hello,



 Can someone help me with this?  None of my graphs have any information
 being displayed in them.  I’ve tried re-reading the INSTALL instructions
 thinking I may’ve missed a step.  It all seems to check out.  What
 information do you need from me.  I tried setting the debug level to (4) and
 insert_debug to 4 but nothing shows up in the log with any INSERT
 information.  Please help.  Thanks.  Just an FYI, I’m a really new to PERL
 and Linux altogether.





 *Eric Chatham*



So exactly what are you using for graphing?  Nagios by default doesn't do
any sort of graphing by itself.

.r'
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null