by Nick | Nov 19, 2020 | Bash, check_mk, Linux, Scripting, Tech
After using LibreNMS for years and it was giving me issues, I decided to give check_mk RAW a try. It works great. I was able to find a way to have check_mk check for Domain Expiry. The original post is HERE, but the formatting wasn’t working so I reposted it.... by Nick | Nov 12, 2020 | Bash, CentOS, Debian, Fun, Linux, Scripting, Tech
Today I was finally able to figure out how to stdin from a file for systemctl edit 🙂 env SYSTEMD_EDITOR=tee sudo -E systemctl edit –system [your_unit_name] < [your_content_file] I found it HERE. by Nick | Sep 2, 2020 | CentOS, Debian, Email, Fun, Linux
There’s many times when I want to send an email for testing using postfix and I can never remember how to do it. Here is how.This is super useful to make sure your SMTP relay thru AWS/Postmark is working as it should. Then you can tail /var/log/mail.log to see... by Nick | Aug 7, 2020 | Acme.sh, CentOS, Debian, LetsEncrypt, Linux, Nginx, Servers, Software, Unix
This is very useful when you have everything redirected with NGiNX to HTTPS, but acme.sh/LetsEncrypt requires HTTP for verification. server { listen 80; server_name DOMAIN.COM; root HTTP_ROOT; location ^~ /.well-known/acme-challenge/ { try_files $uri =404; } location... by Nick | Aug 7, 2020 | CentOS, cPanel, Email, Linux, Servers, Software
Sometimes you have an email account and you want to edit the email/hour for only one of the domain on the account, here is how to do that. SSH to the server ssh domainHere.com Edit the file /var/cpanel/users/userAccount file Add or Edit a line like this... by Nick | Aug 5, 2020 | CentOS, cPanel, Linux, Servers, Software, Tech
Sometimes you don’t know or want to change the root password to be able to log into WHM as root (yes I know you shouldn’t log in as root, but sometimes you do). Here’s the command to do that via CLI whmapi1 create_user_session user=root...