Page 1 of 1
How to monitor a webpage specific number?
Posted: Wed Oct 31, 2018 8:30 am
by xpertech
There's a webpage which after successful login(username & password) then will display a number, is there a way to monitor this number if higher than specific value then will alert?
Re: How to monitor a webpage specific number?
Posted: Wed Oct 31, 2018 8:42 am
by mcapra
Are you currently monitoring this website? If so, how?
What authentication mechanisms are being used by this website?
check_http can do regex matching on a page's content via the
-r / --regex argument:
-r, --regex, --ereg=STRING
Search page for regex STRING
Assuming basic authentication credentials were provided via the
-a / --authorization argument to handle the login, this would allow you to craft a regex that matches "values greater than a number".
Re: How to monitor a webpage specific number?
Posted: Wed Oct 31, 2018 9:00 am
by xpertech
The steps are ...
1. Access to a webpage address
2. A login page display
3. Enter username and password
4. The page will generate and display a number
Re: How to monitor a webpage specific number?
Posted: Wed Oct 31, 2018 12:05 pm
by cdienger
Check out the web transaction wizard:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
It uses webinject(
http://www.webinject.org) to create web requests and monitor the results.