BASH – Web Ping Log
Sometimes you need a simple log to know when a site is up or down. Create a script like below and then put it in your crontab.
This area of the site is dedicated to code snippets for quick and easy reference
Sometimes you need a simple log to know when a site is up or down. Create a script like below and then put it in your crontab.
Often there are needs to rename a picture or video to help with organizing the files on a computer or in cloud storage. The code below can help to make some organization easier. For those that are not use to the date format used below, it is specifically chosen to make it easier to organize…
Start out with a headless (no GUI) Raspberry Pi OS (Raspbian) With the SD Card still mounted in your computer, create a ssh file to start with SSH enabled (Note: no extension, no text) After a few seconds of letting the SD Card load in the Raspberry Pi find the IP and SSH into it…
A bit crude but works
Guide Followed: https://community.splunk.com/t5/Getting-Data-In/Reading-Apache-server-status-output/m-p/48158 First make sure your Apache server-status is setup (assuming you already have Apache/httpd installed) PERL script for scraping the data for SPLUNK Example:
Guides followed: https://machineperson.github.io/monitoring/2016/01/04/exporting-apache-metrics-to-prometheus.html https://www.shellhacks.com/prometheus-apache-exporter-install-config-ubuntu-centos/