Posts for: #Scripting

Download file via powershell

This is extremely useful if you need to download something in Windows via CLI. This is just like wget on LInux. Previously I would use the precompiled wget program on machines, but now that I learned how to use powershell it’s great. mkdir c:\temp cd c:\temp powershell.exe Invoke-WebRequest -Uri LINKTOEXEHERE.EXE -OutFile EXENAMEHERE.EXE rm EXENAMEHERE.EXE
MORE →

Monitoring Domain Expiry

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. nano /scripts/check-domain-expiry After you have edited this file make sure to add it to a daily crontab. We don’t check the every check cycle since you’d probably get blocked due to high requests.
MORE →

Comments: