1. Home /
  2. Configuring /
  3. OpMon /
  4. Configurations /
  5. Configuring the backup process on OpMon

Configuring the backup process on OpMon

Objective

Describe the required procedures for configuring the backup process on OpMon.

Target audience

Intended for OpMon administrators and the IT teams that need to perform backup settings on OpMon.

Solution

On IT area, after concluded an installation, configuration, activation and all is working in perfect order, one of the most important things is backup. Here we don’t forget that, and also is extremely important, because if takes place any hardware problem, we can easily recover the information.

For that there is a process that is ran on a daily basis on cron and is responsible for performing the base dump as well as the copy of the configuration files for a temporary location, in order to keep centralized all the OpMon  important information for a case of “disaster & recovery”.

For knowledge, the responsible task for that is called backup, as listed below.

[root@opmon /]# ls -l /etc/cron.d/backup
-rw-r--r-- 1 root root 319 Jul  7 11:38 /etc/cron.d/backup

Within this task we have the following content, where the file opmon-base.pl performs the base dump and the file opmon-conf.pl performs the compression of the configuration files.

[root@opmon /]# cat /etc/cron.d/backup
# Descomente, caso backup seja do Cliente
5 0 * * * root /usr/local/opmon/utils/opmon-base.pl -E >/dev/null 2>/dev/null
5 0 * * * root /usr/local/opmon/utils/opmon-conf.pl >/dev/null 2>/dev/null

The previous routine stores the files listed below on the directory /var/tmp/opmondb, where is only required a copy of them.

[root@opmon /]# ls -l /var/tmp/opmondb/
total 202548
drwxr-xr-x 2 root root      4096 May  3 10:30 mysql
drwxr-xr-x 2 root root      4096 Jul  8 00:05 nedi
drwxr-xr-x 2 root root      4096 Nov 30  2010 ocsweb
drwxr-xr-x 2 root root      4096 Jun 22 00:07 opcfg
drwxr-xr-x 2 root root     20480 Jul  8 00:09 opmon4
-rw-r--r-- 1 root root     34316 Jul 11 00:06 opmon-conf.tar.gz
drwxr-xr-x 2 root root     12288 Jul  8 00:36 opperf
drwxr-xr-x 2 root root      4096 Jul  6 19:37 otrs
drwxr-xr-x 2 root root      4096 Nov 30  2010 seagull
drwxr-xr-x 2 root root      4096 Nov 30  2010 snmptt
drwxr-xr-x 2 root root      4096 Nov 30  2010 Syslog

The advice is that these files are copied on a daily basis, the storage time corresponds with the client’s backup policy.

The copy of the files can be done in different ways, for example:

a) With a backup agent, where this agent can vary for each client according to the necessity. Keeping in mind that the agent must be compliant with Red Hat Enterprise 5 or CentOS 5.

b) With a “share”, preconfigured on OpMon, requiring the next steps for activation.

Place the process on system startup

[root@opmon opmondb]# chkconfig --level 345 smb on

Starting the process

[root@opmon samba]# service smb start
Starting SMB services:                               [  OK  ]
Starting NMB services:                               [  OK  ]

Done that, the access to backup files will be available through access to the path IP_do_OpMonopmon.

Some other options of the backup utility used:

 [root@opmon /]# /usr/local/opmon/utils/opmon-base.pl
Logging on file /var/log/backup.log

Usage: /usr/local/opmon/utils/opmon-base.pl [OPTION]...
Export/Import OpMon database

General Options:
        -r  - Import  database from /var/tmp/opmondb to mysql
        -e  - Export  database from mysql to /var/tmp/opmondb
        -R - Recover all databases from /var/tmp/opmondb to mysql
        -E - Export  all databases from mysql to /var/tmp/opmondb
Updated on 01/09/2021

Was this article helpful?

Ficou com alguma dúvida?

Perguntas & Respostas

Participe da nossa comunidade e tire dúvidas ou compartilhe respostas e ideias.

Participar

Professional Support

Não encontrou a resposta que procura? Não se preocupe, estamos aqui para ajudar!

Abrir chamado

Treinamento Online

Através da plataforma Udemy, você encontra todos os treinamentos das nossas soluções.

Inscreva-se