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

Directory Tree

check_image

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
13824
Files:
FileDescription
check_image.plcheck_image.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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