[Nagios-users] Compare HTTP Page to Saved Copy
Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Thanks in advance, Max -- Max Clark http://www.clarksys.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
Max Clark wrote: Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Thanks in advance, Max try check_http with the -s option and specify that the page fetch must have a certain string or the test will fail. -h -- Hari Sekhon - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Max Clark Sent: Wednesday, September 20, 2006 12:08 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Compare HTTP Page to Saved Copy Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Run check_http --help. You'll want one of -s, -r or -R. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
-m for the minimum size is also useful for a limited number of checks. I ran into this problem during a LAMP database problem resulted in the error page still being delivered. After all the webserver was still up. :) Bill On 9/20/06, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Max Clark Sent: Wednesday, September 20, 2006 12:08 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Compare HTTP Page to Saved Copy Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Run check_http --help. You'll want one of -s, -r or -R. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
I understand about the -s, -r and -R flags. These all look for a specific pattern. Can I look for the absense of a pattern? Thanks, Max On 9/20/06, Bill Jacqmein [EMAIL PROTECTED] wrote: -m for the minimum size is also useful for a limited number of checks. I ran into this problem during a LAMP database problem resulted in the error page still being delivered. After all the webserver was still up. :) Bill On 9/20/06, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Max Clark Sent: Wednesday, September 20, 2006 12:08 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Compare HTTP Page to Saved Copy Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Run check_http --help. You'll want one of -s, -r or -R. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 -- Max Clark http://www.clarksys.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
checkout negate On Wed, 2006-09-20 at 13:21 -0700, Max Clark wrote: I understand about the -s, -r and -R flags. These all look for a specific pattern. Can I look for the absense of a pattern? Thanks, Max On 9/20/06, Bill Jacqmein [EMAIL PROTECTED] wrote: -m for the minimum size is also useful for a limited number of checks. I ran into this problem during a LAMP database problem resulted in the error page still being delivered. After all the webserver was still up. :) Bill On 9/20/06, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Max Clark Sent: Wednesday, September 20, 2006 12:08 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Compare HTTP Page to Saved Copy Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Run check_http --help. You'll want one of -s, -r or -R. -- Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Compare HTTP Page to Saved Copy
[EMAIL PROTECTED] wrote: I understand about the -s, -r and -R flags. These all look for a specific pattern. Can I look for the absense of a pattern? So you want it to return critical only if the pattern is found? Check out the negate utility that I believe is still part of the plugins package: negate (nagios-plugins 1.4.0alpha1) 1.13 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 2002-2003 Nagios Plugin Development Team [EMAIL PROTECTED] Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] definition of wrapped plugin negate (-h | --help) for detailed help negate (-V | --version) for version information Options: -h, --help Print detailed help screen -V, --version Print version information -t, --timeout=INTEGER Seconds before connection times out (default: 9) [keep timeout than the plugin timeout to retain CRITICAL status] negate /usr/local/nagios/libexec/check_ping -H host Run check_ping and invert result. Must use full path to plugin negate /usr/local/nagios/libexec/check_procs -a 'vi negate.c' Use single quotes if you need to retain spaces This plugin is a wrapper to take the output of another plugin and invert it. If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL. If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK. Otherwise, the output state of the wrapped plugin is unchanged. Send email to nagios-users@lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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