zabbix_export: version: '6.0' date: '2021-11-21T21:17:22Z' groups: - uuid: e5be8e009c61477ca38b16ae08352a19 name: 自宅ラックテンプレート templates: - uuid: 024ab0f7fd4240ada2de6a143173c6a3 template: NTP-remote-Japanese name: NTPテンプレート(リモート) description: | ## Overview NTP accuracy Template の日本語版です 英語版は[こちら](cat-app/ntp-accuracy-template)English version of the template is in the [link](cat-app/ntp-accuracy-template) . テンプレートを利用する場合zabbix\_agentd.confでリモートコマンドを有効にしてください。 EnableRemoteCommands=1 UnsafeUserParameters=1 ZabbixAgentがインストールされた環境に対しては NTPテンプレートが使用できます。 NTPアプライアンスなどZabbixAgentが使用できない環境のNTPサーバに対しては NTPテンプレート(リモート)が使用できます。 NTPテンプレート(リモート)を利用する場合はホストマクロにおいて {$NTP\_IP}に監視対象のIPアドレスを指定してください。 ntpqによって表示されるすべての項目が監視できます。 NTP精度情報をグラフ化することが可能です。 groups: - name: 自宅ラックテンプレート items: - uuid: fecfe76f83874f26ba0633c24b4cbcfb name: 'ntpq({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}]' delay: '3600' trends: '0' value_type: TEXT description: | "*" 参照同期中のサーバーを表している "+" クロック誤り検査に合格したサーバー "#" 参照同期中ではあるが、距離が遠いサーバー " " 左に何も表示されない場合(空欄)、サーバーを参照していない "x" クロック誤り検査に不合格となったサーバー ". " 参照リストから除外されたサーバー refid NTPサーバーが参照している上位ホスト名 or IPアドレス st NTPサーバーの階層 t 階層のタイプ l:local、u:unicast、m:multicast、b:broadcast when 最後のパケットを受け取ってからの時間(秒) poll 問い合わせを行う間隔(秒) reach 到達可能性に関するレジスタ・データ(8進数) delay 推定遅延(ミリ秒) offset 偏差補償(ミリ秒) jitter RMS Jitterの平均値(ミリ秒) tags: - tag: Application value: NTP(リモート) - uuid: eb50dd404259418d9daf0c25a5f1c1b0 name: 'NTP同期サーバ({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$1}''|sed s/*//]' delay: '1800' history: 60d trends: '0' value_type: TEXT description: 同期しているNTPサーバー名 tags: - tag: Application value: NTP(リモート) triggers: - uuid: c87d163a486748bbbb41141652e002f0 expression: '(last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$1}''|sed s/*//],#1)<>last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$1}''|sed s/*//],#2))=1' name: '同期しているNTPサーバが変更されました。({$NTP_IP})' status: DISABLED priority: INFO - uuid: 6e7a81899d1b40249a4641098c92d438 name: 'NTP上位サーバ({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$2}'']' delay: '1800' history: 60d trends: '0' value_type: TEXT description: 同期しているNTPサーバーの上位NTPサーバ tags: - tag: Application value: NTP(リモート) - uuid: ed928784f44643d89b2a4f0e7f334546 name: 'NTP階層({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$3}'']' delay: '1800' history: 60d description: 同期しているNTPサーバーのstratum tags: - tag: Application value: NTP(リモート) - uuid: 8502c95081e74881a968675eec5857f4 name: 'NTPポーリング間隔({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$6}'']' delay: '1800' history: 60d units: s description: NTPサーバとの同期間隔 tags: - tag: Application value: NTP(リモート) - uuid: 1c5fa8d4c36e4a849660406bbb272083 name: 'NTP推定遅延({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$8}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPパケットの推定遅延時間 tags: - tag: Application value: NTP(リモート) - uuid: 36cf9d55f851405b8706f0bed8bf6566 name: 'NTPオフセット({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPサーバとの時刻ズレ tags: - tag: Application value: NTP(リモート) triggers: - uuid: 525b0f6f409e45d6ae06d4308ec44a74 expression: 'last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])>5000 or last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])<-5000' name: '上位NTPとのずれが5sを超えました({$NTP_IP})' priority: AVERAGE - uuid: 5ba5a0128a6b4738bb0e592f9e8fdcd8 expression: 'last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])>50 or last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])<-50' name: '上位NTPとのずれが50msを超えました({$NTP_IP})' priority: WARNING dependencies: - name: '上位NTPとのずれが5sを超えました({$NTP_IP})' expression: 'last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])>5000 or last(/NTP-remote-Japanese/system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}''])<-5000' - uuid: a152b245776e4017802215d2a4f711ff name: 'NTP分散({$NTP_IP})' type: ZABBIX_ACTIVE key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$10}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPオフセットの過去8回の分散平均値 tags: - tag: Application value: NTP(リモート) macros: - macro: '{$NTP_IP}' value: 127.0.0.1 - uuid: fdb854ebadd64352a7ffe86ce1a69b98 template: NTP_Monitoring-Japanese name: NTPテンプレート description: | ## Overview NTP accuracy Template の日本語版です 英語版は[こちら](cat-app/ntp-accuracy-template)English version of the template is in the [link](cat-app/ntp-accuracy-template) . テンプレートを利用する場合zabbix\_agentd.confでリモートコマンドを有効にしてください。 EnableRemoteCommands=1 UnsafeUserParameters=1 ZabbixAgentがインストールされた環境に対しては NTPテンプレートが使用できます。 NTPアプライアンスなどZabbixAgentが使用できない環境のNTPサーバに対しては NTPテンプレート(リモート)が使用できます。 NTPテンプレート(リモート)を利用する場合はホストマクロにおいて {$NTP\_IP}に監視対象のIPアドレスを指定してください。 ntpqによって表示されるすべての項目が監視できます。 NTP精度情報をグラフ化することが可能です。 ## Overview NTP accuracy Template の日本語版です 英語版は[こちら](cat-app/ntp-accuracy-template)English version of the template is in the [link](cat-app/ntp-accuracy-template) . テンプレートを利用する場合zabbix\_agentd.confでリモートコマンドを有効にしてください。 EnableRemoteCommands=1 UnsafeUserParameters=1 ZabbixAgentがインストールされた環境に対しては NTPテンプレートが使用できます。 NTPアプライアンスなどZabbixAgentが使用できない環境のNTPサーバに対しては NTPテンプレート(リモート)が使用できます。 NTPテンプレート(リモート)を利用する場合はホストマクロにおいて {$NTP\_IP}に監視対象のIPアドレスを指定してください。 ntpqによって表示されるすべての項目が監視できます。 NTP精度情報をグラフ化することが可能です。 groups: - name: 自宅ラックテンプレート items: - uuid: 2a299cc8eb38459e95a1bbd18a53cd2a name: NTPプロセス key: 'proc.num[ntpd]' delay: '60' tags: - tag: Application value: NTP - uuid: 3163162b9a4c45fb80477acb7942c981 name: NTPDバージョン type: ZABBIX_ACTIVE key: 'system.run[ntpq -c version]' delay: '3600' trends: '0' value_type: CHAR tags: - tag: Application value: NTP - uuid: ec9b13142d7d40898e0da1a4076ad3fd name: ntpq type: ZABBIX_ACTIVE key: 'system.run[ntpq -p]' delay: '3600' trends: '0' value_type: TEXT description: | "*" 参照同期中のサーバーを表している "+" クロック誤り検査に合格したサーバー "#" 参照同期中ではあるが、距離が遠いサーバー " " 左に何も表示されない場合(空欄)、サーバーを参照していない "x" クロック誤り検査に不合格となったサーバー ". " 参照リストから除外されたサーバー refid NTPサーバーが参照している上位ホスト名 or IPアドレス st NTPサーバーの階層 t 階層のタイプ l:local、u:unicast、m:multicast、b:broadcast when 最後のパケットを受け取ってからの時間(秒) poll 問い合わせを行う間隔(秒) reach 到達可能性に関するレジスタ・データ(8進数) delay 推定遅延(ミリ秒) offset 偏差補償(ミリ秒) jitter RMS Jitterの平均値(ミリ秒) tags: - tag: Application value: NTP - uuid: 04f81281628c43f5a0bcb1662db0427c name: NTP同期サーバ type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$1}''|sed s/*//]' delay: '1800' history: 60d trends: '0' value_type: TEXT description: 同期しているNTPサーバー名 tags: - tag: Application value: NTP triggers: - uuid: 022559e910b44edd9dacd44c3dda93e0 expression: '(last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$1}''|sed s/*//],#1)<>last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$1}''|sed s/*//],#2))=1' name: 同期しているNTPサーバが変更されました。 status: DISABLED priority: INFO - uuid: 9def1c7ea69c4bdeb276ea118f4cbf37 name: NTP上位サーバ type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$2}'']' delay: '1800' history: 60d trends: '0' value_type: TEXT description: 同期しているNTPサーバーの上位NTPサーバ tags: - tag: Application value: NTP - uuid: 9438d69252e44f90a9421b2562a864c5 name: NTP階層 type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$3}'']' delay: '1800' history: 60d description: 同期しているNTPサーバーのstratum tags: - tag: Application value: NTP - uuid: f01a825325f04e338a1e3dbb75387ccf name: NTPポーリング間隔 type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$6}'']' delay: '1800' history: 60d units: s description: NTPサーバとの同期間隔 tags: - tag: Application value: NTP - uuid: a0948f34509e4b1fb973fe8289f74140 name: NTP推定遅延 type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$8}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPパケットの推定遅延時間 tags: - tag: Application value: NTP - uuid: 855ba6df458b471283f4b9c905bf47ef name: NTPオフセット type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$9}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPサーバとの時刻ズレ tags: - tag: Application value: NTP triggers: - uuid: 108bffb5f94a4cd8813be81a5c689f2b expression: 'last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])>5000 or last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])<-5000' name: 上位NTPとのずれが5sを超えました priority: AVERAGE - uuid: d81f18defa9044fda98bfc209fde8280 expression: 'last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])>50 or last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])<-50' name: 上位NTPとのずれが50msを超えました priority: WARNING dependencies: - name: 上位NTPとのずれが5sを超えました expression: 'last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])>5000 or last(/NTP_Monitoring-Japanese/system.run[ntpq -p|grep \* |awk ''{print$9}''])<-5000' - uuid: 22a0f923b6a64f47aead6b0655c9f2ce name: NTP分散 type: ZABBIX_ACTIVE key: 'system.run[ntpq -p|grep \* |awk ''{print$10}'']' delay: '1800' history: 60d value_type: FLOAT units: ms description: NTPオフセットの過去8回の分散平均値 tags: - tag: Application value: NTP graphs: - uuid: 208dfe117b33462698719fdd7f69b4bb name: NTP精度情報 graph_items: - color: C80000 item: host: NTP_Monitoring-Japanese key: 'system.run[ntpq -p|grep \* |awk ''{print$9}'']' - sortorder: '1' color: 00C800 item: host: NTP_Monitoring-Japanese key: 'system.run[ntpq -p|grep \* |awk ''{print$10}'']' - sortorder: '2' color: 0000C8 yaxisside: RIGHT item: host: NTP_Monitoring-Japanese key: 'system.run[ntpq -p|grep \* |awk ''{print$8}'']' - uuid: 5c13b088b0184a1aab212a9a1f01fe19 name: 'NTP精度情報({$NTP_IP})' graph_items: - color: C80000 item: host: NTP-remote-Japanese key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$9}'']' - sortorder: '1' color: 00C800 item: host: NTP-remote-Japanese key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$10}'']' - sortorder: '2' color: 0000C8 yaxisside: RIGHT item: host: NTP-remote-Japanese key: 'system.run[ntpq -p {$NTP_IP}|grep \* |awk ''{print$8}'']'