Websites, Forms and Transactions

check_urlchange.py

Description:

Plugin to download webpage and check for changes or values.

Current Version

1.0

Last Release Date

2021-12-16

Compatible With

  • Nagios 4.x
  • Nagios XI

Project Files
Project Photos
Project Notes
Plugin takes a URL and extracts content from it using the provided regex. The matching logic looks at the first matching substring so regex must include (). Matched content can be checked against warning or critical thresholds, or it can be saved to a file to check for changes in subsequent matches. Examples: Check if the most recent version(5.8.7 as of upload) of XI has changed: python3 check_urlchange -u 'https://assets.nagios.com/downloads/nagiosxi/CHANGES-5.TXT' -r "^(d.d.d{1,})" -f change Check for any changes to the New Glarus Thumbprint calendar: python3 check_urlchange -u 'https://newglarusbrewing.com/beers/beerschedule' -r '(2021 Thumbprint Beers.*)' -f ng -s Check to see if a patch fix is released for XI 5.8.7: python3 check_urlchange -u 'https://assets.nagios.com/downloads/nagiosxi/CHANGES-5.TXT' -r "^5.8.(d)" -c ~:7
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
2,864