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.
Category: CentOS
Posts in this category are specific to CentOS and may or may not work on Fedora and Red Hat or other UNIX based systems.
BASH – Picture / Video File Name Manipulation
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…
Red Hat / CentOS / Fedora – Splunk – PERL – Apache Server Status
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:
Red Hat / CentOS / Fedora – Apache – Prometheus Metrics
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/
Bash – Unix – Identify Distribution (What OS Am I On)
Unix Identification is a script that originated with VMWare but I have added some other systems to the script. No Install Option Install Option Basic parameters of the script No parameters passed you will be asked to type a,d,r,or i then press enter/return Parameter a (all details) passed Parameter d…
Red Hat – LFTP File Upload
If you run into issues with SSL certificate verification the below should help. NOTE: Even though we backup the original configuration, test this on a development server first.
Bash – Mass NSlookup
When you are moving from one server public IP to another you could use some help knowing things are changed. This bash script will do an NSLookup on various DNS servers.
UNIX – Laptop Setup
This is my basic setup for a laptop/desktop that I have for my family to use. Debian Based Should work on Debian, Ubuntu (all Ubuntu flavors) Red Hat Based Should work on Red Hat, CentOS, and Fedora
UNIX – List USB Devices With lsusb
On the Mac “lsusb -v” is rather clean in comparison to other systems.