Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_defacement
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!
The script curl the provided url and compare it with the previous curl. Several tests can be made, the default one is calculating how many pecentage of code have been changed since last check.
Script language : Bash
Usage : ./check_defacement.sh -u [URL] -{OPTIONS}
[URL] (STRING - required) Url must be provided without http:// or https://
{OPTIONS}
-w WARNING -c CRITICAL
(INTEGER) Default check, calculating a percentage of changed code since last check, based on code lines changed. Default values: 5 for WARNING and 10 for CRITICAL
-m MD5 checksum test, if checksum of curled url have changed since last check, CRITICAL state.
-k KEYWORD (STRING)
If provided keyword is not present in website code, CRITICAL state.
-l FILE (STRING)
File with defacement words/phrases (one per line). You can create a file with words and phrases with defacement vocabulary (hack, money,...). CRITICAL state if defacement vocabulary found in code.
-p PROXY:PORT (STRING)
-s Use SSL for connection (https)
-h Help
-V Version
In case of WARNING or CRITICAL states, a time stamped backup of curled url is created in dump directory (default /tmp) for investigations.
Usage : ./check_defacement.sh -u [URL] -{OPTIONS}
[URL] (STRING - required) Url must be provided without http:// or https://
{OPTIONS}
-w WARNING -c CRITICAL
(INTEGER) Default check, calculating a percentage of changed code since last check, based on code lines changed. Default values: 5 for WARNING and 10 for CRITICAL
-m MD5 checksum test, if checksum of curled url have changed since last check, CRITICAL state.
-k KEYWORD (STRING)
If provided keyword is not present in website code, CRITICAL state.
-l FILE (STRING)
File with defacement words/phrases (one per line). You can create a file with words and phrases with defacement vocabulary (hack, money,...). CRITICAL state if defacement vocabulary found in code.
-p PROXY:PORT (STRING)
-s Use SSL for connection (https)
-h Help
-V Version
In case of WARNING or CRITICAL states, a time stamped backup of curled url is created in dump directory (default /tmp) for investigations.
Reviews (0)
Be the first to review this listing!