ちょっとしたコマンドや関数など、1つの記事にするほどでもないけど、調べたこととしてメモしておきたいものを書いていきます。
記事にする時間が無い時にメモとして書くこともあります。
後で記事にしたら消します。
このワークステーションとプライマリドメインの信頼関係に失敗しました
https://faq.mypage.otsuka-shokai.co.jp/app/answers/detail/a_id/282935/~/%5Bwindows%5D-「このワークステーションとプライマリドメインの信頼関係に失敗しました」と表示されログオンできない
https://qiita.com/valpasucucci43/items/aa051ed2b4e6a2a70649
https://win2012r2.com/2021/05/19/「システムのプロパティ」の開き方/
https://win2012r2.com/2020/09/11/active-directoryドメインから離脱する手順/
https://win2012r2.com/2020/04/05/active-directory-ドメインに参加する/
https://note.com/nerone1024/n/ne8c695a5419b
### 変更前
^(?:|RemoteRegistry|MMCSS|gupdate|SysmonLog|clr_optimization_v.+|clr_optimization_v.+|sppsvc|gpsvc|Pml Driver HPZ12|Net Driver HPZ12|MapsBroker|IntelAudioService|Intel\(R\) TPM Provisioning Service|dbupdate|DoSvc)$
### 変更後
#### WpnUserServiceの除外
#### CDPUserServiceの除外
#### BITSの除外
^(?:(CDP|Wpn)User[_A-Za-z0-9]+|BITS|RemoteRegistry|MMCSS|gupdate|SysmonLog|clr_optimization_v.+|clr_optimization_v.+|sppsvc|gpsvc|Pml Driver HPZ12|Net Driver HPZ12|MapsBroker|IntelAudioService|Intel\(R\) TPM Provisioning Service|dbupdate|DoSvc)$
Apache 2.4 server-status / server-info
[root]
$ watch -n 1 "wget -q http://127.0.0.1/server-status?auto -O -"
$ watch -n 1 "curl 'http://127.0.0.1/server-status?auto'"
「Template DB MySQL by Zabbix agent」を使うために設定を行っている。
Create .my.cnf in the home directory of Zabbix agent for Linux (/var/lib/zabbix by default ) or my.cnf in c:\ for Windows. The file must have three strings:
デフォルトから変更した記憶が無いが、ホームディレクトリを確認する。
[root]
$ cat /etc/passwd | grep zabbix
zabbix:x:988:984:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
ホームディレクトリが無い。
[root]
$ ls -l /var/lib/zabbix
ls: '/var/lib/zabbix' にアクセスできません: そのようなファイルやディレクトリはありません
https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/403436-no-folder-var-lib-zabbix
Create the directory /var/lib/zabbix yourself. Permissions should be owned by the zabbix user and read/write by the zabbix user.
自分で作成すればよいらしい。
[root]
$ mkdir /var/lib/zabbix
$ chown zabbix:zabbix /var/lib/zabbix
https://zabbix83.rssing.com/chan-59764673/article76.html
https://saw.hateblo.jp/entry/2019/03/28/183444
⇒mysqlのユーザに対するパスワード、/etc/zabbix/zabbix_server.conf
だけではなく、/etc/zabbix/web/zabbix.conf.php
にもパスワードが書かれるため変更する。
エラー内容
MySQL database "zabbix" on "localhost" is not available: Access denied for user 'zabbix'@'localhost' (using password: YES)
「バージョンの確認方法」ネットワークエンジニア魂(参照日:2022-02-01)
[root]
$ zabbix_server -V
[root]
$ zabbix_agentd -V
rokumura7「MySQLのバージョン確認方法」Qiita,2018-03-30(参照日:2022-02-01)
[root]
$ mysql --version
「Apacheのバージョン確認方法」CentOS/Rocky Linuxサーバ構築術 文具堂(参照日:2022-02-01)
[root]
$ httpd -v
icelandnono「PHP バージョン確認」,Qiita,2017-03-22(参照日:2022-02-01)
[root]
$ php -v
「Linux 文字化けしたファイルを削除する」システムガーディアン株式会社(参照日:2022-01-31)
[root]
### inode番号確認
$ ls -i
### 削除
$ find . -inum {inode} -exec rm -i {} \+
削除するか聞かれたら y を入力
「curl でリクエスト時にプロキシ設定する」
@TAKAyuki_atkwsk,Qiita,2013-12-19(参照日:2022-01-31)
### proxyサーバ設定
--proxy={IPADDRESS}:{PORT}
「curlでSSL証明書のエラーを無視する」HACK NOTE,2017-02-15(参照日:2022-01-31)
### SSL証明書の無視
-k https://{URL}
[root]
$ curl --proxy={IPADDRESS}:{PORT} -k https://{URL}
ex)
$ curl --proxy=192.168.1.1:8080 -k https://example.com/
「Static Routing - route add」ネットワークエンジニアとして (参照日:2022-01-31)
* コマンドプロンプトを管理者権限で開く
* 以下コマンドを入力
route -p add {NETWORK} mask {SUBNETMASK} {DEFAULTGATEWAY}
ex)
route -p add 192.168.0.0 mask 255.255.255.0 192.168.0.254