How to monitor a webpage specific number?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How to monitor a webpage specific number?

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to monitor a webpage specific number?

Post 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".
Former Nagios employee
https://www.mcapra.com/
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How to monitor a webpage specific number?

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor a webpage specific number?

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked