Page 1 of 1

how to verify jpg image with WebInject

Posted: Fri Jun 10, 2016 11:28 am
by dlukinski
Hello XI Support

How to verify presence of jpg image on web-page (only object present) with Webinject?

Thank you

Re: how to verify jpg image with WebInject

Posted: Fri Jun 10, 2016 1:45 pm
by tmcdonald
Does the image have a consistent name like banner.jpg or something? If so that would be a simple string search. Otherwise I would need a bit more information how what is meant by "verify".

The WebInject manual is a great resource for looking this sort of thing up: http://www.webinject.org/manual.html

Re: how to verify jpg image with WebInject

Posted: Sat Jun 11, 2016 7:52 am
by dlukinski
tmcdonald wrote:Does the image have a consistent name like banner.jpg or something? If so that would be a simple string search. Otherwise I would need a bit more information how what is meant by "verify".

The WebInject manual is a great resource for looking this sort of thing up: http://www.webinject.org/manual.html
You right, no silver bullet with Web monitoring in Nagios
Please close

Re: how to verify jpg image with WebInject

Posted: Mon Jun 13, 2016 9:00 am
by mcapra
You might look into Selenium depending on how important monitoring this jpg is. It's worth mentioning that Selenium requires quite a bit more overhead than Webinject, though.

Here is a guide on how to integrate Selenium tests with your Nagios XI installation:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Closing per your request.