Re: [Nagios-users-br] Check_http nao funciona
Olá Francisco Como no padrão HTTP, erro 404 quer dizer que a pagina que voce não existe (ou não está acessível). Tente colocar uma barra no final da string fornecida. Tente acessar a URL usando o lynx ou o links. Abraços JGeraldo 2009/1/2 francisco fabio aquino alves alves_aqu...@hotmail.com Boa tarde a todos, pessoal iniciei o trabalho em uma empresa na qual já encontrei o nagios em funcionamento, porém me foi solicitado que fosse adicionado um check_http em uma maquina que é acessada de fora, porém esse check não funciona(ou mais provavel, não estou sabendo faze-lo). A seguinte mensagem é aoresentada na tela do nagios, HTTP WARNING: HTTP/1.1 404 Not Found. O que será que fiz de errado? O checkcommands.cfg para esse check esta assim: define command{ command_namecheck_http_hostExterno command_line$USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ } O que mais preciso fazer? Desculpem, mas ainda estou estudando sobre o nagios. _ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack -- -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- Abraços JGeraldo -- -- 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] Check_http nao funciona
você tá usando NRPE pra chear o host correto? Veja como tá no nrpe.cfg do host que vc quer checar. Abs[] 2009/1/2 francisco fabio aquino alves alves_aqu...@hotmail.com Boa tarde a todos, pessoal iniciei o trabalho em uma empresa na qual já encontrei o nagios em funcionamento, porém me foi solicitado que fosse adicionado um check_http em uma maquina que é acessada de fora, porém esse check não funciona(ou mais provavel, não estou sabendo faze-lo). A seguinte mensagem é aoresentada na tela do nagios, HTTP WARNING: HTTP/1.1 404 Not Found. O que será que fiz de errado? O checkcommands.cfg para esse check esta assim: define command{ command_namecheck_http_hostExterno command_line$USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ } O que mais preciso fazer? Desculpem, mas ainda estou estudando sobre o nagios. _ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack -- -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- -- http://www.augustoferronato.net/blog FreeBSD: The Freedom to Perform! http://www.spreadbsd.org/aff/40/1 -- -- 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] Monitoring Hosts without use plugins
...same does not apply for 3.x... :( On Fri, Jan 2, 2009 at 4:09 AM, Jon Angliss j...@netdork.net wrote: On Wed, 31 Dec 2008 09:05:02 -0500, Sean McAfee smca...@collaborativefusion.com wrote: Hugo Canalli wrote: Hello, I need to monitor to see if hosts are UP or DOWN, but my hosts are network devices that can not be installed any plugin for nagios as the NCSA. What we need is that the nagios track every time and let a message (sends a message by email or cell phone) if the host is down (without using any type of plugin for the device monitored. On the server management can be installed plugins nagios if necessary.) Do it possible with nagios? Version used: 3.0.6 nagios -- -t- The only difference between host and service checks are that host checks are not schedule and are only execed when a service check fails. In the end, generic-host-alive will still be using check_ping. Are you sure this is still the case? I'm pretty sure 3.x does host checks on a scheduled basis now. At least I'm seeing pings to all my hosts every minute. I believe that theory might have been correct for 2.x, but from what I have read the same does not apply for 3.x (see 17 in the what's new for v3). -- Jon Angliss -- ___ 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 -- -t- -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Monitoring Hosts without use plugins
On Jan 2, 2009, at 12:09 AM, Jon Angliss wrote: Are you sure this is still the case? I'm pretty sure 3.x does host checks on a scheduled basis now. Only if you've configured nagios to do so. http://nagios.sourceforge.net/docs/3_0/hostchecks.html Regularly scheduled host checks are optional. If you set the check_interval option in your host definition to zero (0), Nagios will not perform checks of the hosts on a regular basis. It will, however, still perform on-demand checks of the host as needed for other parts of the monitoring logic. -- Marc -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios sources
Hi everybody does somebody know where i can find the sources of Nagios? Many thanks T Granier-- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ntp_time : Offset Unknown for any host since yesterday
We too have the same issue. Is there any way we can resolve it without upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, and if I'm not mistaking one cannot upgrade only the nagios-plugins-ntp package one would be required to upgrade nagios-plugins (and hence also all the other nagios-plugins-* packages due to the depency to nagios-plugins). On 12/30/08, Thomas Guyot-Sionnest derm...@aei.ca wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30/12/08 12:44 PM, Toussaint OTTAVI wrote: Hi, I've been using check_ntp_time plugin to check the time offset of all my time servers. It's been working perfectly for a while. Last night (29 to 30/12 at 00:00), all the checks start having the same behavior quite at the same time. All of them return : NTP CRITICAL: Offset unknown Of course, all the time servers are running, and their time is accurate. I can't understand why all the checks start failing all at the same time. This is likely caused by a bug in versions 1.4.10 and 1.4.11 of check_ntp and check_ntp_time that is triggered when a leap second is inserted (which is the case this year). Fortunately I spotted it a while ago and you should be OK if you upgrade to 1.4.12 or later :) - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJWn2d6dZ+Kt5BchYRAlMYAKDIy89BiVaxxeBeuLQqKUyk5EyNzgCdH9uf YcQIMgjp0Sp4IHQnXzcZbcs= =DtDy -END PGP SIGNATURE- -- ___ 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 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 sources
On Jan 2, 2009, at 9:10 AM, Thierry Granier wrote: Hi everybody does somebody know where i can find the sources of Nagios? www.nagios.org. -- Marc -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ntp_time : Offset Unknown for any host since yesterday
On Jan 2, 2009, at 9:45 AM, Kenneth Holter wrote: We too have the same issue. Is there any way we can resolve it without upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, ... Download the plugins source code. Compile. cp check_ntp_time /path/to/ nagios/plugins. =) -- Marc -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ntp_time : Offset Unknown for any host since yesterday
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/01/09 10:54 AM, Marc Powell wrote: On Jan 2, 2009, at 9:45 AM, Kenneth Holter wrote: We too have the same issue. Is there any way we can resolve it without upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, ... Download the plugins source code. Compile. cp check_ntp_time /path/to/ nagios/plugins. =) It won't happen often anyways... Last leap second was inserted in 2005, you'll likely have it upgraded by the time they insert a new leap second :) - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXlJz6dZ+Kt5BchYRAomqAJ4xi87VYrIMHgZFXwMRYxuafu+LuACgtqJX hH6M1IrI8zJKsHDPjnvaFco= =MEmo -END PGP SIGNATURE- -- ___ 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] icons not displaying on Nagios 3.0.6 status map
Jon Angliss j...@netdork.net To 01/02/2009 12:03 nagios-users@lists.sourceforge.net AM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote: Been using Nagios 2.x for years and never had this problem. Just upgraded a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems to work fine, except that icons do not display on the status map. I basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. The icons display just fine in the host detail, hostgroup overview, etc. Yes, per upgrade instructions, this extended host info has been moved into the hosts config. Sample looks like: icon_image firewall_router.png vrml_image firewall_router.png statusmap_image firewall_router.gd2 2d_coords 100,200 Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html img), whilst the images in the status maps are imported using the GD libraries if I remember correctly. -- Jon Angliss I thought of this myself. The odd thing is that the status map function in the 2.9 Nagios package produced by the same repository maintainer worked just fine with the current installed GD library, which is 2.0.33. That GD library was not upgraded prior to the Nagios upgrade. If no one else has seen this same problem, then I'll contact the repository maintainer. FYI, this is on a CentOS 5 system using the nagios-3.0.6-1.el5.rf DAG Apt rpm. Thanks, James -- ___ 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] icons not displaying on Nagios 3.0.6 status map
On Fri, 2 Jan 2009 12:10:20 -0600, jmose...@corp.xanadoo.com wrote: Jon Angliss j...@netdork.net To 01/02/2009 12:03 nagios-users@lists.sourceforge.net AM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote: Been using Nagios 2.x for years and never had this problem. Just upgraded a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems to work fine, except that icons do not display on the status map. I basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. The icons display just fine in the host detail, hostgroup overview, etc. Yes, per upgrade instructions, this extended host info has been moved into the hosts config. Sample looks like: icon_image firewall_router.png vrml_image firewall_router.png statusmap_image firewall_router.gd2 2d_coords 100,200 Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html img), whilst the images in the status maps are imported using the GD libraries if I remember correctly. I thought of this myself. The odd thing is that the status map function in the 2.9 Nagios package produced by the same repository maintainer worked just fine with the current installed GD library, which is 2.0.33. That GD library was not upgraded prior to the Nagios upgrade. If no one else has seen this same problem, then I'll contact the repository maintainer. You could see what's different in the statusmap.cgi file using ldd to see what it's mapped against? ldd statusmap.cgi You may find a missing library. Also, you may not have upgraded your GD libraries, but if the package maintainer did for some reason, there might be conflicts there. -- Jon Angliss -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ntp_time : Offset Unknown for any host since yesterday
Thomas Guyot-Sionnest wrote: It won't happen often anyways... Last leap second was inserted in 2005, you'll likely have it upgraded by the time they insert a new leap second :) Not true, there was one inserted 2 days ago (Dec 31, 2008). That might very well have affected people with the wrong version of the plugin! -- Joe Hartley | Sr. Linux SysAdmin Retail Solutions, Inc. (formerly VeriSign RDS) 40 Sharpe Drive Cranston, RI 02920 joe.hart...@retailsolutions.com +1 401.824.5040 (o) | +1 401.824.5002 (f) -- ___ 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] icons not displaying on Nagios 3.0.6 status map
Jon Angliss j...@netdork.net To 01/02/2009 01:12 nagios-users@lists.sourceforge.net PM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Fri, 2 Jan 2009 12:10:20 -0600, jmose...@corp.xanadoo.com wrote: Jon Angliss j...@netdork.net To 01/02/2009 12:03 nagios-users@lists.sourceforge.net AM cc Subject Re: [Nagios-users] icons not displaying on Nagios 3.0.6 status map On Wed, 31 Dec 2008 17:20:06 -0600, jmose...@corp.xanadoo.com wrote: Been using Nagios 2.x for years and never had this problem. Just upgraded a test server to 3.0.6 via Dag RPM (from Dag 2.9 RPM) and everything seems to work fine, except that icons do not display on the status map. I basically get a blank square, regardless if I use .png, .jpg, .gd2, etc. The icons display just fine in the host detail, hostgroup overview, etc. Yes, per upgrade instructions, this extended host info has been moved into the hosts config. Sample looks like: icon_image firewall_router.png vrml_image firewall_router.png statusmap_image firewall_router.gd2 2d_coords 100,200 Attached is screen shot. Anyone else seen this? You probably don't have the related GD libraries installed that were used to build the RPM. All the other locations are simply links to the image (html img), whilst the images in the status maps are imported using the GD libraries if I remember correctly. I thought of this myself. The odd thing is that the status map function in the 2.9 Nagios package produced by the same repository maintainer worked just fine with the current installed GD library, which is 2.0.33. That GD library was not upgraded prior to the Nagios upgrade. If no one else has seen this same problem, then I'll contact the repository maintainer. -You could see what's different in the statusmap.cgi file using ldd to -see what it's mapped against? - - ldd statusmap.cgi - -You may find a missing library. Also, you may not have upgraded your -GD libraries, but if the package maintainer did for some reason, there -might be conflicts there. --- -Jon Angliss Thank's for the suggestions. No missing libraries. At this point, I am assuming that the GD libraries the maintainer used when building the rpm conflict with the latest GD library provided by CentOS. James -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ntp_time : Offset Unknown for any host since yesterday
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/01/09 02:24 PM, Joe Hartley wrote: Thomas Guyot-Sionnest wrote: It won't happen often anyways... Last leap second was inserted in 2005, you'll likely have it upgraded by the time they insert a new leap second :) Not true, there was one inserted 2 days ago (Dec 31, 2008). That might very well have affected people with the wrong version of the plugin! That's what I'm saying... 2005 - 2008 is 3 years, and the last broken version is already 1 year old... If we get another leap second in three years that release will be 4 years old. Also FYI leap seconds are only added/removed on fixed dates every 6 month (end of Dec or end of June). Moreover, any linux distribution that still maintain this version (i.e. in long term supports version or similar) can get the patch in and make a bugfix release. I can't change the past, I'm just saying the this problem likely won't affect many users when the next leap second is inserted. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXuVz6dZ+Kt5BchYRAi/tAKDMNGoypbnYzi31DZgD76lEGI7WQgCg3Ihs fv3mBRsqPbtYCnEJ8k62yrE= =KspN -END PGP SIGNATURE- -- ___ 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] 3 doubts on SMS alert system for Nagios : by kannel SMS gateway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30/12/08 08:36 AM, KK CHN wrote: Hi all ; I followed this tutorial http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1855.html [...] define command{ command_nameservice_notify_with_sms command_line$USER1$/notify_sms -a MY_MOBILE_NUMBER-u MY_USER_NAME-p MY_PASSWORD -m \ '$NOTIFICATIONTYPE$:$HOSTNAME$ is $SERVICESTATE$ ($SERVICEOUTPUT$)\' -t $CONTACTPAGER$ } I have 3 doubts doubt 1) is the above configuration correct ? [...] I don't know about this tool, so all I can suggest is to dead the doc... doubt 2 ) why I have to add again the following config section ? i mean the purpose of the following lines ? define command{ | command_namehost_notify_with_sms command_line/usr/lib/nagios/plugins/notify_sms -a 1012345 -u myusername_for_gw -p mypassword_for_gw -m \'$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($HOSTOUTPUT$)\' -t $CONTACTPAGER$ | } One is for service and the other for host notification, as some macros differs. The host one (above) seems OK, but in the service one (top of email) seems to be missing the service name macro: you will know that something is WARNING/CRITICAL/UNKNOWN about a service of your host but it won't tell you which service it is... which is usually kind of useful. :) doubt 3) if I added the 2 define command sections in commands.cfg as in the website , can I get an sms alert ?anything else I have to add in localhost.cfg ? (where I have services to check ssh,ping,http in the localhost . ) Don't forget to use the commands above in your contact definitions for host and service alerts. If you wish to receive emails as well, you will need the contacts twice (one for email and one for alerts). You can also play with the notification options; for instance I receive all WARNING/CRITICAL/OK/DOWN/UP alerts on email, but only CRITICAL/DOWN on pager, so I don't wake up in the middle of the night for something that doesn't require immediate attention. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJXu4Q6dZ+Kt5BchYRAp7ZAJ4lIN87ZAKVOdt9dtfXOJfci8PiMwCdG4bQ CxyBSh4GG2Dx0F0U4hHUGRY= =Qu2J -END PGP SIGNATURE- -- ___ 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