Overview

set / echo %TEMP% echo %RABBITMQ_BASE% | NP++ Copy and replace ‘All matches’ | Edit advanced.config use NP++ Language Erlang (validator) | Ps1 ISE | Just folders = robocopy D:\History D:\HistoryClean /e /xf * | F2 edit cell Excel (no mouse) | cat zabbix_agentd.conf | grep “Hostname*” | If the queue is durable and the message is marked as persistent, RabbitMQ stores the message on disk. | File explorer storage account access -> Just run PowerShell as another user |

Telegraf->Zabbix

Telegraf->AMQP->Telegraf->InfluxDb

Telegraf->AMQP->Telegraf->Zabbix

# Get select lates version and install telegraf

wget https://dl.influxdata.com/telegraf/releases/telegraf-1.32.1_windows_amd64.zip -UseBasicParsing -OutFile telegraf-1.32.1_windows_amd64.zip
# Extract it
Expand-Archive .\telegraf-1.32.1_windows_amd64.zip -DestinationPath 'C:\Program Files\telegraf'

# Test it, after you made a telegraf.conf in ~\conf\
.\telegraf --config-directory 'C:\Program Files\Telegraf\telegraf-1.32.0\conf' --test
# Install It
.\telegraf --service install --config-directory 'C:\Program Files\Telegraf\telegraf-1.32.0\conf'
# Get size of all folders in folder

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
# gets the size of every directory under the $startDirectory directory
# can sometimes be a little slow if a directory has a lot of folders in it
$startDirectory = "C:\Program Files\Common Files\AspenTech Shared"
$dt = Get-Date
$cmp = hostname
$st = "Start check ; $($startDirectory) ; $($dt) ; $($cmp)"
Write-Host $st

# gets a list of folders under the $startDirectory directory
$directoryItems = Get-ChildItem $startDirectory | Where-Object {$_.PSIsContainer -eq $true} | Sort-Object
# loops throught the list, calculating the size of each directory
foreach ($i in $directoryItems)
{
    $subFolderItems = Get-ChildItem $i.FullName -recurse -force | Where-Object {$_.PSIsContainer -eq $false} | Measure-Object -property Length -sum | Select-Object Sum
    $result = $i.FullName + ";" + "{0:N2}" -f ($subFolderItems.sum / 1GB) + " GB"
	Write-Host $result

}


Categories

azureaz700
linuxrabbitmq
monitoringpython
powershellnetworking and security
docker5 min
ansiblegithub
labzabbix

Bash is text oriented.

Bash in a nutshell – e-lo:Engineer log out. (follow-e-lo.com)

Ps1 is object oriented.

Powershell in a nutshell – e-lo:Engineer log out. (follow-e-lo.com)

Mind maps – e-lo:Engineer log out.

Tags

sslfunctionappdocker
securityinfluxdbkusto
ps1

https://certlogik.com/decoder

https://www.cvedetails.com

Organize posts
Make a section with jump links to lower section
On top section name , then add a link:

Section:
Influx click link name #jump-2-influx
Python click link name #jump-2-python
Telegraf click link name #jump-2-telegraf

On header H2 Influx, Python and Telegraf (chapter) add anchor jump-2-influx, etc

Scroll to Top