URL Content Regular Expression Match
Monitors the URL to ensure the specified regular expression is found in the content of the web page. A content mismatch may indicate that your website has experienced a security breach or is not functioning correctly.
- what is it exactly to enter?
- say if we are using nagios.org page ?
Do we check content before or after login?
- would be a different message in this case
What is URL Content Regular Expression Match ?
Re: What is URL Content Regular Expression Match ?
Code: Select all
./check_http -H nagios.com -f follow -R 'Keep your network'
Former Nagios Employee
Re: What is URL Content Regular Expression Match ?
If you want to check content prior to logging in, don't pass the -a authentication information. If you want to check content after logging in, then use it.
Note that this will NOT work with "username" and "password" fields that are part of forms on a web page. For instance, a bank page login is typically an interface to a web application and the username/password information is entered as fields on a page. Unless you can pass that information as GET parameters on the URL (which is VERY insecure) then this plugin will not allow you to check for content that is behind an authentication wall.
Note that this will NOT work with "username" and "password" fields that are part of forms on a web page. For instance, a bank page login is typically an interface to a web application and the username/password information is entered as fields on a page. Unless you can pass that information as GET parameters on the URL (which is VERY insecure) then this plugin will not allow you to check for content that is behind an authentication wall.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: What is URL Content Regular Expression Match ?
Is there any other way to pass authentication?eloyd wrote:If you want to check content prior to logging in, don't pass the -a authentication information. If you want to check content after logging in, then use it.
Note that this will NOT work with "username" and "password" fields that are part of forms on a web page. For instance, a bank page login is typically an interface to a web application and the username/password information is entered as fields on a page. Unless you can pass that information as GET parameters on the URL (which is VERY insecure) then this plugin will not allow you to check for content that is behind an authentication wall.
- specifically when Single-Sign-Ons are used?
Re: What is URL Content Regular Expression Match ?
You may be able to use webinject to do what you need. http://www.webinject.org/plugin.html
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: What is URL Content Regular Expression Match ?
Thanks @eloyd!
@dlukinski - are we good to mark this thread as resolved?
@dlukinski - are we good to mark this thread as resolved?
Former Nagios Employee
Re: What is URL Content Regular Expression Match ?
rkennedy wrote:Thanks @eloyd!
@dlukinski - are we good to mark this thread as resolved?
Thank you.
Problem is not resolved, but answers clarified some things for me.
Re: What is URL Content Regular Expression Match ?
Is it okay if I lock this up? The webinject stuff will be what you're looking for and you have a few posts open on that.
Re: What is URL Content Regular Expression Match ?
ssax wrote:Is it okay if I lock this up? The webinject stuff will be what you're looking for and you have a few posts open on that.
Yes please