miércoles, 9 de mayo de 2018

WINDOWS. PS. Copy and rewrite one file

Purpose

Create script to copy and remplace one file, if the destination file exist, the destination file will be rewrite without any confirmation.

Steps

$Origen =    "\\nas03\c$\tmp\file.txt"
$Destino =   "\\nas02\d$\tmp\"
Copy-Item  -Path $Origen -Destination $Destino -Recurse -force


Check at Windows 2012R2 & W10
by GoN | Published: May 9, 2018 | Last Updated:

viernes, 4 de mayo de 2018

NAGIOS. Check domain expire data

Purpose

Create alerts to notify when a domain expires with our Nagios monitoring system.

Steps


Create the service


Assign one host

Check at NagiosXI
by GoN | Published: May 4, 2018 | Last Updated:

miércoles, 2 de mayo de 2018

NAGIOS. Check certificates



Purpose

Create alerts to notify when a certificate expires with our Nagios monitoring system.

Steps
 
[ ] Create host: www.XXX.com






[ ] Create Service/s. I have 2 checks.





Option 1: 


Option 2:
 

You need add the host (www.XXX.com) to services with the option "Manage Hosts" in the Service Management configuration.




IMPORTANT: The option 2 normaly run ok, something the opction 1 check the first certificate in the host server not our certificate

[ ] The Result:

The information result is a bit different betwen the 2 options




Check at NagiosXI
by GoN | Published: May 2, 2018 | Last Updated: May 18, 2018