[Nagios-users-br] Problemas com snmp
Bom dia a todos, Estou tentando fazer o nagios monitorar meu servidor windows somente através de snmp, mas não estou conseguindo. apresenda o seguinte erro ao tentar a consulta manual: linux-g3ek:/usr/lib/nagios/plugins # ./check_snmp -H 192.168.0.183 -o .1.3.6.1.4.1.2021.4.6.0 -C public -w 80 -c 95 SNMP problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 192.168.1.183:161 .1.3.6.1.4.1.2021.4.6.0 Utilizando o plugin check_snmp_mem.pl também apresenta esse erro. Alguém ja teve esse problema? Como solucioná-lo? Cordialmente, Diego _ Emoticons e Winks super diferentes para o Messenger. Baixe agora, é grátis! http://specials.br.msn.com/ilovemessenger/pacotes.aspx -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -- 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: Res: notifications_enabled
Bom dia, o que realmente faz com que as notificações sejam enviadas, é a variável notification_enable (0 - desabilitado e 1 habilitado). O que pode estar acontecendo é que no generic-bd você tenha especificado essa mesma variável, sendo que quando você define a variável (use generic-bd) siginifica que aquele host irá utilizar as variáveis configuradas no generic-hd. -Mensagem original- De: ikami [mailto:ika...@yahoo.com.br] Enviada em: terça-feira, 14 de abril de 2009 18:01 Para: Unofficial Brazilian (Portuguese) Nagios Users List Assunto: [Nagios-users-br] Res: notifications_enabled Ola Daniel, Vlw pela dica mas nao resolveu. O problema persiste! Alguma outra sugestao? De: Daniel Barcelini dbarcel...@cirp.usp.br Para: Unofficial Brazilian (Portuguese) Nagios Users List nagios-users-br@lists.sourceforge.net Enviadas: Terça-feira, 14 de Abril de 2009 8:43:46 Assunto: Re: [Nagios-users-br] notifications_enabled Bom se nao me engano eh em notification_interval que fica setado tente colocar ao invés de 120 como esta para 0 e veja se para a notificação. abraços ikami escreveu: Boa tarde pessoal, Estou com um problema que é, aparentemente, fácil de resolver mas estou apanhando um pouco para tal. Tenho um servidor que está desligado a alguns dias. O Nagios corretamente começou a me enviar notificações de DOWN deste então. O problema é que não consigo fazer com o que o Nagios pare me enviar estas notificações. De hora em hora chega um email com o assunto: Host DOWN alert for BD-teste! Já tentei algumas coisas: 1- Habilitar o Scheduled Downtime pela interface WEB. Nela esta constando atualmente este 'Downtime' ativo. - In Scheduled Downtime? YES 2- Desabilitar as notificações no arquivos hosts.cfg. Ele está assim agora: define host{ use generic-bd host_name BD-teste alias Srv. BD de teste address x.y.z.w check_commandcheck-host-alive max_check_attempts 10 notifications_enabled 0 notification_interval 120 notification_period 24x7 notification_options d,u,r } 3- Este generic-bd que estou usando tem habilitada a opção de notifications_enabled 1. Já desabilitei tambem mas nao deu certo. 4- Já excutei o comando 'restart' e 'reload' diversas vezes. Alguem tem ideia do que pode estar acontecendo?? Íkami Garajau de Castilho Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -- -- Att:Daniel Barcelini ramal:(16)3602-4333 cel:(16)9992-6131 icq: 81462501 / msn:g3c4Øhotmail.com Tecnico de Redes - CIRP-USP Centro de Informática de Ribeirão Preto (http://www.cirp.usp.br) -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki Nenhum vírus encontrado nessa mensagem recebida. Verificado por AVG - www.avgbrasil.com.br Versão: 8.5.287 / Banco de dados de vírus: 270.11.58/2062 - Data de Lançamento: 04/16/09 08:12:00 -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -- 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] Nagiosgrapher x PNP4
Bom dia Júlio. Tempos atrás fiz um teste com os dois, mas preferi utilizar o PNP. A documentação do site oficial é suficiente pra instalar e deixar ele funcionando. Já o utilizado ha quase um ano, monitorando cerca de 100 hosts e estou bastante satisfeito. Abraços! --- Thiago da Silveira thiagodasilve...@gmail.com On Wed, Apr 15, 2009 at 1:53 PM, Julio Cesar Coimbra de Oliveira jce...@bio.fiocruz.br wrote: Srs, algum de voces conhecem alguma documentação sobre o nagiosgrapher ou o pnp4, e podem opinar sobre as caracteristicas de cada um destes adicionais. A principio me pareceu o pnp4 mas interessante. Julio Coimbra -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -- 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] nagios plugin configure:3377: error:
Tobias Exner wrote: Dear list, I've got a problem while compiling the nagios-plugins on a suse 10 box. I already searched through the web, but I didn't any helpful information. As I understood the compile needs the path /usr/lib/gcc/i586-suse-linux/4.0.2/include I don't know if that's right and how to fix it. The path does really not exists. It should have been installed along with gcc unless SuSE have broken packages. Try re-installing the gcc package and see if that works. gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) /usr/lib/gcc/i586-suse-linux/4.0.2/cc1 -E -quiet -v - -mtune=pentium ignoring nonexistent directory /usr/lib/gcc/i586-suse-linux/4.0.2/include #include ... search starts here: #include ... search starts here: /usr/local/include /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/include This is broken though. This path resolves to /usr/i586-suse-linux/include which I doubt should exist. I'm guessing autoconf is failing quite magnificently here for some reason. It could be because the real path is missing or because autoconf is a horrible mess. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Consolidating Log Files
Christopher McAtackney wrote: Hi all, I'm thinking of setting up my Nagios system in a Redundant Monitoring configuration - two servers (a primary and secondary) which both monitor all hosts / services, but only one of which has notifications enabled (the primary). Upon failure of the primary, the secondary will enable its own notifications (and upon the primary returning to an OK state, notifications will be disabled). One aspect of this that I am wondering how to tackle is consolidating my log files after a failure has occurred. I want my primary Nagios server's log files to reflect the total history of check results that have been made - and so would like the results from the secondary server for the time period when the primary was done, to be consolidated into the log files of the primary (for browsing through the web UI). Has anyone looked into this before, and how did you solve the problem of duplicate result checks being created in the primary log? Fortunately, line-based merging of files where every line is prefix with a timestamp is as simple as doing cat file1 file2 file3 filen... | sort -n merged-file Since the primary server won't be logging at all during the time it's offline, this merge-strategy will work quite nicely. Do note that it requires quite a lot of memory and is fairly cpu intensive though, so if you have a large installation, you'll want to filter out the period where the primary server was up from the logs of the secondary server and then just paste those in at the end of the primary server's logs. Some sed or perl-scripting can help you there. Note that for either of the above ways to work, the two server's clocks have to be in sync. If they're not, you need to take the clock-delta into consideration when merging the logs. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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_squid.pl
Hi all I've downloaded the plugins check_squid.pl + libplugin.pm on www.nagiosexchange.com! [r...@test1 libexec]# ./check_squid.pl -H 10.2.4.5 Duplicate specification H=s for option h Duplicate specification P=i for option p Squid cache OK (1014 FreeFileDesc) Use of uninitialized value in exit at ./check_squid.pl line 182. [r...@test1 libexec]# The result is Ok but there're some warnings about duplicate spec. and the exit function The script's version is from 2003 and I doesn't find a new one Any ideas?? Thanks a lot Jerome M. Meyer -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_squid.pl
Hi, 17.04.2009 11:21, Meyer Jerome wrote: Hi all I ’ ve d ownloaded the plugins check_squid.pl ... Any ideas?? Hmm... I never used that check_squid.pl. But I've got one I wrote a while ago. No documentation, no useful help, but feel free to try it... if it works for you I might polish at least the help output a bit and publish it. Note that I consider this a quick and dirty hack, and the best things to say about it are that it uses -w and 'use strict;' It uses snmp to check, i.e. your squid config needs lines like acl snmppublic snmp_community publi snmp_access allow snmppublic our_networks to allow snmp access to squid. Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de check_squid.pl Description: Perl program -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Changing the layout of the status map
Hi, I have been running Nagios for while now to monitor the ~150 servers I look after. Senior management have finally noticed what I have done and want to use Nagios to display the network status on a large display so anyone walking past the IT area can see at a glance what is going on with the network. The only issue with this is I can't get the network map to fit on a 1080p display without going off the edges thus rendering the display idea useless. Is there any way to alter the statusmap cgi page so that the information boxes at the top of the page are placed at the bottom of the page? Or alternatively is there any way to alter the scaling factor permanently? Thanks Jon -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Changing the layout of the status map
Please don't hijack a thread to post a new question. It means everyone who reads mailing lists threaded get to see your question as a response to someone else's, which isn't very nice. Jonathan Winch wrote: Hi, I have been running Nagios for while now to monitor the ~150 servers I look after. Senior management have finally noticed what I have done and want to use Nagios to display the network status on a large display so anyone walking past the IT area can see at a glance what is going on with the network. The only issue with this is I can't get the network map to fit on a 1080p display without going off the edges thus rendering the display idea useless. Is there any way to alter the statusmap cgi page so that the information boxes at the top of the page are placed at the bottom of the page? Or alternatively is there any way to alter the scaling factor permanently? Yes. Use a text-editor and re-compile it. Or add 2d_coords for all your hosts. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Vacation reply
New shopping new life! How are u doing these days?Yesterday I found a web of a large trading company from china,which is an agent of all the well-known digital product factories,and facing to both wholesalers,retailsalers,and personal customer all over the world. They export all kinds of digital products and offer most competitive and reasonable price and high quality goods for our clients,so i think we you make a big profit if we do business with them.And they promise they will provide the best after-sales-service.In my opinion we can make a trial order to test that. Look forward to your early reply!The Web address: www.gleefair.comE-mail: gleef...@188.comMSN : gleef...@hotmail.com -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] SMS notification for warning and critical
Hi All! Is there a way to send an SMS when a Service gives a warning, then acknowledged and then another SMS when it goes critical? Stalking does not seem to do what I need. Regards, Jim Mohr -- Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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 3.0.3 on FreeBSD defunct process
Hi, I have the same problem, I'm using Solaris 10, Nagios 3.0.2 and the last version of NDOUtils. The data is stored in a Mysql. Suddenly, the defunct processess start to appear. The load is: Total: 65 processes, 154 lwps, load averages: 1.41, 1.50, 1.52 The Nagios service is degradating : Services Actively Checked: Time Frame Services Checked = 1 minute: 0 (0.0%) = 5 minutes: 495 (69.7%) = 15 minutes: 710 (100.0%) = 1 hour: 710 (100.0%) Since program start: 710 (100.0%) The nagios binary is linked to pthread... No error messages are shown on /var/log/messages... Any idea/suggestion? Thanks in advance. Gian Paolo Buono escribió: this is my ldd... [r...@server nagios]# ldd /usr/local/bin/nagios /usr/local/bin/nagios: libm.so.5 = /lib/libm.so.5 (0x2810c000) libthr.so.3 = /lib/libthr.so.3 (0x28121000) libltdl.so.4 = /usr/local/lib/libltdl.so.4 (0x28134000) libc.so.7 = /lib/libc.so.7 (0x2813b000) I have write to freebsd news group and I have open a problem to FreeBSD...but withou result... :( thanks for the support ...bye On Fri, Apr 3, 2009 at 3:06 PM, Sean McAfee smca...@collaborativefusion.com wrote: Jonathan Call wrote: That sounds very familiar to the locking/contention issue FreeBSD 7.x has with Nagios 2.x. It has to do with how Nagios and FreeBSD handle threading. Unfortunately I don’t have any answers on how to fix it. I’ve had to leave my Nagios deployment on FreeBSD 6/Nagios 2 for the same reason: anything newer would lock up due to defunct Nagios processes. Does 'ldd /usr/local/bin/nagios' show it linked against libpthread or libthr? -- Sean McAfee System Engineer -- ___ 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 -- Ivan Muñoz Fuentes Tècnic Projectes Departament d'Educació Via Augusta, 202, Barcelona -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Antwort: Re: Antwort: Problem with MySql log
Sidenote: please stop top-posting, it's confusing and just spams my account with unneeded quotes. Thank you. Uhm, disable mysql binlogging? you think that this solution helpful? and I would not need this log? I don't know if you would need those binlogs, that's up to you and your setup. If you don't know what you usually do with binlogs, you probably don't need them... S GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_squid.pl
Hi Arno I've downloaded and installed the Net-SNMP package and that seems running : [r...@test1 Linux]# /usr/local/nagios/libexec/check_squid.pl -H 10.2.4.5 Squid OK: Up 35 minutes, 30.09, 89.92 MB, 5258 objects, 1 clients. Hit rate 0%|CPU=0%;10;20;; Storage=94289920;68711088128;68719476736;; Objects=5258;1032192;1048576;; HitRatio=0% IPs=9;3584;4096;; Clients=1;1792;2048;; Thanks for your answer and your great help... Jerome -Ursprüngliche Nachricht- Von: Arno Lehmann [mailto:a...@its-lehmann.de] Gesendet: Freitag, 17. April 2009 12:29 An: Nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] check_squid.pl Hi, 17.04.2009 11:21, Meyer Jerome wrote: Hi all I ' ve d ownloaded the plugins check_squid.pl ... Any ideas?? Hmm... I never used that check_squid.pl. But I've got one I wrote a while ago. No documentation, no useful help, but feel free to try it... if it works for you I might polish at least the help output a bit and publish it. Note that I consider this a quick and dirty hack, and the best things to say about it are that it uses -w and 'use strict;' It uses snmp to check, i.e. your squid config needs lines like acl snmppublic snmp_community publi snmp_access allow snmppublic our_networks to allow snmp access to squid. Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Changing the layout of the status map
2009/4/17 Jonathan Winch jwi...@aminocom.com: Hi, I have been running Nagios for while now to monitor the ~150 servers I look after. Senior management have finally noticed what I have done and want to use Nagios to display the network status on a large display so anyone walking past the IT area can see at a glance what is going on with the network. The only issue with this is I can't get the network map to fit on a 1080p display without going off the edges thus rendering the display idea useless. Is there any way to alter the statusmap cgi page so that the information boxes at the top of the page are placed at the bottom of the page? Or alternatively is there any way to alter the scaling factor permanently? Thanks Jon I recommend you take a look at the Nagios Extended Status Map http://nexsm.gridshield.net/Overview.html and/or NagVis http://www.nagvis.org/ . NEXSM can be a bit of a pain to install, so check the forum for recent posts on the subject before taking the plunge. NagVis is arguably easier to install, but relies on NDOUtils so you'll need to set up a MySQL database if you haven't done that already. The AutoMap feature I would guess might work very well for around 150 servers. hth, Jim -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Alarm
Is there any way to set alarm to beep only for one host? How do I set it? Cheers Eduardo -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_squid.pl
Hi Arno, Can you send me your squid plugin, please ? Thanks [ENVOYE PAR INTERNET] Frank BOURDEAU tel: 0241936560 fax: 0241936681 frank.bourd...@dga.defense.gouv.fr Meyer Jerome jerome.me...@baldata.ch 17/04/2009 15:07 A Nagios-users@lists.sourceforge.net cc Objet Re: [Nagios-users] check_squid.pl Hi Arno I've downloaded and installed the Net-SNMP package and that seems running : [r...@test1 Linux]# /usr/local/nagios/libexec/check_squid.pl -H 10.2.4.5 Squid OK: Up 35 minutes, 30.09, 89.92 MB, 5258 objects, 1 clients. Hit rate 0%|CPU=0%;10;20;; Storage=94289920;68711088128;68719476736;; Objects=5258;1032192;1048576;; HitRatio=0% IPs=9;3584;4096;; Clients=1;1792;2048;; Thanks for your answer and your great help... Jerome -Ursprüngliche Nachricht- Von: Arno Lehmann [mailto:a...@its-lehmann.de] Gesendet: Freitag, 17. April 2009 12:29 An: Nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] check_squid.pl Hi, 17.04.2009 11:21, Meyer Jerome wrote: Hi all I ' ve d ownloaded the plugins check_squid.pl ... Any ideas?? Hmm... I never used that check_squid.pl. But I've got one I wrote a while ago. No documentation, no useful help, but feel free to try it... if it works for you I might polish at least the help output a bit and publish it. Note that I consider this a quick and dirty hack, and the best things to say about it are that it uses -w and 'use strict;' It uses snmp to check, i.e. your squid config needs lines like acl snmppublic snmp_community publi snmp_access allow snmppublic our_networks to allow snmp access to squid. Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Precompiled Solaris Binaries
Hi everyone, I was wondering if there were pre-compiled binaries of Nagios 3.0.6, NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Alarm
On Apr 17, 2009, at 8:22 AM, Eduardo Barreto wrote: Is there any way to set alarm to beep only for one host? If you're talking about the audio alert, no. -- Marc -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] parsing log files on remote hosts
Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] forcing a check script once every startup
Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Thanks, Marc -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] parsing log files on remote hosts
On Fri, Apr 17, 2009 at 10:35 PM, kaouther mechri kmec...@gmail.com wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 I would imagine doing this via a simple shell or perl script and executing it via nrpe / nsca. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Precompiled Solaris Binaries
On Fri, Apr 17, 2009 at 10:08 PM, Christopher McAtackney crist...@gmail.com wrote: Hi everyone, I was wondering if there were pre-compiled binaries of Nagios 3.0.6, NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? Cheers, Chris Just throwing myself on the thread, I also was looking for these Marc.I -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] parsing log files on remote hosts
#!/bin/bashLOGFILE=/tmp/logfile WORD=word_to_find GREP=/bin/grep found=`$GREP -i $WORD $LOGFILE` if [ -z $found ] ## $found is zero bytes then ok=1 RETSTRING=0 ## To be used for the exit code LINE=No instances found else ok=0 RETSTRING=1 LINE=$found fi echo $LINE exit $RETSTRING ## End of snippet On Fri, Apr 17, 2009 at 7:35 AM, kaouther mechri kmec...@gmail.com wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Gary Every Pay it Forward! -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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 errors in nagios.log
On Thu, Apr 16, 2009 at 5:43 PM, Martin A. Brooks mar...@antibodymx.netwrote: Jim Avery wrote: You don't have more than one instance of the Nagios daemon running do you? Try stopping the Nagios daemon, make sure all instances of nagios are stopped (using ps -ef | grep nagios), and kill any which remain then start the Nagios daemon using /etc/init.d/nagios start . I looked for the before, and there's definitely only one nagios instance running. The problem persists across nagios restarts and reboots. Thanks -- Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam anti-virus Consultant| mar...@antibodymx.net | filtering. Inoculate antibodymx.net | m: +447792493388 | your mail system. try playing around with your check_result_reaper_* timings. I have a feeling that your check results are already stale before the reaper gets a chance to process them. tip: for a while, try setting max_check_result_file_age to 0 and see if you'd still get these errors. if not, then its a timing misconfiguration. cheers, Marc.I -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] parsing log files on remote hosts
On Apr 17, 2009, at 9:35 AM, kaouther mechri wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. You've seen answers on how to handle the remote communication. As far as the log parsing, you're not the first to want to do that. check_log is included in the standard plugins and there are others I am aware of that can be found by searching Nagios Exchange or the web. # Usage: ./check_log log_file old_log_file pattern # # Description: # # This plugin will scan a log file (specified by the log_file option) # for a specific pattern (specified by the pattern option). Successive # calls to the plugin script will only report *new* pattern matches in the # log file, since an copy of the log file from the previous run is saved # to old_log_file. -- Marc -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] parsing log files on remote hosts
Why reinvent the weel. There are many plug-in that adrress this need . Personally I use check_logfiles http://www.consol.com/opensource/nagios/check-logfiles without any problem. there are many examples in that website that can help you Best regards Dr Marouane HIMDI Ingénieur RD/RD Engineer KEREVAL 4, rue Hélène Boucher Z.A. Bellevue 35235 Thorigné Fouillard Tel : +33 (0)2 23 20 36 64 http://www.kereval.com/ http://www.kereval.com P Pensez à l'environnement: n'imprimez ce message et ses pièces jointes que si nécessaire ! _ De : Gary Every [mailto:gev...@gmail.com] Envoyé : vendredi 17 avril 2009 17:00 À : kaouther mechri Cc : Nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] parsing log files on remote hosts #!/bin/bash LOGFILE=/tmp/logfile WORD=word_to_find GREP=/bin/grep found=`$GREP -i $WORD $LOGFILE` if [ -z $found ] ## $found is zero bytes then ok=1 RETSTRING=0 ## To be used for the exit code LINE=No instances found else ok=0 RETSTRING=1 LINE=$found fi echo $LINE exit $RETSTRING ## End of snippet On Fri, Apr 17, 2009 at 7:35 AM, kaouther mechri kmec...@gmail.com wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Gary Every Pay it Forward! image001.gif-- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] parsing log files on remote hosts
On Friday 17 April 2009 16:35:08 kaouther mechri wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther check_logfiles is really nice. You can define several patterns to search and define several exclude patterns per warning/critical/logfile. http://www.consol.com/opensource/nagios/check-logfiles regards, Dani -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Precompiled Solaris Binaries
2009/4/17 Kyle O'Donnell kyleodonn...@gmail.com: I'll be compiling these shortly and uploading to nagios exchange. Great, good to hear :) Will these be available today Kyle? I'm quite eager to get my hands on them. Also, whilst on the subject of Nagios under Solaris, does anyone have examples of a bash script / manifest file for running the NRPE daemon under SMF? That would be a big help to me too. Cheers, Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] forcing a check script once every startup
2009/4/17 Marc Ismael marcism...@gmail.com: Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Thanks, Marc Forgive me if I'm missing something here, but can you not just add the relevant command to the /etc/init.d/nagios startup script? -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] New to Nagios -- simple problem with data from nrpe
There seems to be a lot of documentation on Nagios all over the web. I must say im impressed with it, even though im still installing it. Basically I have the server set up and monitoring itself, and I have one remote machine, which I have set up 6 tests on just for testing. I have the nagios plugins and nrpe installed and everything is working in that regard. If I run the check_nrpe command with any of the base remote commands in the /etc/nagios/nrpe.cfg file, I get the output to my screen. [nag...@mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c check_root_disk DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 (IP is the remote machine) However when these tests are added to server.cfg files, I get Status==UNKNOWN and Status Information=(No output returned from plugin) I reckon its something simple that ive missed, but ive gotten a bit lost looking for it. Server: Rhel5.1 Nagios-3.0.6 installed from source Plugins 1.4.13-4 from rpm Plugins-nrpe 2.12-6 from rpm Remote Server: Rhel4u6 nagios-nrpe-2.5.2-1 nagios-plugins-nrpe-2.12-6 nagios-plugins-1.4.13-1.el4 Thanks B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] forcing a check script once every startup
On Fri, Apr 17, 2009 at 11:55 PM, Jim Avery j...@jimavery.me.uk wrote: 2009/4/17 Marc Ismael marcism...@gmail.com: Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Thanks, Marc Forgive me if I'm missing something here, but can you not just add the relevant command to the /etc/init.d/nagios startup script? I dont want to go that route. If there's a way / workaround to have it as a nagios-executable plugin that'd be great. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Precompiled Solaris Binaries
Sorry, I meant to ask, are there also binaries available for Solaris 10 U6 x64? -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Consolidating Log Files
2009/4/17 Andreas Ericsson a...@op5.se: Christopher McAtackney wrote: Hi all, I'm thinking of setting up my Nagios system in a Redundant Monitoring configuration - two servers (a primary and secondary) which both monitor all hosts / services, but only one of which has notifications enabled (the primary). Upon failure of the primary, the secondary will enable its own notifications (and upon the primary returning to an OK state, notifications will be disabled). One aspect of this that I am wondering how to tackle is consolidating my log files after a failure has occurred. I want my primary Nagios server's log files to reflect the total history of check results that have been made - and so would like the results from the secondary server for the time period when the primary was done, to be consolidated into the log files of the primary (for browsing through the web UI). Has anyone looked into this before, and how did you solve the problem of duplicate result checks being created in the primary log? Fortunately, line-based merging of files where every line is prefix with a timestamp is as simple as doing cat file1 file2 file3 filen... | sort -n merged-file Since the primary server won't be logging at all during the time it's offline, this merge-strategy will work quite nicely. Do note that it requires quite a lot of memory and is fairly cpu intensive though, so if you have a large installation, you'll want to filter out the period where the primary server was up from the logs of the secondary server and then just paste those in at the end of the primary server's logs. Some sed or perl-scripting can help you there. Note that for either of the above ways to work, the two server's clocks have to be in sync. If they're not, you need to take the clock-delta into consideration when merging the logs. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. Cheers Andreas, I'll give this a shot, sounds good! Chris -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] New to Nagios -- simple problem with data from nrpe
On Fri, Apr 17, 2009 at 11:39 PM, Brian O'Mahony brian.omah...@curamsoftware.com wrote: There seems to be a lot of documentation on Nagios all over the web. I must say im impressed with it, even though im still installing it. Basically I have the server set up and monitoring itself, and I have one remote machine, which I have set up 6 tests on just for testing. I have the nagios plugins and nrpe installed and everything is working in that regard. If I run the check_nrpe command with any of the base remote commands in the /etc/nagios/nrpe.cfg file, I get the output to my screen. [nag...@mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c check_root_disk DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 (IP is the remote machine) However when these tests are added to server.cfg files, I get Status==UNKNOWN and Status Information=(No output returned from plugin) I reckon its something simple that ive missed, but ive gotten a bit lost looking for it. Server: Rhel5.1 Nagios-3.0.6 installed from source Plugins 1.4.13-4 from rpm Plugins-nrpe 2.12-6 from rpm Remote Server: Rhel4u6 nagios-nrpe-2.5.2-1 nagios-plugins-nrpe-2.12-6 nagios-plugins-1.4.13-1.el4 Thanks B i would do the following - make sure that nrpe on the nagios server is connecting to the correct port at the nrpe server by comparing nrpe config files. (check encryption, port, privs, etc). - make sure that nrpe service on the clients are actually running and listening on the configured port. - check service and command definitions Also I would double check the nrpe pdf documentation -- there are examples there to get you up and running with nrpe. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] forcing a check script once every startup
On Apr 17, 2009, at 9:47 AM, Marc Ismael wrote: Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Not directly but I'd try setting a really really long check_interval combined with retain_status_information 0, retain_nonstatus_information 0. -- Marc -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Audio Alert
How to set audio alert for some host not for all? Is there a way to do it? Cheers Eduardo -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] forcing a check script once every startup
On Sat, Apr 18, 2009 at 1:19 AM, Marc Powell m...@ena.com wrote: On Apr 17, 2009, at 9:47 AM, Marc Ismael wrote: Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Not directly but I'd try setting a really really long check_interval combined with retain_status_information 0, retain_nonstatus_information 0. -- Marc (I just kicked myself..) I have had this problem for a while, why didn't I think of that. Thanks Marc! Marc -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] New to Nagios -- simple problem with data from nrpe
Brian, First thing to check is version of NRPE? NRPE comes with two version, stripped and non-stripped. Make sure both machine has the same version running. If not, then play with the -n option to fix the incompatibility issues. Then check if your nrpe.cfg where you define the actual checks are the same on both nagios server and the monitored machine. I hope this helps. On Fri, Apr 17, 2009 at 12:54 PM, Marc Ismael marcism...@gmail.com wrote: On Fri, Apr 17, 2009 at 11:39 PM, Brian O'Mahony brian.omah...@curamsoftware.com wrote: There seems to be a lot of documentation on Nagios all over the web. I must say im impressed with it, even though im still installing it. Basically I have the server set up and monitoring itself, and I have one remote machine, which I have set up 6 tests on just for testing. I have the nagios plugins and nrpe installed and everything is working in that regard. If I run the check_nrpe command with any of the base remote commands in the /etc/nagios/nrpe.cfg file, I get the output to my screen. [nag...@mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c check_root_disk DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 (IP is the remote machine) However when these tests are added to server.cfg files, I get Status==UNKNOWN and Status Information=(No output returned from plugin) I reckon its something simple that ive missed, but ive gotten a bit lost looking for it. Server: Rhel5.1 Nagios-3.0.6 installed from source Plugins 1.4.13-4 from rpm Plugins-nrpe 2.12-6 from rpm Remote Server: Rhel4u6 nagios-nrpe-2.5.2-1 nagios-plugins-nrpe-2.12-6 nagios-plugins-1.4.13-1.el4 Thanks B i would do the following - make sure that nrpe on the nagios server is connecting to the correct port at the nrpe server by comparing nrpe config files. (check encryption, port, privs, etc). - make sure that nrpe service on the clients are actually running and listening on the configured port. - check service and command definitions Also I would double check the nrpe pdf documentation -- there are examples there to get you up and running with nrpe. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Cordially, Shadhin Rahman -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Audio Alert
Edurado, Try to use event handler to call the acutal *.wav file. On Fri, Apr 17, 2009 at 1:19 PM, Eduardo Barreto lec...@gmail.com wrote: How to set audio alert for some host not for all? Is there a way to do it? Cheers Eduardo -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Cordially, Shadhin Rahman -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ 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] Antwort: Re: Antwort: Problem with MySql log
I have master master replication setup for ndo. I ran into big log file issue. I found this php script for log rotation and modified few things to work on my setup. This works fine for me. I hope this helps. http://forums.mysql.com/read.php?52,210712. On Fri, Apr 17, 2009 at 8:36 AM, sascha.runsc...@gfkl.com wrote: Sidenote: please stop top-posting, it's confusing and just spams my account with unneeded quotes. Thank you. Uhm, disable mysql binlogging? you think that this solution helpful? and I would not need this log? I don't know if you would need those binlogs, that's up to you and your setup. If you don't know what you usually do with binlogs, you probably don't need them... S GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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 -- Cordially, Shadhin Rahman -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] how can i define check-sequences ?
Hi; I have defined a set of ~40 independent (fully unrelated) Tests for a large set of Webapplications (using bash shell scripts). I need all Tests to be executed every morning between 6 am and 8 am. So i have defined an appropriate time periods setting and i have configured all my tests appropriately. So far so well. Now Nagios schedules all tests at 6 am instead of distributing the tests over the available time period (6-8 am). But i do not want to let all Tests run at the same time. I rather would like to evenly distribute the checks over the given time period of 2 hours, so that each check starts 3 minutes after the previous check started... But it definitively would be sufficient, if the checks just run sequentially (one at a time)... How can i achieve the one or the other best ? The only idea i have right now, is to define different time periods for each test. But that does not sound very clever... Is there any better option available ? i am using following software versions: NagiosQl - 3.0.2 nagios 3.0.6 Suse-Linux 11.1 One remark: I am not (yet) well experienced with nagios, but i have a good knowledge about linux and Suse, so if there is a solution available which involves modifying the files directly on the OS, i have no problems as long as NagiosQL will not break ;-) Thanks for any hint. Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln tel.: +49 221 560 11 0 fax.: +49 221 560 11 20 mailto:i...@saxess.de http://www.saxess.de http://www.saxess.com http://www.saxess.org -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Fwd: Fwd: Apache Server configuration for Nagios 3.0
Hi James, I created a file *nagios.conf* under '*/usr/local/apache2/conf*' directory by typing the command *sudo touch nagios.conf*. Then, I keyed in the *ScriptAlias* and *Alias* directives. Then, I did a *sudo make install-webconfig*, which was again unsuccessful. Same error!! So, I created the directories *httpd* *conf.d* under the directories '* /etc*' '*/etc/httpd*' respectively. Then, I copied the *nagios.conf* file into the */etc/httpd/conf.d* directory using the command sudo cp */usr/local/apache2/conf/nagios.conf/etc/httpd/conf.d. * Ultimately, after running *sudo make install-webconfig*, I got the web interface for Nagios successfully installed. I was finally able to complete Nagios installation according to the Quickstart Guide for Ubuntu. Now, I am left with its configuration. Appreciate your suggestion. Thanks, Jim -- Forwarded message -- From: Jimmyboy jimmyjose2...@gmail.com Date: Apr 17, 2009 12:54 AM Subject: Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0 To: James Pratt jpr...@norwich.edu Cc: nagios-users@lists.sourceforge.net Hi James, You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not know how to find out the directory, Apache on my system refers to '/etc/httpd/conf.d/'. However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to the default location). Still, I am getting the same error on doing a 'sudo make install-webconf'. =-=-=-= I had raised a query on the Apache forum, on which of *apache2.conf* and * httpd.con*f is the *config file* of Apache. I got an answer stating that it depends on type of installation method followed. If the source files (.tar.gz) are used, then it is *httpd.conf*, else, *apache2.conf*. So, it is true in my case. Based on this, I observed an already installed Nagios setup on a different machine. It's *config file* is *apache2.conf* (again true, it was installed using Synaptic Package Manager). So, I was thinking to try installing using the 'Synaptic Package Manager' or 'apt-get'. However, both aren't working for me. Though I am able to proxy the internet (sitting behind a proxy server), Synaptic sudo apt-get say, they cannot resolve 'archive.ubuntu.com', etc. Any idea, how to go about? Thanks, Jim =-=-=-= On Tue, Apr 14, 2009 at 3:50 AM, James Pratt jpr...@norwich.edu wrote: Hi - sounds like your issue is that the generic make install in nagios src tries to drop a file called nagios.conf into httpd's (usually the default) location, /etc/httpd/conf.d/, which, appears does not exist on your server... If you can find what directory your apache uses for /etc/httpd/conf.d/ you can manually copy and paste whatever is in nagios.conf (the one trying to be installed from nagios src dir) into your /etc/httpd/conf/httpd.conf (You can likely disregard the apache2.conf stuff - sounds like they used their own file naming, as the default is normally httpd.conf) - Apache itself is very flexible, there are many ways to configure it - nagios simply guesses you are using redhat, so it tries to drop it's httpd config into /etc/httpd/conf.d) HTH ... Regards, jamie -Original Message- From: Jimmyboy [mailto:jimmyjose2...@gmail.com] Sent: Monday, April 13, 2009 2:25 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0 Hi, On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I understand that /etc/apache2/apache2.conf is the most important file. Though I have installed Apache in /etc/apache2 location, I do not have apache2.conf file as mentioned in the site. However, when I stop/start the Apache service using the command '/etc/apache2/bin/apachectl -k stop/start' respectively, and check http://127.0.0.1 http://127.0.0.1/ and ps -A | grep httpd, the results are OK. Thanks, Jim =-=-=-=-= -- Forwarded message -- From: Jimmyboy jimmyjose2...@gmail.com Date: Mon, Apr 13, 2009 at 11:49 PM Subject: Apache Server configuration for Nagios 3.0 To: nagios-users@lists.sourceforge.net Hi All, I am following the Quickstart Guide for installing NAGIOS using http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. One of the prerequisites is Apache2, which I installed, and was successful in getting It Works!! for http://127.0.0.1 http://127.0.0.1/ . However, I am stuck at point 5) Configure the Web Interface, make install- webconf. When this command is issued, this is what I get. /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf /usr/bin/install: cannot create regular file '/etc/httpd/conf.d/nagios.conf': No such file or directory make: *** [install-webconf] Error 1 Prefix for Apache: /etc/apache2 I believe the httpd.conf file and a few others also