# Zabbix

### 初期構築参考ページ

<http://shobon.hatenablog.com/entry/2012/07/09/223100>

## バックアップ・リストア

### バックアップ

`sudo docker exec -ti zabbix_zabbix-db_1 /zabbix-backup/zabbix-mariadb-dump -u zabbix -p my_password -o /backups`

### リストア

`sudo docker exec -it zabbix_zabbix-db_1 /bin/bash`

`mysql -u zabbix -p`

`drop database zabbix;`

`create database zabbix;`

`grant all privileges on zabbix.* to zabbix@localhost ;`

`q;`

`mysql -u zabbix -p my_password zabbix < /backups/20171011-1356_db-3.0.0.sql`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yutakatay.gitbook.io/katapedia/doc/zabbix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
