miércoles, 29 de agosto de 2018

NAGIOS. Apply configuration problems. Error processing object config files

My last day before starting my vacation, Nagios had a major error. Nobody could make changes.

When I arrived from my vacation, my co-worker RM found a solution. I explain the steps:

The error

It is possible found others similar errors


Steps



When you press restart, it is possible the Nagios have errors

"Reading configuration data...
   Read main config file okay...
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 89)
Error: Invalid max_check_attempts value for host 'CxxxxxxxxxxxN01'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/CxxxxxxxxxxN01.cfg', starting on line 16)
   Error processing object config files!"

In this output we can found the error. In this case is one contact, we have to connect to Nagios OS, found the file and delete this contact modifying the text configuration file.


I do not understand the cause because this error happens but In my case problem solved.

My recommendation is that before doing the procedure you have to have a backup.


Check at NagiosXI
by GoN | Published: August 29 2018 | Last Updated:

miércoles, 30 de mayo de 2018

ITIL Foundation Certificate

This month I have been very busy, very task at my work and very busy studing ITIL Foundation program.

Today I have one less task, I aproved the ITIL Foundation exam yesterday.




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: