Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_image

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
9825
Files:
FileDescription
check_image.plcheck_image.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Downloads image file from website to check its dimensions.
Program takes three args: file url, height, width. If only the url is
given then the program will use a default size of 1 x 1. The program will
return success if the image dimensions match or failure if the dimensions do not.

$ ./check_image.pl
OK - Dimensions: 587 x 207
$./check_image.pl 100 200
CRITICAL - Dimensions do not match. Expected: 100 x 200 Actual: 587 x 207


Return status:
OK - 0 Image matched the dimensions
CRITICAL - 2 Image did not match the dimensions
UNKNOWN - 3 wget failed most like file does not exist