ちょっとしたコマンドや関数など、1つの記事にするほどでもないけど、調べたこととしてメモしておきたいものを書いていきます。
記事にする時間が無い時にメモとして書くこともあります。
後で記事にしたら消します。
/root/.my.cnf
に記載
# cat /root/.my.cnf
[client]
password="{$PASSWORD}"
/etc/zabbix/zabbix_server.conf
と/etc/zabbix/web/zabbix.conf.php
に記載
# cat /etc/zabbix/zabbix_server.conf
(省略)
### Option: DBUser
# Database user.
#
# Mandatory: no
# Default:
# DBUser=
DBUser=zabbix
### Option: DBPassword
# Database password.
# Comment this line if no password is used.
#
# Mandatory: no
# Default:
# DBPassword=
DBPassword={$PASSWORD}
(省略)
# cat /etc/zabbix/web/zabbix.co.f.php
(省略)
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '{$PASSWORD}';
(省略)
以下コマンドを実行
# executed factoryreset
This operation will reset the system to factory default!
Do you want to continue? (y/n)
***以下を入力***
y
以下コマンドを実行
# executed shutdown
This operation will shutdown the system !
Do you want to continue? (y/n)
***以下を入力***
y
「Excelファイルのパスワード設定と解除方法」Office Hack,2020-07-15(参照:2021-01-13)
のり「【Excel】値の貼り付けはショートカットキーで~Ctrl+Alt+V→V」働くオンナのパソコン教室,2020-02-07(参照:2021-01-13)
以下コマンドを実行
# get system status
sig9「FortiGate (FORTiOS) の CLI でバージョン情報を確認する」らくがきちょう,2017-09-01(参照:2021-01-06)
ID:admin
PW:無し
URL:https://192.168.1.99/
ID:admin
PW:無し
「NTTのフレッツ光でFortiGateを接続する。」FortiGateの設計/設定ガイド(参照:2020-01-06)
Zabbixサーバから以下コマンドを実行する
zabbix_get -s {$IPADDRESS} -k agent.version