[Nagios-users-br] Monitoração hosts Windows re motos
Jotagera, Segui novamente seu conselho e instalei/configurei o NSCA para enviar as mensagens. Ainda não testei no Windows, mas testei no Linux. Seguinte: Fiz um arquivo chamado testensca contendo a seguinte linha, que peguei n tutorial: localhost TestMessage 0 Teste E aí dei o comando: # /usr/local/nagios/bin/send_nsca localhost -c /usr/local/nagios/etc/send_nsca.cfg /usr/local/nagios/testensca Ele retorna a seguinte mensagem: 1 data packet(s) sent to host successfully. Pelo que diz no tutorial, significa que o NSCA está funcionando OK. Só tenho uma dúvida: PARA ONDE FOI ESSA MENSAGEM TESTE? Procurei nos arquivos /var/log/syslog, /var/log/message, /var/log/daemon, etc e não acho nem a pau. Poderia dar uma luz? Pois preciso saber onde está essa mensagem para poder tratar e mandar pro nagios. Aguardo. Grato. Abraço Diramos -Mensagem original- De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: sexta-feira, 13 de novembro de 2009 17:03 Para: Unofficial Brazilian (Portuguese) Nagios Users List Assunto: Re: [Nagios-users-br]Monitoração hosts Windows remotos Ôpa trap eu não sei, mas se voce tem um script e é este script que testa de alguma maneira se o backup está OK ou não, use o nsca para mandar para o nagios o resultado... 2009/11/13 benedito.ra...@caixa.gov.br Beleza, Jotagera. Entendi. E até fiz uns testes. Mas percebi que no meu caso, esses contadores não ajudam muito, pois o servidores são de arquivos e backup, exclusivamente. Então, não haverá contador para eles. Mas estive pensando em outra coisa, talvez você possa ajudar. Eu ativei o serviço SNMP do Servidor Windows2003 e Do Nagios. Os traps de sistema estão chegando lá bonitinho. Só que percebi que o ntbackup (software da Microsoft que utilizo para fazer backup) não gera trap nenhum. Então não chega lá no Nagios. Aí pensei o seguinte: O backup que eu faço (agendado) é através de um script que fiz. Ele gera um log em .txt com o histórico do backup, inclusive contendo mensagens se terminou com sucesso ou não. O que eu precisaria então é ler esse arquivo e mandar um trap SNMP para o servidor Nagios com uma mensagem, por exemplo, Backup realizado com Sucesso. Aí lá eu trataria e enviaria para o Nagios através de um plugin que eu já fiz aqui e funciona. Só não sei como enviar essa trap de mensagem personalizada. ENTÃO EU PERGUNTO: será que existe algum comando SNMP que envie trap personalizada, além daquelas automáticas de sistema? Se puderem retornar, agradeço bastante. Diramos De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: quarta-feira, 11 de novembro de 2009 20:47 Para: Benedito Ramos Assunto: Re: Monitoração hosts Windows remotos Oi Não esquenta com o moderador. Eu sou o terceiro responsável... Só que o primeiro (criador da lista) e o segundo sumiram... Dá pouco trabalho... Quanto aos comandos que podem ser consultados, realmente não sei ao certo porque windows não é bem minha praia, mas qualquer coisa que voce pode colocar no perfmon pode ser monitorada com uma linha similar a esta. No windows xp (que estou pilotando agora), vou em painel de controle ferramentas administrativas desempenho Este é o aplicativo que o pessoal do windows chama de perfmon. clicando com o clique da direita no gráfico, podem ser escolhidos contadores para incluir. Escolhe o tipo de objeto de desempenho, depois o contador e depois a instância. Depos de instalar o exchange, sql server, iis, oracle, lotus notes e (com certeza) outros, eles incluem um novo objeto de desempenho para este novo aplicativo... Simples e bacaninha... Observe que o \\ no linux é traduzido em uma barra só... Sempre que precisar pode perguntar. Mande tambem para o forum boas experiências. A gente precisa disto... Estou terminando uma documentação de instalação de um conjunto legal de amiguinhos do Nagios e pretendo publicar em breve. Juntei ao Nagios 3.2 o ndoutils, ndodb graph, nagiosql e nagvis. []s 2009/11/11 benedito.ra...@caixa.gov.br Caro Jotagera, Não sabia que você era o moderador do site! E eu falando mal. Hehehe. Desculpa! J Informações valiosíssimas essas que você me passou desde que iniciei o tópico. Muito obrigado! Achei muito interessante o comando: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -t 30 -v COUNTER -l \\MSExchangeMTA\\Work Queue Length,Total de mensagens a serem entregues %.0f -w $ARG1$ -c $ARG2$ Aí eu pergunto: onde conseguir uma lista de todos os parâmetros similares a \\MSExchangeMTA\\Work Queue Length, possíveis para passar? Tem algum artigo? Pois, a partir daí vou testando aqui e vejo o que me serve. Mui grato! PS: fico devendo mais essa. E prometo colaborar mais com o fórum, como forma de te aliviar de tanto trampo. Abraço, Diramos De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: quarta-feira, 11 de
Re: [Nagios-users-br] Status Information: (null)
Sean, O plugin deve escrever a saída da execução do comando em STDOUT e em nenhum outro (STDERR por exemplo). Se o plugin estiver escrevendo o output em stderr, considere ustilizar 21 para a saída forçadamente ir pra STDOUT. Att, On Mon, Nov 9, 2009 at 4:30 PM, Sean sean.cramm...@gmail.com wrote: Olá Leonardo, ocorre quando o nagios executa o comando, quando eu faço por linha de comando funciona, eu uso o nagios 3.0.6 a sintaxe que eu posso dar é essa: define command{ command_namecheck_... command_line $USER2$/check_... -H $ARG1$ -n $ARG2$ -c $ARG3$ } e eu chamo ele depois assim: define service{ use ... service_description... servicegroups ... host_name ... contact_groups ... check_command check_...!parametro1l!parametro2!parametro3 } -- Sean Stewart Faulstich Crammond -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- 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] Monitoração hosts Windows re motos
Olá Como voce recebeu a mensagem 1 data packet(s) sent to host successfully. é porque o nsca está rodando corretamente no servidor do Nagios. O nsca entregou esta mensagem no nagios direto. O que voce fez foi mandar um status passivo do serviço TestMessate no host localhost com resultado 0 (OK) e com a informação adicional Teste. Se voce garimpar o arquivo nagios.log voce verá registrado lá este input. Ou então, veja no nsca.cfg se o log está habilitado. Ele faz log no syslog... []s 2009/11/16 benedito.ra...@caixa.gov.br Jotagera, Segui novamente seu conselho e instalei/configurei o NSCA para enviar as mensagens. Ainda não testei no Windows, mas testei no Linux. Seguinte: Fiz um arquivo chamado testensca contendo a seguinte linha, que peguei n tutorial: localhost TestMessage 0 Teste E aí dei o comando: # /usr/local/nagios/bin/send_nsca localhost -c /usr/local/nagios/etc/send_nsca.cfg /usr/local/nagios/testensca Ele retorna a seguinte mensagem: 1 data packet(s) sent to host successfully. Pelo que diz no tutorial, significa que o NSCA está funcionando OK. Só tenho uma dúvida: PARA ONDE FOI ESSA MENSAGEM TESTE? Procurei nos arquivos /var/log/syslog, /var/log/message, /var/log/daemon, etc e não acho nem a pau. Poderia dar uma luz? Pois preciso saber onde está essa mensagem para poder tratar e mandar pro nagios. Aguardo. Grato. Abraço Diramos -Mensagem original- De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: sexta-feira, 13 de novembro de 2009 17:03 Para: Unofficial Brazilian (Portuguese) Nagios Users List Assunto: Re: [Nagios-users-br]Monitoração hosts Windows remotos Ôpa trap eu não sei, mas se voce tem um script e é este script que testa de alguma maneira se o backup está OK ou não, use o nsca para mandar para o nagios o resultado... 2009/11/13 benedito.ra...@caixa.gov.br Beleza, Jotagera. Entendi. E até fiz uns testes. Mas percebi que no meu caso, esses contadores não ajudam muito, pois o servidores são de arquivos e backup, exclusivamente. Então, não haverá contador para eles. Mas estive pensando em outra coisa, talvez você possa ajudar. Eu ativei o serviço SNMP do Servidor Windows2003 e Do Nagios. Os traps de sistema estão chegando lá bonitinho. Só que percebi que o ntbackup (software da Microsoft que utilizo para fazer backup) não gera trap nenhum. Então não chega lá no Nagios. Aí pensei o seguinte: O backup que eu faço (agendado) é através de um script que fiz. Ele gera um log em .txt com o histórico do backup, inclusive contendo mensagens se terminou com sucesso ou não. O que eu precisaria então é ler esse arquivo e mandar um trap SNMP para o servidor Nagios com uma mensagem, por exemplo, Backup realizado com Sucesso. Aí lá eu trataria e enviaria para o Nagios através de um plugin que eu já fiz aqui e funciona. Só não sei como enviar essa trap de mensagem personalizada. ENTÃO EU PERGUNTO: será que existe algum comando SNMP que envie trap personalizada, além daquelas automáticas de sistema? Se puderem retornar, agradeço bastante. Diramos De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: quarta-feira, 11 de novembro de 2009 20:47 Para: Benedito Ramos Assunto: Re: Monitoração hosts Windows remotos Oi Não esquenta com o moderador. Eu sou o terceiro responsável... Só que o primeiro (criador da lista) e o segundo sumiram... Dá pouco trabalho... Quanto aos comandos que podem ser consultados, realmente não sei ao certo porque windows não é bem minha praia, mas qualquer coisa que voce pode colocar no perfmon pode ser monitorada com uma linha similar a esta. No windows xp (que estou pilotando agora), vou em painel de controle ferramentas administrativas desempenho Este é o aplicativo que o pessoal do windows chama de perfmon. clicando com o clique da direita no gráfico, podem ser escolhidos contadores para incluir. Escolhe o tipo de objeto de desempenho, depois o contador e depois a instância. Depos de instalar o exchange, sql server, iis, oracle, lotus notes e (com certeza) outros, eles incluem um novo objeto de desempenho para este novo aplicativo... Simples e bacaninha... Observe que o \\ no linux é traduzido em uma barra só... Sempre que precisar pode perguntar. Mande tambem para o forum boas experiências. A gente precisa disto... Estou terminando uma documentação de instalação de um conjunto legal de amiguinhos do Nagios e pretendo publicar em breve. Juntei ao Nagios 3.2 o ndoutils, ndodb graph, nagiosql e nagvis. []s 2009/11/11 benedito.ra...@caixa.gov.br Caro Jotagera, Não sabia que você era o moderador do site! E eu falando mal. Hehehe. Desculpa! J Informações valiosíssimas essas que você me passou desde que
Re: [Nagios-users-br] Status Information: (null)
Pessoal, Obrigado pela atenção, já descobri o problema, falei com o autor do plugin e ele me disse que tinha me passado os argumentos errados, corrigi e funcionou. -- Sean Stewart Faulstich Crammond -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- 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] Sending mails - first post
Hello everybody, First time here, so if it is a stupid questions, sorry for that. I have just installed nagios 3.2.0 an have some host and services monitoring. Is installed on SuSE 10.2. The only thing that i don't know hot to do, is making nagios to send emails. Never configured stuff relating to emails before. From what i see from commands.cfg, by default it tries to send email with: /usr/bin/mail -s. But the email ends up in a local folder /var/mail/cosmin. Can anyone help me with some documentation or some advice on how can i make nagios send emails? Thanks. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] What would you want in a replacement web interface?
Taylor Dondich wrote: #3) What is your biggest gripe regarding the existing Nagios web user interface I have a colleague that would like to look at the Nagios status screen with his PDA. A quick google search did not give any result, might be me. Anyway, something with smalls screens and/or CSS? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Issues with running Nagios 3.2.0 with --enable-embedded-perl
Hello Guys, I have tried to install Nagios 3.2.0 version on Linux CentOS 5.2 and I have got a issue: When starting, it ends with segmentation fault: [r...@mon bin]# ./nagios -d /usr/local/nagios_new/etc/nagios.cfg Segmentation fault [r...@mon bin]# Despite the fact that checking the config works OK: [r...@mon bin]# ./nagios -v /usr/local/nagios_new/etc/nagios.cfg Nagios Core 3.2.0 Copyright (c) 2009 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 08-12-2009 License: GPL Website: http://www.nagios.org Reading configuration data... Read main config file okay... Processing object config file '/usr/local/nagios_new/etc/objects/contactgroups.cfg'... Processing object config file '/usr/local/nagios_new/etc/objects/timeperiods.cfg'... Processing object config file '/usr/local/nagios_new/etc/objects/templates.cfg'... Processing object config directory '/usr/local/nagios_new/etc/output'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj Application srv.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj Interxion srv.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj Network srv.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj VPNs.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/commands.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP EuroWeb.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj UPS.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP RDS.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj Redbus srv.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/Cluj London.cfg'... Processing object config file '/usr/local/nagios_new/etc/output/sgroup.cfg'... Read object config files okay... Running pre-flight check on configuration data... Checking services... Checked 225 services. Checking hosts... Checked 74 hosts. Checking host groups... Checked 9 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 4 contacts. Checking contact groups... Checked 5 contact groups. Checking service escalations... Checked 450 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 148 host escalations. Checking host dependencies... Checked 73 host dependencies. Checking commands... Checked 107 commands. Checking time periods... Checked 4 time periods. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check [r...@mon bin]# The Nagios is compiled with embedded perl support (as I have a some plugins in Perl). No errors or warnings appeared while configuring and compiling the code. Below is a try to find the cause: [r...@rmon bin]# gdb ./nagios GNU gdb Red Hat Linux (6.5-37.el5_2.2rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux-gnu...(no debugging symbols found) Using host libthread_db library /lib/libthread_db.so.1. (gdb) run -d /usr/local/nagios_new/etc/nagios.cfg Starting program: /usr/local/nagios_new/bin/nagios -d /usr/local/nagios_new/etc/nagios.cfg [1]+ Stopped gdb ./nagios [r...@rocjmon02 bin]# fg gdb ./nagios (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] (no debugging symbols found) [New Thread -1208183104 (LWP 21792)] (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208183104 (LWP 21792)] 0x00938be1 in Perl_get_cv () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so (gdb) bt #0 0x00938be1 in Perl_get_cv () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #1 0x0093b036 in perl_free () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #2 0x0093d5f9 in perl_parse () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #3 0x080905b7 in init_embedded_perl () #4
Re: [Nagios-users] What would you want in a replacement web interface?
-Original Message- From: Taylor Dondich [mailto:tdond...@lilacnetworks.com] Sent: Monday, November 16, 2009 8:23 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] What would you want in a replacement web interface? Hi there. I've been working on a replacement web interface for Nagios, and it's coming along great! However, I wanted to take the time to ask the community some questions to get your feedback and roll it into the interface. So I have 3 questions to ask you all. If you could answer with as much detail as possible, it would be fantastic. #1) What is the most important thing you want to see in a Tactical Overview replacement? What are the most essential components? My main screen is the service problems, not the tactical overview. Maybe the tactical overview could (optionally) contain a list of all service problems? #2) When looking at a Host or a Service, what are the details you want/need to see? What can you not live without? For those people who use the FQDN as host name, I would love to see a way to sort hosts by domain. The sort should not be case sensitive. OK, that's not directly an answer to your question, but for me it's a little thing that would help enormously. When monitoring hosts in several different domains, the host list is sorted by host name; domains aren't grouped together. Also, FQDNs aren't case sensitive, but Nagios is. That's primarily an issue when monitoring Windows servers. #3) What is your biggest gripe regarding the existing Nagios web user interface? The Nagios navigation is too closely tied to the content. What I'd love to see is Nagios being a set of individual snippets that you can embed in your own Web site (plus a framework that ties them all together for those people who want to use it the current way). In my case, for instance, I'd love to be able to embed Nagios into Joomla pages. If the user clicks on a link within one of the Nagios pages (say, clicks on a service to see service details), it should be possible to forward such a click to the page that Nagios is embedded into and let the framework handle navigation. A session-based authentication scheme would be nice. The ultimate goal would be single-sign-on support; when logged into one of the common frameworks (in my case, again, Joomla), there should be a way for Nagios to retrieve the user name and password from the parent session without exposing the password. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios This host has not yet been checked, so status information is not available
Hi all - Can you please help with the issue? Regards -- Forwarded message -- From: akp geek akpg...@gmail.com Date: Mon, Nov 16, 2009 at 2:27 PM Subject: This host has not yet been checked, so status information is not available To: Nagios-Users Mailinglist nagios-users@lists.sourceforge.net Hi All - I have installed Nagios on solaris. I have defined a new host in templates.cfg and check_command. I have also define host in localhost.cfg for the new host I have added the command in commands.cfg and I have verified the configuration and did not get any errors. when I opened the Nagios page. I got the servers and but the status is showing as pending instead of UP. I am not able to figure what else I need to do ? Can you please help Regards -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Sending mails - first post
Cosmin Neagu wrote: Hello everybody, First time here, so if it is a stupid questions, sorry for that. I have just installed nagios 3.2.0 an have some host and services monitoring. Is installed on SuSE 10.2. The only thing that i don't know hot to do, is making nagios to send emails. Never configured stuff relating to emails before. From what i see from commands.cfg, by default it tries to send email with: /usr/bin/mail -s. But the email ends up in a local folder /var/mail/cosmin. Can anyone help me with some documentation or some advice on how can i make nagios send emails? Thanks. Nagios is correctly sending emails via the OS system utilities. Now what you really want is for the OS to push them somewhere else. I use SuSE Linux here and it uses Postfix for email and I know how to forward email and setup Postfix when forwarding to another server to use smtp auth. If you need a bit of advice on Postfix, let me know. Lyle Giese LCR Computer Services, Inc. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios This host has not yet been checked, so status information is not available
On Nov 17, 2009, at 7:40 AM, akp geek wrote: Hi all - Can you please help with the issue? You problem is to vague at this point; too many possibilities. It would help if you provided real configuration information (host{} definitions, service{} definitions from objects.cache). A pointer to the instructions you used for installation would help give context on the steps you took as well. -- Marc -- Forwarded message -- From: akp geek akpg...@gmail.com Date: Mon, Nov 16, 2009 at 2:27 PM Subject: This host has not yet been checked, so status information is not available To: Nagios-Users Mailinglist nagios-users@lists.sourceforge.net Hi All - I have installed Nagios on solaris. I have defined a new host in templates.cfg and check_command. I have also define host in localhost.cfg for the new host I have added the command in commands.cfg and I have verified the configuration and did not get any errors. when I opened the Nagios page. I got the servers and but the status is showing as pending instead of UP. I am not able to figure what else I need to do ? Can you please help -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Sending mails - first post
On Nov 17, 2009, at 3:36 AM, Cosmin Neagu wrote: From what i see from commands.cfg, by default it tries to send email with: /usr/bin/mail -s. But the email ends up in a local folder /var/mail/cosmin. Can anyone help me with some documentation or some advice on how can i make nagios send emails? It sounds like you're not using a fully-qualifed email address for your contact{} (addr...@domain.com) or else the local SMTP server running on your nagios box believes that it is responsible for the @domain.com you're sending to. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Sending mails - first post
On Tue, Nov 17, 2009 at 2:36 AM, Cosmin Neagu cosmin.ne...@omnilogic.rowrote: Hello everybody, From what i see from commands.cfg, by default it tries to send email with: /usr/bin/mail -s. But the email ends up in a local folder /var/mail/cosmin. Can anyone help me with some documentation or some advice on how can i make nagios send emails? Thanks. Looks like it is sending mail, and that mail is being delivered locally. When you configured Nagios to send e-mail, what e-mail address did you tell it to send to? Also, look for a file called /etc/aliases. Open it, and see if there is a line like: root: cosmin The name on the left may match the e-mail address you gave nagios, and the aliases file is re-directing that mail to the local user cosmin. Replace cosmin with an e-mail address on a different domain. Or modify Nagios to send to a an e-mail address on a domain different than the local machine. Or configure the e-mail client on your computer to check the e-mail account on your Nagios machine. -- Mike -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios This host has not yet been checked, so status information is not available
akp geek wrote: I have installed Nagios on solaris. I have defined a new host in templates.cfg and check_command. I have also define host in localhost.cfg for the new host I have added the command in commands.cfg and I have verified the configuration and did not get any errors. when I opened the Nagios page. I got the servers and but the status is showing as pending instead of UP. I am not able to figure what else I need to do ? Can you please help I'm going to make a couple guesses in the absence of any real configuration information and guess that you're not running scheduled checks on your hosts and that you haven't defined any services. If that's the case, what you're seeing would be perfectly normal. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Odd NRPE issue - variable not printing
Hello, Using NRPE 2.12 and have an issue with a variable from a perl script not being printed. The script works fine when executed manually using the 'nagios' user which NRPE is running as: sh-2.05a$ /usr/local/nagios/libexec/check_apache OK - 68 requests being processed. However, via NRPE: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache OK - requests being processed. Below is the script. I've tried many different code variations, but end result is the same. I appreciate any insight as to what the issue could be. Thanks! -- #!/usr/bin/perl $OK = 0; $WARNING = 1; $CRITICAL = 2; $status = $OK; $returnstring = ; ($apache_tool, @lines, $tot_req); $apache_tool = /usr/local/apache/sbin/apachectl status; @lines = `$apache_tool`; foreach (@lines) { if ($_ =~ /requests currently being processed/) { $tot_req = (split( , $_))[0]; last; } } if ($tot_req 350) { $status = $OK; } elsif ($tot_req = 350 $tot_req 450) { $status = $WARNING; } elsif ($tot_req 450) { $status = $CRITICAL; } if ($status == $OK) { $returnstring = $tot_req requests being processed.\n; print OK - $returnstring\n; } elsif ($status == $WARNING) { $returnstring = $tot_req requests being processed.\n; print WARNING - $returnstring\n; } elsif ($status == $CRITICAL) { $returnstring = $tot_req request being processed.\n; print CRITICAL - $returnstring\n; } exit $status; -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Custom Macros in Service Definitions?
Hi, I have several webservers that have over 20 (virtual)interfaces each. So I've defined the host with custom macros for each private IP: define host{ use linux-server _ip_private_VIP_1 10.4.200.101 _ip_private_VIP_2 10.4.201.101 ... } Now I want to refer to this $_HOSTip_provate_VIP_1$ macro in services definitions, but nagios is complaining about not finding the service. The documentation isn't clear whether or not custom macros could be used in service definitions. I've a command like this: define command{ command_name check_http_str_return_args command_line $USER1$/check_http -I $ARG1$ $ARG2$ } And the service definition: define service{ use generic-service (...) check_command check_http_str_return_args!$_HOSTip_private_VIP_1$!-u / -t 10 -w 3 -c 5 -e HTTP/1.1 200 OK } My question is: Is it by design that custom macros should NOT be used in service definitions? Because I'd need to create ONE COMMAND per VIP just to use custom macros? I would like to set just one services, to use just ONE command, and be able to check the whole webserver farm. Best regards, Marcel -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Odd NRPE issue - variable not printing
Steve Shepherd wrote: Hello, Using NRPE 2.12 and have an issue with a variable from a perl script not being printed. The script works fine when executed manually using the 'nagios' user which NRPE is running as: sh-2.05a$ /usr/local/nagios/libexec/check_apache OK - 68 requests being processed. However, via NRPE: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache OK - requests being processed. Below is the script. I've tried many different code variations, but end result is the same. I appreciate any insight as to what the issue could be. Thanks! When you test at the command line, are you doing it as the nagios user? Looks like it could easily be a permissions issue. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Odd NRPE issue - variable not printing
Yes, the script runs fine w/ Nagios user as stated. On Tue, Nov 17, 2009 at 11:49 AM, Morris, Patrick patrick.mor...@hp.comwrote: Steve Shepherd wrote: Hello, Using NRPE 2.12 and have an issue with a variable from a perl script not being printed. The script works fine when executed manually using the 'nagios' user which NRPE is running as: sh-2.05a$ /usr/local/nagios/libexec/check_apache OK - 68 requests being processed. However, via NRPE: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache OK - requests being processed. Below is the script. I've tried many different code variations, but end result is the same. I appreciate any insight as to what the issue could be. Thanks! When you test at the command line, are you doing it as the nagios user? Looks like it could easily be a permissions issue. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Odd NRPE issue - variable not printing
From: Steve Shepherd [mailto:stevensheph...@gmail.com] Sent: Tuesday, November 17, 2009 11:58 AM To: Morris, Patrick Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Odd NRPE issue - variable not printing Yes, the script runs fine w/ Nagios user as stated. On Tue, Nov 17, 2009 at 11:49 AM, Morris, Patrick patrick.mor...@hp.commailto:patrick.mor...@hp.com wrote: Steve Shepherd wrote: Hello, Using NRPE 2.12 and have an issue with a variable from a perl script not being printed. The script works fine when executed manually using the 'nagios' user which NRPE is running as: sh-2.05a$ /usr/local/nagios/libexec/check_apache OK - 68 requests being processed. However, via NRPE: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache OK - requests being processed. Below is the script. I've tried many different code variations, but end result is the same. I appreciate any insight as to what the issue could be. Thanks! When you test at the command line, are you doing it as the nagios user? Looks like it could easily be a permissions issue. I must admit to see this kind of thing myself from time to time. Although to me, it seems more like perl than NRPE. In a broader context the issue is about getting something different when running from the command line versus running through Nagios. One that comes to mind that looks for processes consuming lots of CPU will tell me the specific process name when run from the command line, but tells me only java when run automatically via Nagios. I have another script that runs great from the command-line, but blows up when it runs through Nagios. I haven't had the time to dig in as much as I'd like and Nagios itself does not, unfortunately, provide much useful info from what I've seen to help you debug plugin problems. In this case though, I'm a little suspicious of ePN causing the different behavior as that's what's really different between my command-line runs and Nagios' automatic runs. Mark -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Odd NRPE issue - variable not printing
Sorry, I meant to say the NRPE user, but it's early and I'd also misread the original statement. Coffee should be kicking in any time now. Anyway, based on that, I'd guess it's failing on the @lines = `$apache_tool`; line, since it doesn't seem to be picking up anything at all. How is check_apache defined in the NRPE config? I'm wondering if it's being called in a way that isn't allowing external shell commands. Steve Shepherd wrote: Yes, the script runs fine w/ Nagios user as stated. On Tue, Nov 17, 2009 at 11:49 AM, Morris, Patrick patrick.mor...@hp.com mailto:patrick.mor...@hp.com wrote: Steve Shepherd wrote: Hello, Using NRPE 2.12 and have an issue with a variable from a perl script not being printed. The script works fine when executed manually using the 'nagios' user which NRPE is running as: sh-2.05a$ /usr/local/nagios/libexec/check_apache OK - 68 requests being processed. However, via NRPE: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_apache OK - requests being processed. Below is the script. I've tried many different code variations, but end result is the same. I appreciate any insight as to what the issue could be. Thanks! When you test at the command line, are you doing it as the nagios user? Looks like it could easily be a permissions issue. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] MACRO SPANNING
Hi, Do nagios does multiple MACRO SPANNING? I mean... If I define a service with a custom host macro $_HOST_ip_private_VIP_1$, and the command is defined as $USER1$/check_http -I $ARG1$, is Nagios able to span the $_HOST_ip_private_VIP_1$ macro when substituting it by $ARG1$ ?? Best regards, Marcel -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] pnp4nagios, check_snmp, and the `-m' flag
On Mon, 2009-11-16 at 18:15 -0500, Thomas Guyot-Sionnest wrote: The problem is that check_snmp parses the output from snmpget and it appears that when you load the MIB it detects the result as a string (if you post the full debug output (-vvv switch) I will be able to confirm). Just because you asked. I'm not all that worried about it. The MIB is obviously reporting an INTEGER value, but getting the units back is confusing the issue. temporary ~ # /usr/lib/nagios/plugins/check_snmp -vvv -H 10.1.25.11 -m EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 /usr/bin/snmpget -t 1 -r 5 -m EATON-PWR-MTR-MIB -v 1 -c public 10.1.25.11:161 .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 EATON-PWR-MTR-MIB::pwrMtrDemandKiloWatts.1 = INTEGER: 26 kilo-watts SNMP OK - 26 kilo-watts | -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Occasional unknown status messages from a particular server
Hi there -- We are running Nagios 3.1.2, and one of our monitored servers, running NRPE client 2.0, is occasionally sending back unknown status messages to the server. An example of this is shown below: UNKNOWN 11-17-2009 13:10:15 0d 0h 1m 54s2/3 CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. UNKNOWN 11-17-2009 13:10:15 0d 0h 1m 54s2/3 NRPE: Call to fork() failed This service is flapping between states http://romonitor/nagios/cgi-bin/extinfo.cgi?type=2host=spaceservice=Free+Spac e+%2Fdiskarray%2Fstripe8%2Fproton_data2+-+Clinical+Research#comments UNKNOWN 11-17-2009 13:10:15 0d 0h 0m 54s3/3 NRPE: Unable to read output This service is flapping between states http://romonitor/nagios/cgi-bin/extinfo.cgi?type=2host=spaceservice=Free+Spac e+%2Fdiskarray%2Fstripe9%2Fproton_data3+-+Medullo UNKNOWN 11-17-2009 13:06:15 0d 0h 4m 54s3/3 NRPE: Call to fork() failed UNKNOWN 11-17-2009 13:10:15 0d 0h 1m 54s2/3 CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. The server being monitored is an HP-UX 11.00 system running on a PA-RISC chipset. I have checked the log files of the remote host, but there is nothing to indicate there being a problem. I have also run the check commands manually on the remote host, and all have returned known output. Has anyone seen this, know what it is, and what steps can be done to stop it from occurring? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Custom Macros in Service Definitions?
On Nov 17, 2009, at 10:45 AM, Marcel wrote: Now I want to refer to this $_HOSTip_provate_VIP_1$ macro in services definitions, but nagios is complaining about not finding the service. What is the exact error that you are seeing? I can't see how a problem with that macro substitution would generate any error about 'not finding the service'. The documentation isn't clear whether or not custom macros could be used in service definitions. I've a command like this: define command{ command_name check_http_str_return_args command_line $USER1$/check_http -I $ARG1$ $ARG2$ } And the service definition: define service{ use generic-service (...) check_command check_http_str_return_args!$_HOSTip_private_VIP_1$!-u / -t 10 -w 3 -c 5 -e HTTP/1.1 200 OK } This is unusual but based on the documentation on how to check service and host clusters, I expect this should probably work. Looking in the code it looks like macro substitution happens at the right place too... There is a problem with the resulting command in that '-e HTTP/1.1 200 OK' will be translated to '-e' with an argument of 'HTTP/1.1' and then a dangling 200 and a dangling OK to the entire command. If you want to match more than HTTP/1.1, enclose the entire 'HTTP/1.1 200 OK' in quotes. My question is: Is it by design that custom macros should NOT be used in service definitions? I don't recall seeing it stated either way (should/should not). I know that you can use other macros in this way and don't believe that custom macros are special. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Occasional unknown status messages from a particular server
On Nov 17, 2009, at 12:14 PM, Kaplan, Andrew H. wrote: Hi there -- We are running Nagios 3.1.2, and one of our monitored servers, running NRPE client 2.0, is occasionally sending back unknown status messages to the server. An example of this is shown below: UNKNOWN 11-17-2009 13:10:15 0d 0h 1m 54s2/3 CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. UNKNOWN 11-17-2009 13:10:15 0d 0h 1m 54s2/3 NRPE: Call to fork() failed I'm not familiar with HP-UX but this is indicating that the NRPE daemon on the remote host is unable to create a new process to run the check. Do you have restrictions on that host to prevent that? limits on memory use, max number of process, etc? Have you tried putting NRPE into debug mode? You might get more information but it sounds like the OS is preventing the creation of the child process. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 Nagios Cacti
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I installed and setup PNP4Nagios but am not really liking it. I have used Cacti in the past (on its own) and would like to integrate Nagios and Cacti. Is there a HOWTO page or anything that can help me configure Cacti to integrate with Nagios? I do not want to have to manage two sets of devices or two data areas and it appears that Cacti and Nagios can integrate. Thanks for your help. Kevin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10) iQEcBAEBAgAGBQJLAvtIAAoJELwJyEr2hjSxDxgIAKiovV0yQ9RuyOtO+u7FkQT0 CcVafR4JcbixAOBBJTm0ryzhF6G5AEccE5Erxg7kqnE9p+JES3VBnu8SLMFFiGR2 phoigHk8xibMIiWOnSF8fK97Om/yXaBcVSFfhiQWgkLH3m/wqEAFLK4n1CdZCzQf ejBfzjwgJ3/EmOfPTRFm1J4I7mnrDm2zdsB/DJL5Jzr92LAzhrwptpMx7E1poJVQ AizvK9uAUXPWMDVpDUME1Vcsx4NAT2QKgx9x87FVxasLcuDYBvAqTxRpHdXrI2t8 feojO3TR/M5FhBrIJOeC47JAw1D0qf6BMM2s+Hr5VHcmsexojYtHGINZgJCB358= =DWtQ -END PGP SIGNATURE- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] plugin to track full page load performance
Hello, I am looking to avoid reinventing a wheel here. I am looking for a plugin that will do a full page load (including images). Check_http doesn't do images from what I am seeing. It should be easy enough to do this with wget but does anyone have any other ideas? Thanks! -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] plugin to track full page load performance
Terry wrote: Hello, I am looking to avoid reinventing a wheel here. I am looking for a plugin that will do a full page load (including images). Check_http doesn't do images from what I am seeing. It should be easy enough to do this with wget but does anyone have any other ideas? http://www.webinject.org/plugin.html -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Custom Macros in Service Definitions?
Greetings Marc, Well, I've wrapped the command in question with /bin/echo { command_line def. } /tmp/check_http_jmx.log to see what Nagios is issuing. The -I flag of the check_http command was being issued with just a dollar sign ($) as it's parameter. So i think it's a matter of macro double spanning, because there is a custom macro ($_HOSTIP_PRIVATE_VIP_1$) being passed to be spanned by $ARG1$ at the command_line definition. I do not know If I ever saw or used a configuration like this. I don't think is a problem of quoting, because Nagios should replace $_HOSTIP_PRIVATE_VIP_1$ by it's custom host value say, 10.0.0.1, and then pass this value to be replaced at $ARG1$ standard command macro, but all I see is a dolar sign being issued by nagios as a parameter of -I. Then my second question in my next email about double macro spanning. Do you think it could be a configuration problem? Best regards, Marcel On Tue, Nov 17, 2009 at 4:39 PM, Marc Powell m...@ena.com wrote: On Nov 17, 2009, at 10:45 AM, Marcel wrote: Now I want to refer to this $_HOSTip_provate_VIP_1$ macro in services definitions, but nagios is complaining about not finding the service. What is the exact error that you are seeing? I can't see how a problem with that macro substitution would generate any error about 'not finding the service'. The documentation isn't clear whether or not custom macros could be used in service definitions. I've a command like this: define command{ command_name check_http_str_return_args command_line $USER1$/check_http -I $ARG1$ $ARG2$ } And the service definition: define service{ use generic-service (...) check_command check_http_str_return_args!$_HOSTip_private_VIP_1$!-u / -t 10 -w 3 -c 5 -e HTTP/1.1 200 OK } This is unusual but based on the documentation on how to check service and host clusters, I expect this should probably work. Looking in the code it looks like macro substitution happens at the right place too... There is a problem with the resulting command in that '-e HTTP/1.1 200 OK' will be translated to '-e' with an argument of 'HTTP/1.1' and then a dangling 200 and a dangling OK to the entire command. If you want to match more than HTTP/1.1, enclose the entire 'HTTP/1.1 200 OK' in quotes. My question is: Is it by design that custom macros should NOT be used in service definitions? I don't recall seeing it stated either way (should/should not). I know that you can use other macros in this way and don't believe that custom macros are special. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios This host has not yet been checked, so status information is not available
Thanks for the response. Following are the details of my commands.cfg, localhost.cfg and templates.cfg # # SAMPLE HOST CHECK COMMANDS commands.cfg # # 'check-host-alive' command definition define command{ command_namecheck-host-alive command_line$USER1$/check_ping -H $HOSTADDRESS:devl_01$ -w 3000.0,80% -c 5000.0,100% -p 5 } define command{ command_namecheck-solaris-alive command_line$USER1$/check_ping -H $HOSTADDRESS:devl_02$ -w 3000.0,80% -c 5000.0,100% -p 5 } # localhost.cfg define host{ usesolaris-server ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name devl_01 aliasdevl02 address xx.xxx.xxx.24 } define host{ use solaris-server; inherit default values from a template host_name devl_02; The name we're giving to this server alias devl02 longer name for the server address xx.xxx.xxx.30IP address of the server } # Define a service to ping the local machine define service{ use local-service ; Name of service template to use host_name devl_01 service_description PING check_command check_ping!100.0,20%!500.0,60% } define service{ use local-service ; Name of service template to use host_name devl_02 service_description PING check_command check_ping!100.0,20%!500.0,60% } templates.cfg define host{ namesolaris-server ; The name of this host template use generic-host; This template inherits other values from the generic-host template check_period24x7; By default, Linux hosts are checked round the clock check_interval 5 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-solaris-alive; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 120 ; Resend notifications every 2 hours notification_optionsd,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } = Appreciate your help Regards On Tue, Nov 17, 2009 at 10:52 AM, Marc Powell m...@ena.com wrote: On Nov 17, 2009, at 7:40 AM, akp geek wrote: Hi all - Can you please help with the issue? You problem is to vague at this point; too many possibilities. It would help if you provided real configuration information (host{} definitions, service{} definitions from objects.cache). A pointer to the instructions you used for installation would help give context on the steps you took as well. -- Marc -- Forwarded message -- From: akp geek akpg...@gmail.com Date: Mon, Nov 16, 2009 at 2:27 PM Subject: This host has not yet been checked, so status information is not available To: Nagios-Users Mailinglist nagios-users@lists.sourceforge.net Hi All - I have installed Nagios on solaris. I have defined a new host in templates.cfg and check_command. I have also define host in localhost.cfg for the new host I have added the
[Nagios-users] CheckWMIvalue and WMI namespace
Hello, I am wanting to monitor the recieved wireless signal strength of laptops. This value is stored in \\root\WMI\MSNdis_80211_ReceivedSignalStrength. But I cant figure out how to change the namespace in the syntax of checkWMIValue. Can anyone point me in the correct direction? Thanks for your help. Jeff Carlson -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios This host has not yet been checked, so status information is not available
I just want add the following information also... When I monitor the logs , it saying The check of host 'devl_02' looks like it was orphaned (results never came back). Regards On Tue, Nov 17, 2009 at 3:03 PM, akp geek akpg...@gmail.com wrote: Thanks for the response. Following are the details of my commands.cfg, localhost.cfg and templates.cfg # # SAMPLE HOST CHECK COMMANDS commands.cfg # # 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS:devl_01$ -w 3000.0,80% -c 5000.0,100% -p 5 } define command{ command_name check-solaris-alive command_line $USER1$/check_ping -H $HOSTADDRESS:devl_02$ -w 3000.0,80% -c 5000.0,100% -p 5 } # localhost.cfg define host{ use solaris-server ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name devl_01 alias devl02 address xx.xxx.xxx.24 } define host{ use solaris-server; inherit default values from a template host_name devl_02; The name we're giving to this server alias devl02 longer name for the server address xx.xxx.xxx.30 IP address of the server } # Define a service to ping the local machine define service{ use local-service ; Name of service template to use host_name devl_01 service_description PING check_command check_ping!100.0,20%!500.0,60% } define service{ use local-service ; Name of service template to use host_name devl_02 service_description PING check_command check_ping!100.0,20%!500.0,60% } templates.cfg define host{ name solaris-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock check_interval 5 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-solaris-alive; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 120 ; Resend notifications every 2 hours notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } = Appreciate your help Regards On Tue, Nov 17, 2009 at 10:52 AM, Marc Powell m...@ena.com wrote: On Nov 17, 2009, at 7:40 AM, akp geek wrote: Hi all - Can you please help with the issue? You problem is to vague at this point; too many possibilities. It would help if you provided real configuration information (host{} definitions, service{} definitions from objects.cache). A pointer to the instructions you used for installation would help give context on the steps you took as well. -- Marc -- Forwarded message -- From: akp geek akpg...@gmail.com Date: Mon, Nov 16, 2009 at 2:27 PM Subject: This host has not yet been checked, so status information is not available To:
[Nagios-users] Custom Object Variables
Nagios Version 3.1.2 running on FC11 //I am trying to set up some custom Object Variables based on the following docs but I must be misunderstanding something: //--- http://nagios.sourceforge.net/docs/3_0/customobjectvars.html http://nagios.sourceforge.net/docs/3_0/macros.html //The following definitions return an UNKNOWN status with the following entry in the nagios.log: //--- [1258485573] SERVICE ALERT: someSpecificHostName;SSH;UNKNOWN;SOFT;1;check_ssh: Port number must be a positive integer - $ If I change the check_command to read check_ssh!-p 22 it works perfect. Can someone please point me in a direction, thanks. define host{ use someStandardHostTemplate host_name someSpecificHostName alias someSpecificHostAlias address 11.22.33.44 _sshPort22 #the port number for ssh connections specific to this host } define service{ use someStandardServiceTemplate host_name someSpecificHostName service_descriptionSSH check_command check_ssh!-p $_HOSTsshPort$ } define command{ command_namecheck_ssh command_line$USER1$/check_ssh $ARG1$ $HOSTADDRESS$ } -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Custom Object Variables
Hi there, On Tue, Nov 17, 2009 at 5:33 PM, Eric Emerson eemer...@safecore.com wrote: //I am trying to set up some custom Object Variables based on the following docs but I must be misunderstanding something: define service{ use someStandardServiceTemplate host_name someSpecificHostName service_descriptionSSH check_command check_ssh!-p $_HOSTsshPort$ } Capitalize the varname: $_HOSTSSHPORT$ Instead of the documentation saying that it is case insensitive, it only works on TOUPPER variable name representation. Cheers! -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Custom Object Variables
On Nov 17, 2009, at 3:14 PM, Marcel wrote: Capitalize the varname: $_HOSTSSHPORT$ Instead of the documentation saying that it is case insensitive, it only works on TOUPPER variable name representation. Did this come from your _ip_private_VIP_1 troubleshooting? That was it? -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Custom Object Variables
Works great thank you On Tue, Nov 17, 2009 at 4:25 PM, Marc Powell m...@ena.com wrote: On Nov 17, 2009, at 3:14 PM, Marcel wrote: Capitalize the varname: $_HOSTSSHPORT$ Instead of the documentation saying that it is case insensitive, it only works on TOUPPER variable name representation. Did this come from your _ip_private_VIP_1 troubleshooting? That was it? -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] auditing for external commands?
We're looking at possibly allowing more individual users into the web interface and allowing them to schedule their own downtime. One concern is that if a team doesn't get an alert they could come to my team (the team that administers Nagios) and say why didn't Nagios send us an alert when X was down? when the issue was actually caused because a member of their own team had disabled notifications. I know we can see that an external command was executed in the log file and when, but there's no way of knowing (as far as I can see) who actually requested that that command be run. In my opinion, it could be useful to know that 'bob' requested that notifications be disabled on host X particularly as it pertains to the web interface. Is there a way to do this or would this need to be a feature request? Thanks Mark -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] auditing for external commands?
setup a log file monitor for the apache access_log whenever anyone uses the ext command cgi's the apache log should give you the username and the http post data depending on how you configure apache, On Tue, Nov 17, 2009 at 7:50 PM, Frost, Mark {PBG} mark.fro...@pepsi.comwrote: We're looking at possibly allowing more individual users into the web interface and allowing them to schedule their own downtime. One concern is that if a team doesn't get an alert they could come to my team (the team that administers Nagios) and say why didn't Nagios send us an alert when X was down? when the issue was actually caused because a member of their own team had disabled notifications. I know we can see that an external command was executed in the log file and when, but there's no way of knowing (as far as I can see) who actually requested that that command be run. In my opinion, it could be useful to know that 'bob' requested that notifications be disabled on host X particularly as it pertains to the web interface. Is there a way to do this or would this need to be a feature request? Thanks Mark -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_nt MEMUSE
Hi all, check_nt -v MEMUSE shows me the complete memory (physical memory + page.sys) from the 64bit Windows Clients, which are using NSClient++ 0.3.7.493 2009-10-12. [...] # /usr/local/libexec/nagios/check_nt -p 5666 -v MEMUSE \ -w 80 -c 90 -H 64bitClient Memory usage: total:7939.16 Mb - used: 4101.70 Mb (52%) - free: 3837.46 Mb (48%) | 'Memory usage'=4101.70Mb;6351.33;7145.25;0.00;7939.16 [...] 32bit Windows clients shows me _only_ the real memory (same NSClient Version). Is it possible to configure check_nt to show me also only the real memory from the 64bit Windows clients? We are using nagios-3.0.6_3 and check_nt v1991 (nagios-plugins 1.4.13) on a FreeBSD 7.2-STABLE Box. thanks in advance Richard -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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