Purpose
Gonsystem: Windows - Linux - Servers - Redes - Cisco - Comunicaciones - Monitorización - Seguridad - Seguridad
sábado, 14 de enero de 2023
miércoles, 28 de diciembre de 2022
WINDOWS. Scheduled Task. Delete logs
Purpose
Create a scheduled task to delete old logs on the server
Information
This commnad don't need install
Steps
Connect to server, open Windows scheduled tasks
Create a basic Task:
COMMAND: gci 'C:\inetpub\logs\LogFiles' -Include '*.log' -Recurse | ? LastWriteTime -LT (Get-Date).AddDays(-60) | Remove-Item
*gci alias is Get-ChildItem
by GoN | Published: December 28 2022 | Last Updated:
MONITORING. NAGIOS. Range alerts.
Purpose
How to specify parameters system value range in one alert.
Information
For example I want monitoring the AD Servers time when there are 30 secons of diference with the DC. This 30 secons could be positives or negatives diference.
Critica: -c -60:60
Warning: -v -30:30
Steps
by GoN | Published: December 28 2022 | Last Updated:
Suscribirse a:
Entradas (Atom)





