Thursday, December 23, 2021

PowerShell Refresh script

 For all of you out there who need to look like you're working...

$wsh = New-Object -ComObject WScript.Shell
while (1) {
  Start-Sleep -seconds 59

Tuesday, September 7, 2021

Delete files older than 30 days

 I have this come up from time to time so I thought I'd go ahead and post the one-liner.

gci | Where-Object {$_.LastWriteTime -lt  (get-date).AddDays(-30)}

Send that to a Remove-Item and you are set. 

Tuesday, March 30, 2021

Zabbix on Pi

I have it running on an old laptop currently but I might just have to grab another Pi to make this a permanent deal. I am really liking it. And it's so much more useful and attractive than the current Nagios install on my Pi3.

Friday, March 5, 2021

Plex on Pi

This weekend's project will include building a Plex server on a Raspberry Pi. 

I have yet to identify a suitable host for this operation. I may need to buy a new Pi4. Currently I have Nagios running on one and of course my Pihole on the other. I'm not sure either can handle the load of a Plex server. Not that it will get much use, but still. You never know. I will have to experiment with the functionality and use-cases. I know it can host all sorts of media, including but not limited to photos, movies, and music. So, we will have to see. I will load it up on the Pi3 running Nagios and if it seems useful, I'll grab a cheap Pi4 from the Amazons for a more permanent home. I have some new storage for photo backups arriving soon as well. That might just tie the whole thing together nicely.

Friday, January 29, 2021

Nagios on Pi

Here's a nice tutorial on how to get Nagios running on a Raspberry PI. I used a Pi3 and didn't have any trouble. 

I don't have a lot of devices to monitor inside my little network but it's interesting to see how to add things to Nagios and why there seem to be so many "front ends" built for Nagios management. 

I have yet to figure out Windows system monitoring and whether or not it's worth it to add things like my router and modem. I'd also like to add some external websites and see what features are available for cloud hosting. Fun stuff.