jueves, 15 de febrero de 2018

WNDOWS. PS. Check Services

To do a html report of services status, you could do:


get-service | ConvertTo-Html -Property Name,Status | foreach { 
if ($_ -like "*<td>Running</td>*") {$_ -replace "<tr>", "<tr bgcolor=green>"} 
else {$_ -replace "<tr>", "<tr bgcolor=red>"}} > c:get-service.html
The result:

For a normal consult:

If you want start one service down automaticaly


Get-Service BITS | %{ if ( $_.Status -eq "Stopped" ) {Start-Service BITS}}





by GoN | Published: February 15, 2018 | Last Updated: April 10, 2018

martes, 13 de febrero de 2018

NAGIOS. Scheduled Backup

There are 3 posibilites to do a Scheduler Backup from Nagios GUI.

This example is for to do a Local Backup



You need to give permission to nagios user





Check at Nagios XI
by GoN | Published: February 13, 2018 | Last Updated: