[Nagios-users-br] Checar pagina Web - Duvida!
boa tarde a todos da lista, estou querendo checar a URL http://fotonoticia.vivo.com.br/portal/brazil/ utilizei a seguinte conf: # command definition define command{ command_nameurl_vivo_fotonoticia command_line$USER1$/check_http -H $HOSTADDRESS$ -u http://fotonoticias.vivo.com.br/portal/brazil/#; -t 60 } mais ele diz a pagina nao foi encontrada, nao sei se é por causa dessa pagina pede um cookie para acesso...mais quando acesso pelo lynx com a opção -accept_all_cookies vai tranquilo, mais coloquei esse parametro no nagios e nao funciona...alguem teria alguma ideia?? att, -- Bruno Bettero -- Cyclelogic Brasil -- 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-br] RES: Nagios-users-br Digest, Vol 38, Issue 3
Prezados, Me chamo Iris , uso debian 5.0 e nagios 3.0.6 e usei o apt-get install navgis so não achei documentação para configurar tem como me passarem o caminho das pedras ? Iris Deberges Tel.: (21) 2212-3900 Cel.: (21) 9616-1240 Fax.: (21) 2212-3941 iris.deber...@riocard.com A presente mensagem pode conter material confidencial e seu sigilo é protegido por lei. Quaisquer informações e/ou documentos nela contidos são destinadas exclusivamente a seu(s) destinatário(s) acima identificado(s). Se você a receber por engano, favor nos informar e apagá-la. Não copie ou divulgue o conteúdo desta mensagem. Antes de imprimir o documento, reflita acerca da sua responsabilidade com o meio ambiente. -Mensagem original- De: nagios-users-br-requ...@lists.sourceforge.net [mailto:nagios-users-br-requ...@lists.sourceforge.net] Enviada em: quinta-feira, 20 de agosto de 2009 15:32 Para: nagios-users-br@lists.sourceforge.net Assunto: Nagios-users-br Digest, Vol 38, Issue 3 Send Nagios-users-br mailing list submissions to nagios-users-br@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nagios-users-br or, via email, send a message with subject or body 'help' to nagios-users-br-requ...@lists.sourceforge.net You can reach the person managing the list at nagios-users-br-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Nagios-users-br digest... Today's Topics: 1. Re: Erro Nagios (Cleiton Souza) 2. Re: NAGIOS COM MYSQL (NDO-UTILS) (Cleiton Souza) 3. RES: Erro Nagios (benedito.ra...@caixa.gov.br) 4. Re: Erro Nagios (Molinero) 5. Checar pagina Web - Duvida! (Bruno Bettero) -- Message: 1 Date: Sat, 15 Aug 2009 18:08:38 -0300 From: Cleiton Souza cleiton.bra...@gmail.com Subject: Re: [Nagios-users-br] Erro Nagios To: Unofficial Brazilian (Portuguese) Nagios Users List nagios-users-br@lists.sourceforge.net Message-ID: df714a5e0908151408g4f7addf8i2ba1840454e59...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Ol? Ramos, dei uma olhada no meu /etc/httpd/conf.d/nagios.conf e esta um pouco diferente do seu, veja abaixo. Fa?a um backup da sua configura??o, depois substitua pelo conf que estou enviando, e de um restart no apache e nos diga se funcionou. Um abra?o. Cleiton # INICIO /etc/httpd/conf.d/nagios.conf ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin Directory /usr/local/nagios/sbin # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName Nagios Access AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user /Directory Alias /nagios /usr/local/nagios/share Directory /usr/local/nagios/share # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName Nagios Access AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user /Directory # FIM /etc/httpd/conf.d/nagios.conf On Fri, Aug 14, 2009 at 11:51, benedito.ra...@caixa.gov.br wrote: PessoALL, tudo bem? T? quebrando a cabe?a aqui. Tenho o Nagios 3 instalado na empresa e funciona tudo direitinho. A empresa ? um banco grande do pa?s, com aproximadamente 150.000 hosts, fora os ativos de rede. Impantei o Nagios aqui e mexi bastante at? deixar redondinho. Como era experimental, acabou n?o dando tempo de fazer um roteiro. Agora, por ordem da dire??o, o Nagios vai ser implamentado no pa?s inteiro e terei que fazer um manual de padroniza??o. Instalei numa m?quina teste aqui Debian. Configurei o http.conf certinho com os seguintes dados: ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/ Directory /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all /Directory Alias /nagios /usr/local/nagios/share/ Directory /usr/local/nagios/share Options None AllowOverride AuthConfig Order allow,deny Allow from all AuthName Nagios Access AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user /Directory Criei uma senha certinho para o nagiosadmin. E coloquei no cgi.cfg use_authentication=1 Mas quando entro com o usu?rio, d? o seguinte erro: It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. Lembro que passei por isso h? tempos e acabei resolvendo. Acho que era algo de permiss?es do usu?rio www-data do apache. Algu?m pode me ajudar com urg?ncia?
Re: [Nagios-users] organizing config files with templates
Thank you for your suggestions. I'll take a closer look into this. Regards, m...@catsnest.co.uk wrote: Sounds a lot like what I use... I also use host-templates for example: define host{ use solaris,dns,an-other-app address... } the solaris host-template applies standard checks like disk, cpu, SMF. the solaris-10-global template applies checks such as zone-checks Hmm, could you eventually explain how the solaris host-template applies standard checks (which seem to me like services) ? How do you do this ? Yes checks = services Sorry i should be more careful with my terminology ... I think he is doing this: define service{ use server-1-hour-retry-emailonly-noticket hostgroup_name windows service_description cpu check_command check_nrpe_win_cpu!80!90 } define service{ use server-servicehours hostgroup_name windows service_description commit charge check_command check_nrpe_win_memory_page!90%!95% } define service{ use server hostgroup_name windows service_description uptime servicegroups uptime check_command check_nrpe_win_uptime!1h retry_check_interval70 } So, all hosts in the windows host_group will get the uptime,cpu, and commit charge services. Thats right, linking the services to hostgroups and just using a host-template to add the host to a host_group eg, using the above example a (simplified) host-template would look like define host{ name windows hostgroup+windows register 0 } I actually then 'use' another host-template in the above, to set default options such as check_command. Ritchie -- 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 -- DI Simon Kainz Graz, University of Technology Department Computing Phone: ++43 (0) 316 / 873 6885 signature.asc Description: OpenPGP digital 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] FW: external_command_buffer_slots??
-Original Message- From: Ryan Bowlby [mailto:rbowlb...@yahoo.com] Sent: 20 August 2009 00:57 Hello everyone, I joined the list just for this! A google search of external_command_buffer_slots doesn't provide much beyond the official documentation. Can someone please clarify for me what this directive is actually doing. Is this buffer internal to Nagios? The name seems unfortunate because it reminds me of the external command file which obviously can't be increased beyond 4096 without hacking fifo sizes in kernel source. What downside is there to setting this buffer to say.. 8192 or ? Can someone describe where in the chain of events check results reside in this buffer? We make use of this directive and the corresponding check_result_buffer_slots. As I understand it these refer to internal buffers used by the Nagios process to store commands and results after they have been read from the pipe file but before they are processed. This allows other high priority tasks to take precedence if required. For example, we currently use Nagios 2 with NDOutils and the code that passes results to the corresponding ndo2db daemon is in a single-threaded part of the code; if there is a delay in this operation (say caused by heavy load on the MySQL server), the Nagios process is held up until the delay has cleared. I use external_command_buffer_slots=40960 and check_result_buffer_slots=61440; you can see how many of these slots have been used in the current Nagios process if you run program nagiostats. What you are doing is allowing the Nagios process to get more memory for these buffers if required; assuming that your server has plenty of memory, you should have no problem if you increase the value of these directives. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory -- Scanned by iCritical. -- 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] status.cgi faulre
Hello I keep getting this errors from my nagios . I am running nagios 3.0.6 (from source) of SLES 10.2 . I tried to rebuild the CGI but even after thar the error keeps happening , Any one ever encountered this ? [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] *** glibc detected *** /usr/local/nagios/sbin/status.cgi: malloc(): memory corruption (fast): 0x080 88270 *** [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] === Backtrace: = [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /lib/libc.so.6[0xb7e3ea61] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /lib/libc.so.6[0xb7e40fc0] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /lib/libc.so.6(malloc+0x86)[0xb7e423b6] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /lib/libc.so.6(__strdup+0x30)[0xb7e44e70] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /usr/local/nagios/sbin/status.cgi[0x8073069] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /usr/local/nagios/sbin/status.cgi[0x80580ce] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /usr/local/nagios/sbin/status.cgi[0x8054237] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /lib/libc.so.6(__libc_start_main+0xdc) [0xb7df08ac] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] /usr/local/nagios/sbin/status.cgi[0x8049061] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] === Memory map: [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] 08048000-0808 r-xp fd:01 3866638/usr/local/nagios/sbin/status.cgi [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] 0808-08081000 rw-p 00038000 fd:01 3866638/usr/local/nagios/sbin/status.cgi [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] 08081000-084c2000 rw-p 08081000 00:00 0 [heap] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b780-b7821000 rw-p b780 00:00 0 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7821000-b790 ---p b7821000 00:00 0 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b79e8000-b79f2000 r-xp fd:02 852044 /lib/libgcc_s.so.1 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b79f2000-b79f3000 rw-p 9000 fd:02 852044 /lib/libgcc_s.so.1 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b79f3000-b7dda000 r--p fd:01 3867357/usr/local/nagios/var/status.dat [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7dda000-b7ddb000 rw-p b7dda000 00:00 0 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7ddb000-b7f01000 r-xp fd:02 851987 /lib/libc-2.4.so [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f01000-b7f03000 r--p 00125000 fd:02 851987 /lib/libc-2.4.so [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f03000-b7f05000 rw-p 00127000 fd:02 851987 /lib/libc-2.4.so [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f05000-b7f08000 rw-p b7f05000 00:00 0 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f18000-b7f19000 rw-p b7f18000 00:00 0 [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f19000-b7f33000 r-xp fd:02 854360 /lib/ld-2.4.so [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] b7f33000-b7f35000 rw-p 0001a000 fd:02 854360 /lib/ld-2.4.so [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] bfa91000-bfaa7000 rw-p bfa91000 00:00 0 [stack] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] e000-f000 ---p 00:00 0 [vdso] [Thu Aug 20 09:40:31 2009] [error] [client 10.3.254.153] Premature end of script headers: status.cgi -- Assaf Flatto IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service
[Nagios-users] Services on Host Templates
Hi all, If I create a host template, and associate a number of services with it, will hosts which inherit from that template also inherit the service associations? I've tried this out, but it doesn't seem to be working, and I'm wondering if there's something I'm missing. Previously I was using host groups to achieve this, but decided to use templates for my platform specific service checks (so instead of having a Windows Hosts host group with all my Windows specific checks, I would just have a Windows-Host template with the associated service checks which would then be inherited by all my Windows boxes). Cheers, Chris -- 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] external_command_buffer_slots??
On Aug 19, 2009, at 6:57 PM, Ryan Bowlby wrote: Hello everyone, I joined the list just for this! A google search of external_command_buffer_slots doesn't provide much beyond the official documentation. Can someone please clarify for me what this directive is actually doing. It's pretty clear here -- http://nagios.sourceforge.net/docs/3_0/tuning.html • External command optimizations. If you're processing a lot of external commands (i.e. passive checks in a distributed setup, you'll probably want to set the command_check_interval variable to -1. This will cause Nagios to check for external commands as often as possible. You should also consider increasing the number of available external command buffer slots. Buffers slots are used to hold external commands that have been read from the external command file (by a separate thread) before they are processed by the Nagios daemon. If your Nagios daemon is receiving a lot of passive checks or external commands, you could end up in a situation where the buffers are always full. This results in child processes (external scripts, NSCA daemon, etc.) blocking when they attempt to write to the external command file. I would highly recommend that you graph external command buffer slot usage using MRTG and the nagiostats utility as described here, so you understand the typical external command buffer usage of your Nagios installation. Is this buffer internal to Nagios? Yes The name seems unfortunate because it reminds me of the external command file which obviously can't be increased beyond 4096 without hacking fifo sizes in kernel source. It's related to the external command file but doesn't increase the size of the pipe, as you indicate. What downside is there to setting this buffer to say.. 8192 or ? You may end up with the pipe being full and external commands being blocked until it's emptied. In busy installations this could mean a lot of additional processes hanging around taking up memory. Can someone describe where in the chain of events check results reside in this buffer? A nagios thread reads the external command pipe and stores any commands found in a temporary buffer. The buffer can hold external_command_buffer_slots entries. This buffer is then polled by the main nagios thread periodically to process any pending requests. -- 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] FW: external_command_buffer_slots??
- Original Message From: Wheeler, Jonathan (STFC,RAL,ESC) jonathan.whee...@stfc.ac.uk To: nagios-users@lists.sourceforge.net Sent: Thursday, August 20, 2009 12:20:30 AM Subject: [Nagios-users] FW: external_command_buffer_slots?? -Original Message- From: Ryan Bowlby [mailto:rbowlb...@yahoo.com] Sent: 20 August 2009 00:57 Hello everyone, I joined the list just for this! A google search of external_command_buffer_slots doesn't provide much beyond the official documentation. Can someone please clarify for me what this directive is actually doing. Is this buffer internal to Nagios? The name seems unfortunate because it reminds me of the external command file which obviously can't be increased beyond 4096 without hacking fifo sizes in kernel source. What downside is there to setting this buffer to say.. 8192 or ? Can someone describe where in the chain of events check results reside in this buffer? We make use of this directive and the corresponding check_result_buffer_slots. As I understand it these refer to internal buffers used by the Nagios process to store commands and results after they have been read from the pipe file but before they are processed. This allows other high priority tasks to take precedence if required. For example, we currently use Nagios 2 with NDOutils and the code that passes results to the corresponding ndo2db daemon is in a single-threaded part of the code; if there is a delay in this operation (say caused by heavy load on the MySQL server), the Nagios process is held up until the delay has cleared. I use external_command_buffer_slots=40960 and check_result_buffer_slots=61440; you can see how many of these slots have been used in the current Nagios process if you run program nagiostats. What you are doing is allowing the Nagios process to get more memory for these buffers if required; assuming that your server has plenty of memory, you should have no problem if you increase the value of these directives. Jonathan Wheeler e-Science Centre Rutherford Appleton Laboratory -- Thanks that is exactly what I needed to know! It would seem it's doing fine but I will increase it two fold just in case. Below is the corresponding nagiostats line: Used/High/Total Command Buffers:0 / 2889 / 4096 I always thought this was referring to the external command file. :( -- 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] high load on nagios server due to status.cgi
Please always respond on-list. More below. On Aug 20, 2009, at 9:11 AM, rakesh kakde wrote: Hello Marc, Please find my answer to your question. What specific status.cgi view is causing this? Whenever we look for a perticular server which is being monitored by nagios in nagios portal, information about its all services to apper on nagios web portal is taking time to render. (It is not 2 min but exctly it is 40 to 45 sec) Once we hit such query one process with satus.cgi will be generated which will consumes the CPU load. There is no problem with IO devices. %iowait is always normal (zero %) For the Service comment and acknowledge: We have remedy ticketing system integrated with mastercell and nagios. Whenever there is a mail alert(problem) for any service/host monitoring, nagios will fire the alert. This alert will be send to mastercell and ticket will be created in remedy ticketing tool. Once the ticket is created in remedy, mastercell will acknowledge the problem and set the service or host comment and acknowledgement in status.dat file with that ticket no. You should configure mastercell to _not_ set the 'Persistent Comment' flag in the acknowledgment. Note that the meaning of this flag changed with 3.x. Now after the problem is resolved nagios will send the recovery alert but there is no any mechanism from mastercell which will check the staus of the remedy ticket and remove the comments and acknowledgement from status.dat If the service recovers, nagios will automatically remove the acknowledgement and the comment (if Persistent Comment is not set). This may or may not fit into your business processes, but it's there. Due to this number of comment and acknowledgement associated with host and services in status.dat file keep on increasing and hence the size of status.dat keep on increasing which in turn resulting in the rendering issue. I will be moving to a similar automatic system as you. We use Remedy as well but with manual acknowledgements. The process was essentially the same. Under 2.x I had a script that would look for ticket numbers in comments, get the status of the ticket and if it was closed, remove the comment. I don't expect that I'll need that under 3.x any longer but still have it running as it does a few other things I do still need like checking if a ticket is closed but the service is still not OK and removing the acknowledgement so it shows up again for our NOC. -- 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] Services on Host Templates
2009/8/20 Christopher McAtackney crist...@gmail.com: Hi all, If I create a host template, and associate a number of services with it, will hosts which inherit from that template also inherit the service associations? No. You can only associate actual hosts or hostgroups with a service. I believe hostgroups are still the most efficient way to specify the same service across a number of hosts. I've tried this out, but it doesn't seem to be working, and I'm wondering if there's something I'm missing. No. As far as I'm aware, http://nagios.sourceforge.net/docs/3_0/objecttricks.html is still the main advice for this kind of stuff. Cheers, Jim -- 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] Services on Host Templates
2009/8/20 Jim Avery j...@jimavery.me.uk: 2009/8/20 Christopher McAtackney crist...@gmail.com: Hi all, If I create a host template, and associate a number of services with it, will hosts which inherit from that template also inherit the service associations? No. You can only associate actual hosts or hostgroups with a service. Ok, that's the route I had originally gone, looks like I'll stick with it now. Cheers for the info, Chris -- 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] Understanding Check Load
Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig -- 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] Understanding Check Load
On Thursday 20 August 2009 16:33:39 cr...@hooters-uk.com wrote: Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. The setting you have tell nagios to check the following if the load is currently above 15 , was more then 10 in the last 5 minutes and more the 5 in the last 15 minutes . As your load in the 15 minute range is 7.60 - this will generate a warning. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY -- 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] Understanding Check Load
On Thu, Aug 20, 2009 at 11:33 AM, cr...@hooters-uk.comcr...@hooters-uk.com wrote: Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig Run cat /proc/cpuinfo and put that in here. -- 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] Understanding Check Load
On Thu, Aug 20, 2009 at 11:54 AM, Terrytd3...@gmail.com wrote: On Thu, Aug 20, 2009 at 11:33 AM, cr...@hooters-uk.comcr...@hooters-uk.com wrote: Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig Run cat /proc/cpuinfo and put that in here. Sorry, missed a number. I think it is generating a warning because your 15 minute average is above the level you wish to be warned at. 7.60 5. Which you are already guessing. My original thought was you should consider using the -r option which may offer a more realistic number by which you can compare the user experience to.Check out /usr/local/nagios/libexec/check_load --help for a detailed description of that option. A load average of 15 is pretty insane by my experience. Use the -r option and then go from there. -- 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] Understanding Check Load
- Original Message From: cr...@hooters-uk.com cr...@hooters-uk.com To: nagios-users@lists.sourceforge.net Sent: Thursday, August 20, 2009 9:33:39 AM Subject: [Nagios-users] Understanding Check Load Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig load average: 3.99, 4.56, 7.60 3.99 is the load on the server for the past 1 minute 4.56 past 5 minutes 7.60 past 15 minutes -w 15,10,5 Warn me if load is 15 for the past minute or 10 for the past 5 minutes or 5 for the past 15 minutes In this case the load is 5 for the past 15 minutes. Load is relative to a servers hardware including # of CPUs. So if you trust your server guy then you might want to adjust the check_load thresholds. -w 20,15,10 - This would stop the flapping. Or if you don't trust them you might want to cat /proc/cpuinfo, check service response times and otherwise verify they aren't overloading the server. ;) -- 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] Understanding Check Load
On 08/20/2009 12:33 PM, cr...@hooters-uk.com wrote: Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig It's not an exact science here - more of a black art. I found this page to be a good primer on the topic: http://hissohathair.blogspot.com/2008/07/tuning-nagios-load-checks.html DR -- 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] Understanding Check Load
On 08/20/2009 12:33 PM, cr...@hooters-uk.com wrote: Hi Group, I hope you can give me a better understanding of the check_load command as I'm unsure what my settings should be aligned to, if you take a look at the below command line I get Warning and Critical alerts all the time and I'm not sure what to alter the figure to as I do not understand them at the minute. command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 The above line give: WARNING - load average: 3.99, 4.56, 7.60 Looking at the warning and given the fact that the server guys says that his server is running OK, what would be the ideal -w and -c be to use. I will try and read up on the above but just looking for help now on this one server. Many thanks Craig It's not an exact science here - more of a black art. I found this page to be a good primer on the topic: -- 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] HELP SENDING SMS
Hi All, Does anyone could help on this one? The thing is, I've connected my monitor (nagios) with a gsm modem through serial port and created a script to send sms to notify manager of status from some hosts and services. The script access kermit and from it sends the message, follow below the script: (-SCRIPT SMS ---) #!/usr/bin/kermit + #.no := \%1 #.msg := \%2 set line /dev/ttyS0 set carrier-watch off set speed 9600 output at\13 wait 2 output at+cmgf=1\13 wait 2 output at+cmgs=\%1 \13 wait 2 output \%2 \26 exit (-SCRIPT SMS ---) I've called this script as sms, put it on this path (/usr/local/nagios/sms), on manual way I just need to do like that /usr/local/nagios/sms 'mobile phone' ' text message ', the script works just nice, after that test, the next step was to setting it in Nagios (/usr/local/nagios/etc/objects/command.cfg) define command{ command_name notify-host-by-sms command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$HOSTSTATE$ } define command{ command_name notify-by-sms command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$SERVICEDESC$ - State:$SERVICESTATE$' } After set it, looked to at the Nagios log and it advise me that some notifications are been sending through sms but I dont received it, Need help Thanks in advance Eduardo Barreto -- 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] Services not being associated with hosts
Hello, I've been trying to debug this issue for some time but i'm stuck and have not found a solution. Nagios -v nagios.cfg has no complaints, just warns me that services are not associated with hosts: Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 8 services. Checking hosts... Warning: Host 'ipdream' has no services associated with it! Warning: Host 'rails_playground' has no services associated with it! Checked 3 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 25 commands. Checking time periods... Checked 5 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: 2 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check My hosts.cfg, services.cfg, and commands.cfg have been stripped down so nothing else would cause these issues and look like: RELEVANT PARTS OF COMMANDS.CFG ### define command{ command_namecheck-site command_line$USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100% -p 5 } # HOSTS.CFG## define host{ usegeneric-host host_name rails_playground alias rails address ip_addr_of_host contactsnagiosadmin contact_groups admins } define host{ use generic-host host_name ipdream alias rails address ip_addr_of_host contactsnagiosadmin contact_groups admins } SERVICES.CFG # define service{ use generic-service display_nameipdream host_name ipdream check_command check-host-alive contactsnagiosadmins } define service{ use generic-service display_namerails_playground host_name rails_playground check_command check-host-alive contactsnagiosadmins } ## ALL REMAINING SERVICES LOOK LIKE FOLLOWING ENTRY WITH DIFFERENT URLS define service{ use generic-service display_namecheck_helpdesk host_name rails_playground check_command check-site!helpdesk_URL contactsnagiosadmins } I don't see how there are zero services attached to my host, the services are registered properly, just never associated with hosts. Any help would be greatly appreciated 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
[Nagios-users] snmp coldstart trap checking
I am using http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm for monitoring windows reboots. It works perfect for Windows, but is missing the hostname for the Linux servers. Looking quickly at the Perl code hasn't gotten me anyway (I'm super weak w/ Perl anyhow). Anyone doing this with another solution for Windows/Linux/Solaris hosts? Thanks! jlc -- 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] HELP SENDING SMS
From: Eduardo Barreto lec...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Thursday, August 20, 2009 2:23:31 PM Subject: [Nagios-users] HELP SENDING SMS Hi All, Does anyone could help on this one? The thing is, I've connected my monitor (nagios) with a gsm modem through serial port and created a script to send sms to notify manager of status from some hosts and services. The script access kermit and from it sends the message, follow below the script: (-SCRIPT SMS ---) #!/usr/bin/kermit + #.no := \%1 #.msg := \%2 set line /dev/ttyS0 set carrier-watch off set speed 9600 output at\13 wait 2 output at+cmgf=1\13 wait 2 output at+cmgs=\%1 \13 wait 2 output \%2 \26 exit (-SCRIPT SMS ---) I've called this script as sms, put it on this path (/usr/local/nagios/sms), on manual way I just need to do like that /usr/local/nagios/sms 'mobile phone' ' text message ', the script works just nice, after that test, the next step was to setting it in Nagios (/usr/local/nagios/etc/objects/command.cfg) define command{ command_name notify-host-by-sms command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$HOSTSTATE$ } define command{ command_name notify-by-sms command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$SERVICEDESC$ - State:$SERVICESTATE$' } After set it, looked to at the Nagios log and it advise me that some notifications are been sending through sms but I dont received it, Try outputting to a file using echo and verify the results are what you expected. Also, try running it manually as user nagios (if you haven't already). Lastly, nagios debugging mode can help. su nagios -c /usr/local/nagios/sms mobile phone text message define command{ command_name notify-host-by-sms #command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$HOSTSTATE$ command_line /bin/echo $PAGER$ Host:$HOSTNAME$ - State:$HOSTSTATE$ /var/spool/nagios/smsresults.tmp } define command{ command_name notify-by-sms #command_line /usr/local/nagios/sms $PAGER$ Host:$HOSTNAME$ - State:$SERVICEDESC$ - State:$SERVICESTATE$' command_line /bin/echo $PAGER$ Host:$HOSTNAME$ - State:$SERVICEDESC$ - State:$SERVICESTATE$' /var/spool/nagios/smsresults.tmp } -- 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] Services not being associated with hosts
From: Bruce Thayre br...@mipscomputation.com To: nagios-users@lists.sourceforge.net Sent: Thursday, August 20, 2009 2:41:24 PM Subject: [Nagios-users] Services not being associated with hosts Hello, I've been trying to debug this issue for some time but i'm stuck and have not found a solution. Nagios -v nagios.cfg has no complaints, just warns me that services are not associated with hosts: Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 8 services. Checking hosts... Warning: Host 'ipdream' has no services associated with it! Warning: Host 'rails_playground' has no services associated with it! Checked 3 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 25 commands. Checking time periods... Checked 5 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: 2 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check My hosts.cfg, services.cfg, and commands.cfg have been stripped down so nothing else would cause these issues and look like: RELEVANT PARTS OF COMMANDS.CFG ### define command{ command_namecheck-site command_line$USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100% -p 5 } # HOSTS.CFG## define host{ usegeneric-host host_name rails_playground alias rails address ip_addr_of_host contactsnagiosadmin contact_groups admins } define host{ use generic-host host_name ipdream alias rails address ip_addr_of_host contactsnagiosadmin contact_groups admins } SERVICES.CFG # define service{ use generic-service display_nameipdream host_name ipdream check_command check-host-alive contactsnagiosadmins } define service{ use generic-service display_namerails_playground host_name rails_playground check_command check-host-alive contactsnagiosadmins } ## ALL REMAINING SERVICES LOOK LIKE FOLLOWING ENTRY WITH DIFFERENT URLS define service{ use generic-service display_namecheck_helpdesk host_name rails_playground check_command check-site!helpdesk_URL contactsnagiosadmins } I don't see how there are zero services attached to my host, the services are registered properly, just never associated with hosts. Any help would be greatly appreciated thanks It's been a long time since I manually created entries but if I remember correctly service_description is a required field. Try adding one to one of the service blocks and nagios -v again. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service -- 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. :::
Re: [Nagios-users] Services not being associated with hosts
On Thu, 20 Aug 2009 14:41:24 -0700, Bruce Thayre br...@mipscomputation.com wrote: Hello, I've been trying to debug this issue for some time but i'm stuck and have not found a solution. Nagios -v nagios.cfg has no complaints, just warns me that services are not associated with hosts: Nagios 3.0.6 [..] define service{ use generic-service display_namerails_playground host_name rails_playground check_command check-host-alive contactsnagiosadmins } [..] I don't see how there are zero services attached to my host, the services are registered properly, just never associated with hosts. Any help would be greatly appreciated http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service You're missing defined variables. Those in red are required. Note however not all required fields need to be defined (see Implied Inheritance section in [1]). I'd consider this a sort of bug, because it's not telling you a required field is missing, simply skipping over it. It should at least throw a warning. [1]: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html -- Jonathan Angliss j...@netdork.net -- 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] snmp coldstart trap checking
On Thu, 20 Aug 2009 21:54:58 +, Joseph L. Casale jcas...@activenetwerx.com wrote: I am using http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm for monitoring windows reboots. It works perfect for Windows, but is missing the hostname for the Linux servers. What do you mean missing the hostname for the Linux servers? Looking quickly at the Perl code hasn't gotten me anyway (I'm super weak w/ Perl anyhow). Anyone doing this with another solution for Windows/Linux/Solaris hosts? I've contemplated setting something similar up for some items. snmpd can generate traps using DisMan (see man snmpd.conf under the Active Monitoring section), then you just need to set the handling. Of course, when it gets like that, I usually just break out the remote monitoring tools anyway (check_snmp, check_ssh, check_nrpe) but I guess it can depend, like interface up/down, or host down that never gets caught (as in the example). -- Jonathan Angliss j...@netdork.net -- 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] snmp coldstart trap checking
Since Windows works for you, my solution is not likely to help you much. But I'm using a WMI query to determine the uptime. I then set the plugin status to CRITICAL for uptimes less than 30 minutes, WARNING for uptimes less than 30 minutes. You should be able to do something very similar in Linux using the uptime command. Both solutions require installing some agent software on the monitored system. Joseph L. Casale wrote: I am using http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm for monitoring windows reboots. It works perfect for Windows, but is missing the hostname for the Linux servers. Looking quickly at the Perl code hasn't gotten me anyway (I'm super weak w/ Perl anyhow). Anyone doing this with another solution for Windows/Linux/Solaris hosts? Thanks! jlc -- 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