From 8d213d57b2090e8874bacf20db1e262f04ece258 Mon Sep 17 00:00:00 2001 From: Herbie34 <1227499+Herbie34@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:58:43 +0900 Subject: [PATCH] =?UTF-8?q?4.5.9=E6=97=A5=E6=9C=AC=E8=AA=9E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 102 ++- cgi/archivejson.c | 312 ++++---- cgi/archiveutils.c | 80 +- cgi/avail.c | 684 ++++++++--------- cgi/cgiutils.c | 110 +-- cgi/cmd.c | 684 +++++++++-------- cgi/config.c | 664 ++++++++--------- cgi/extinfo.c | 822 ++++++++++----------- cgi/histogram.c | 601 +++++++++------ cgi/history.c | 110 +-- cgi/jsonutils.c | 126 ++-- cgi/notifications.c | 127 ++-- cgi/objectjson.c | 302 ++++---- cgi/outages.c | 46 +- cgi/showlog.c | 46 +- cgi/status.c | 746 ++++++++++--------- cgi/statusjson.c | 304 ++++---- cgi/statusmap.c | 151 ++-- cgi/statuswml.c | 373 +++++----- cgi/summary.c | 416 ++++++----- cgi/tac.c | 208 +++--- cgi/trends.c | 461 +++++++----- common/downtime.c | 8 +- common/statusdata.c | 12 +- contrib/exfoliation/stylesheets/common.css | 3 +- html/js/histogram.js | 131 ++++ html/js/jsonquery.js | 2 +- html/js/map.js | 219 ++++++ html/js/trends.js | 204 +++++ html/jsonquery.html | 19 +- html/main.php | 12 +- html/side.php | 73 +- html/stylesheets/common.css | 4 +- include/cgiutils.h | 38 +- make-patch | 1 + sample-config/cgi.cfg.in | 7 + t/610cgistatus.t | 8 +- t/615cgierror.t | 2 +- t/617statuswml.t | 8 +- t/622extinfo-local.t | 4 +- t/623cmd-local.t | 480 ++++++------ t/660status-downtimes-comments.t | 2 +- 42 files changed, 4759 insertions(+), 3953 deletions(-) create mode 100644 html/js/histogram.js create mode 100644 html/js/map.js create mode 100644 html/js/trends.js create mode 100644 make-patch diff --git a/README.md b/README.md index 7ec66db918..044b6a27ee 100644 --- a/README.md +++ b/README.md @@ -1,81 +1,73 @@ -Nagios 4.x +Nagios 4.x 日本語化 ========== ![Nagios!](https://www.nagios.com/wp-content/uploads/2015/05/Nagios-Black-500x124.png) [![Nagios Core Tests](https://github.com/NagiosEnterprises/nagioscore/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/NagiosEnterprises/nagioscore/actions/workflows/test.yml?query=branch%3Amaster) -Nagios is a host/service/network monitoring program written in C and -released under the GNU General Public License, version 2. CGI programs -are included to allow you to view the current status, history, etc via -a web interface if you so desire. +NagiosはC言語で書かれたホスト/サービス/ネットワークプログラムで、 +GNU一般公衆利用許諾契約書、バージョン2の下でリリースされています。 +CGIプログラムは現在のステータス、履歴、などをWebインターフェースを +通じてみることができるようになっています。 -Visit the Nagios homepage at https://www.nagios.org for documentation, -new releases, bug reports, information on discussion forums, and more. +ドキュメント、新規リリース、バグレポート、掲示板の情報などは +Nagiosのホームページ https://www.nagios.org を訪れてください。 -[Features](https://www.nagios.org/about/features/) +[機能](https://www.nagios.org/about/features/) ----------------------------------------------- -* Monitoring of network services (via SMTP, POP3, HTTP, PING, etc). -* Monitoring of host resources (processor load, disk usage, etc.). -* A plugin interface to allow for user-developed service monitoring - methods. -* Ability to define network host hierarchy using "parent" hosts, - allowing detection of and distinction between hosts that are down - and those that are unreachable. -* Notifications when problems occur and get resolved (via email, - pager, or user-defined method). -* Ability to define event handlers for proactive problem resolution. -* Automatic log file rotation/archiving. -* Optional web interface for viewing current network status, - notification and problem history, log file, etc. - - -Changes +* SMTP、POP3、HTTP、PINGなどを経由したネットワークサービスの監視 +* CPU負荷、ディスク使用率などのホストリソースの監視 +* ユーザが開発したサービス監視方法を許可するインターフェースプラグイン +* 「親」ホストを用いたネットワークホスト階層を定義し、ダウンしているホストと到達不可能なホストの検出と区別を可能にする機能 +* 問題発生時および解決時の通知(電子メール、ポケットベル、またはユーザー定義の方法による) +* 積極的な問題解決のためのイベントハンドラ定義機能 +* ログファイルの自動ローテーション/アーカイブ +* 現在のネットワーク状態、通知、問題履歴、ログファイルなどを表示するためのオプションのWebインターフェイス + + +変更履歴 ------- -See the +重要な変更と修正の要約は [Changelog](https://raw.githubusercontent.com/NagiosEnterprises/nagioscore/master/Changelog) -for a summary of important changes and fixes, or the -[commit history](https://github.com/NagiosEnterprises/nagioscore/commits/master) -for more detail. +を、より詳細な情報は +[コミット履歴](https://github.com/NagiosEnterprises/nagioscore/commits/master) +をご覧ください。 -Download +ダウンロード -------- -Latest releases can be downloaded from https://www.nagios.org/download/ +最新版は https://www.nagios.org/download/ からダウンロードできます。日本語化パッチについては https://www.momo-i.org/chapter5/nagios/4.x.html をベースにしています。 -Installation +インストール方法 ------------ -[Quickstart installation guides](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart.html) -are available to help you get Nagios up and monitoring. +[クイックスタートインストールガイド](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart.html) +はNagiosの起動や監視に役立ちます。 -Documentation & Support +ドキュメントとサポート ----------------------- -* [User Guide](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/) -* [Nagios Core Documentation Library](https://library.nagios.com/library/products/nagioscore/) -* [Support Forums](https://support.nagios.com/forum/viewforum.php?f=7) -* [Additional Support Resources](https://www.nagios.org/support/) +* [ユーザーガイド](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/) +* [Nagiosコア ドキュメントライブラリ](https://library.nagios.com/library/products/nagioscore/) +* [サポートフォーラム](https://support.nagios.com/forum/viewforum.php?f=7) +* [追加のサポートリソース](https://www.nagios.org/support/) -Contributing +貢献 ------------ -The Nagios source code is hosted on GitHub: +Nagiosのソースコードは、GitHubで公開されています: https://github.com/NagiosEnterprises/nagioscore -Do you have an idea or feature request to make Nagios better? -Bugs can be reported by [opening an issue on GitHub](https://github.com/NagiosEnterprises/nagioscore/issues/new). -If you have identified a security related issue in Nagios, please contact -security@nagios.com. - -Patches and GitHub pull requests are welcome. Pull requests on GitHub -link commits in version control to review and discussion of the -changes, helping to show how and why changes were made, in addition to -who was involved. - -Created by Ethan Galstad, the success of Nagios has been due to the -fantastic community members that support it and provide bug reports, -patches, and great ideas. See the -[THANKS file](https://raw.githubusercontent.com/NagiosEnterprises/nagioscore/master/THANKS) -for some of the many who have contributed since 1999. +Nagiosをより良くするためのアイデアや機能要求がありますか? +バグは[GitHubで課題を開く](https://github.com/NagiosEnterprises/nagioscore/issues/new)によって報告することができます。 +もし、Nagiosでセキュリティ関連の問題を発見した場合、連絡してください。 +security@nagios.com + +パッチやGitHubのプルリクエストを歓迎します。 +GitHubのプルリクエストはバージョン管理下のコミットをレビューと変更の議論にリンクし、 +誰が関与したかに加えて、どのように、なぜ変更がなされたかを示すのに役立ちます。 + +Ethan Galstadによって作成されたNagiosの成功は、それをサポートし、バグレポート、パッチ、 +および素晴らしいアイデアを提供する素晴らしいコミュニティのメンバーによるものです。 +1999年から貢献した多くの人のために [感謝ファイル](https://raw.githubusercontent.com/NagiosEnterprises/nagioscore/master/THANKS) を参照してください。 diff --git a/cgi/archivejson.c b/cgi/archivejson.c index b08d55f6a1..2ba3e6866b 100644 --- a/cgi/archivejson.c +++ b/cgi/archivejson.c @@ -68,19 +68,19 @@ authdata current_authdata; const string_value_mapping valid_queries[] = { { "help", ARCHIVE_QUERY_HELP, - "Display help for this CGI" }, + "このCGIのヘルプを表示します" }, { "alertcount", ARCHIVE_QUERY_ALERTCOUNT, - "Return the number of alerts" }, + "アラート数を返します" }, { "alertlist", ARCHIVE_QUERY_ALERTLIST, - "Return a list of alerts" }, + "アラート一覧を返します" }, { "notificationcount", ARCHIVE_QUERY_NOTIFICATIONCOUNT, - "Return the number of notifications" }, + "通知数を返します" }, { "notificationlist", ARCHIVE_QUERY_NOTIFICATIONLIST, - "Return a list of notifications" }, + "通知一覧を返します" }, { "statechangelist", ARCHIVE_QUERY_STATECHANGELIST, - "Return a list of state changes" }, + "状態変化一覧を返します" }, { "availability", ARCHIVE_QUERY_AVAILABILITY, - "Return an availability report" }, + "稼働率レポートを返します" }, { NULL, -1, NULL }, }; @@ -96,445 +96,435 @@ static const int query_status[][2] = { }; const string_value_mapping valid_object_types[] = { - { "host", AU_OBJTYPE_HOST, "Host" }, - { "service", AU_OBJTYPE_SERVICE, "Service" }, + { "host", AU_OBJTYPE_HOST, "ホスト" }, + { "service", AU_OBJTYPE_SERVICE, "サービス" }, { NULL, -1, NULL }, }; const string_value_mapping valid_availability_object_types[] = { - { "hosts", AU_OBJTYPE_HOST, "Hosts" }, - { "hostgroups", AU_OBJTYPE_HOSTGROUP, "Hostgroups" }, - { "services", AU_OBJTYPE_SERVICE, "Services" }, - { "servicegroups", AU_OBJTYPE_SERVICEGROUP, "Servicegroups" }, + { "hosts", AU_OBJTYPE_HOST, "ホスト" }, + { "hostgroups", AU_OBJTYPE_HOSTGROUP, "ホストグループ" }, + { "services", AU_OBJTYPE_SERVICE, "サービス" }, + { "servicegroups", AU_OBJTYPE_SERVICEGROUP, "サービスグループ" }, { NULL, -1, NULL }, }; const string_value_mapping valid_state_types[] = { - { "hard", AU_STATETYPE_HARD, "Hard" }, - { "soft", AU_STATETYPE_SOFT, "Soft" }, + { "hard", AU_STATETYPE_HARD, "ハード" }, + { "soft", AU_STATETYPE_SOFT, "ソフト" }, { NULL, -1, NULL }, }; const string_value_mapping valid_states[] = { - { "no_data", AU_STATE_NO_DATA, "No Data" }, - { "host_up", AU_STATE_HOST_UP, "Host Up" }, - { "host_down", AU_STATE_HOST_DOWN, "Host Down" }, - { "host_unreachable", AU_STATE_HOST_UNREACHABLE, "Host Unreachable" }, - { "service_ok", AU_STATE_SERVICE_OK, "Service OK" }, - { "service_warning", AU_STATE_SERVICE_WARNING, "Service Warning" }, - { "service_critical", AU_STATE_SERVICE_CRITICAL, "Service Critical" }, - { "service_unknown", AU_STATE_SERVICE_UNKNOWN, "Service Unknown" }, - { "program_start", AU_STATE_PROGRAM_START, "Program Start" }, - { "program_end", AU_STATE_PROGRAM_END, "Program End" }, - { "downtime_start", AU_STATE_DOWNTIME_START, "Downtime Start" }, - { "downtime_end", AU_STATE_DOWNTIME_END, "Downtime End" }, + { "no_data", AU_STATE_NO_DATA, "データなし" }, + { "host_up", AU_STATE_HOST_UP, "ホストの稼働状態(UP)" }, + { "host_down", AU_STATE_HOST_DOWN, "ホストの停止状態(DOWN)" }, + { "host_unreachable", AU_STATE_HOST_UNREACHABLE, "ホストの未到達状態(UNREACHABLE)" }, + { "service_ok", AU_STATE_SERVICE_OK, "サービスの正常状態(OK)" }, + { "service_warning", AU_STATE_SERVICE_WARNING, "サービスの警告状態(WARNING)" }, + { "service_critical", AU_STATE_SERVICE_CRITICAL, "サービスの異常状態(CRITICAL)" }, + { "service_unknown", AU_STATE_SERVICE_UNKNOWN, "サービスの不明状態(UNKNOWN)" }, + { "program_start", AU_STATE_PROGRAM_START, "プログラム開始" }, + { "program_end", AU_STATE_PROGRAM_END, "プログラム終了" }, + { "downtime_start", AU_STATE_DOWNTIME_START, "ダウンタイム開始" }, + { "downtime_end", AU_STATE_DOWNTIME_END, "ダウンタイム終了" }, }; const string_value_mapping valid_host_states[] = { { "up", AU_STATE_HOST_UP, "Up" }, { "down", AU_STATE_HOST_DOWN, "Down" }, - { "unreachable", AU_STATE_HOST_UNREACHABLE, "Unreachable" }, + { "unreachable", AU_STATE_HOST_UNREACHABLE, "未到達" }, { NULL, -1, NULL }, }; const string_value_mapping valid_initial_host_states[] = { { "up", AU_STATE_HOST_UP, "Up" }, { "down", AU_STATE_HOST_DOWN, "Down" }, - { "unreachable", AU_STATE_HOST_UNREACHABLE, "Unreachable" }, - { "current", AU_STATE_CURRENT_STATE, "Current State" }, + { "unreachable", AU_STATE_HOST_UNREACHABLE, "未到達" }, + { "current", AU_STATE_CURRENT_STATE, "現在の状態" }, { NULL, -1, NULL }, }; const string_value_mapping valid_service_states[] = { { "ok", AU_STATE_SERVICE_OK, "Ok" }, - { "warning", AU_STATE_SERVICE_WARNING, "Warning" }, - { "critical", AU_STATE_SERVICE_CRITICAL, "Critical" }, - { "unknown", AU_STATE_SERVICE_UNKNOWN, "Unknown" }, + { "warning", AU_STATE_SERVICE_WARNING, "警告" }, + { "critical", AU_STATE_SERVICE_CRITICAL, "異常" }, + { "unknown", AU_STATE_SERVICE_UNKNOWN, "不明" }, { NULL, -1, NULL }, }; const string_value_mapping valid_initial_service_states[] = { { "ok", AU_STATE_SERVICE_OK, "Ok" }, - { "warning", AU_STATE_SERVICE_WARNING, "Warning" }, - { "critical", AU_STATE_SERVICE_CRITICAL, "Critical" }, - { "unknown", AU_STATE_SERVICE_UNKNOWN, "Unknown" }, - { "current", AU_STATE_CURRENT_STATE, "Current State" }, + { "warning", AU_STATE_SERVICE_WARNING, "警告" }, + { "critical", AU_STATE_SERVICE_CRITICAL, "異常" }, + { "unknown", AU_STATE_SERVICE_UNKNOWN, "不明" }, + { "current", AU_STATE_CURRENT_STATE, "現在の状態" }, { NULL, -1, NULL }, }; const string_value_mapping valid_host_notification_types[] = { { "nodata", AU_NOTIFICATION_NO_DATA, - "No Data" }, + "データなし" }, { "down", AU_NOTIFICATION_HOST_DOWN, - "Host Down" }, + "ホストの停止状態(DOWN)" }, { "unreachable", AU_NOTIFICATION_HOST_UNREACHABLE, - "Host Unreachable" }, + "ホストの未到達状態(UNREACHABLE)" }, { "recovery", AU_NOTIFICATION_HOST_RECOVERY, - "Host Recovery" }, + "ホストの復旧状態(RECOVERY)" }, { "hostcustom", AU_NOTIFICATION_HOST_CUSTOM, - "Host Custom" }, + "ホストカスタム" }, { "hostack", AU_NOTIFICATION_HOST_ACK, - "Host Acknowledgement" }, + "ホストの認知状態(Acknowledgement)" }, { "hostflapstart", AU_NOTIFICATION_HOST_FLAPPING_START, - "Host Flapping Start" }, + "ホストのフラッピング開始" }, { "hostflapstop", AU_NOTIFICATION_HOST_FLAPPING_STOP, - "Host Flapping Stop" }, + "ホストのフラッピング停止" }, { NULL, -1, NULL }, }; const string_value_mapping valid_service_notification_types[] = { { "nodata", AU_NOTIFICATION_NO_DATA, - "No Data" }, + "データなし" }, { "critical", AU_NOTIFICATION_SERVICE_CRITICAL, - "Service Critical" }, + "サービスの異常状態(CRITICAL)" }, { "warning", AU_NOTIFICATION_SERVICE_WARNING, - "Service Warning" }, + "サービスの警告状態(WARNING)" }, { "recovery", AU_NOTIFICATION_SERVICE_RECOVERY, - "Service Recovery" }, + "サービスの復旧状態(RECOVERY)" }, { "custom", AU_NOTIFICATION_SERVICE_CUSTOM, - "Service Custom" }, + "サービスカスタム" }, { "serviceack", AU_NOTIFICATION_SERVICE_ACK, - "Service Acknowledgement" }, + "サービスの認知状態(Acknowledgement)" }, { "serviceflapstart", AU_NOTIFICATION_SERVICE_FLAPPING_START, - "Service Flapping Start" }, + "サービスのフラッピング開始" }, { "serviceflapstop", AU_NOTIFICATION_SERVICE_FLAPPING_STOP, - "Service Flapping Stop" }, + "サービスのフラッピング停止" }, { "unknown", AU_NOTIFICATION_SERVICE_UNKNOWN, - "Service Unknown" }, + "サービスの不明状態(UNKNOWN)" }, { NULL, -1, NULL }, }; option_help archive_json_help[] = { { "query", - "Query", + "クエリ", "enumeration", { "all", NULL }, { NULL }, NULL, - "Specifies the type of query to be executed.", + "実行するクエリのタイプを指定します。", valid_queries }, { "formatoptions", - "Format Options", + "フォーマットオプション", "list", { NULL }, { "all", NULL }, NULL, - "Specifies the formatting options to be used when displaying the results. Multiple options are allowed and are separated by a plus (+) sign..", + "結果を表示するときに使用するフォーマットオプションを指定します。複数のオプションはプラス(+)で区切ることができます。", svm_format_options }, { "start", - "Start", + "開始", "integer", { NULL }, { "alertlist", "notificationlist", "statechangelist", NULL }, NULL, - "Specifies the index (zero-based) of the first object in the list to be returned.", + "返される一覧の最初のオブジェクトのインデックス(ゼロベース)を指定します。", NULL }, { "count", - "Count", + "カウント", "integer", { NULL }, { "alertlist", "notificationlist", "statechangelist", NULL }, NULL, - "Specifies the number of objects in the list to be returned.", + "返される一覧のオブジェクト数を指定します。", NULL }, { "dateformat", - "Date Format", + "日付フォーマット", "string", { NULL }, { "all", NULL }, NULL, - "strftime format string for values of type time_t. In the absence of a format, the JavaScript default format of the number of milliseconds since the beginning of the Unix epoch is used. Because of URL encoding, percent signs must be encoded as %25 and a space must be encoded as a plus (+) sign.", + "time_t型の値についてのstrftimeフォーマット文字列です。フォーマットが存在しない場合には、Unixエポックのはじめからのミリ秒のJavascriptデフォルトフォーマットが使用されます。なぜならURLエンコードのため、パーセント記号は%25としてエンコードする必要があり、スペースはプラス記号(+)としてエンコードされなければなりません。", NULL }, { "objecttypes", - "Object Types", + "オブジェクトタイプ", "list", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", NULL }, NULL, - "Type(s) of object to be included in query results.", + "クエリ結果に含まれるオブジェクトのタイプです。", valid_object_types }, { "objecttype", - "Object Type", + "オブジェクトタイプ", "enumeration", { "statechangelist", NULL }, { NULL }, NULL, - "Type of object to be included in query results.", + "クエリ結果に含まれるオブジェクトのタイプです。", valid_object_types }, { "availabilityobjecttype", - "Availability Object Type", + "稼働率オブジェクトタイプ", "enumeration", { "availability", NULL }, { NULL }, NULL, - "Type of object to be included in query results.", + "クエリ結果に含まれるオブジェクトのタイプです。", valid_availability_object_types }, { "statetypes", - "State Types", + "状態のタイプ", "list", { NULL }, { "alertcount", "alertlist", "statechangelist", "availability", NULL }, NULL, - "Type(s) of states to be included in query results.", + "クエリ結果に含まれるオブジェクトのタイプです。", valid_state_types }, { "hoststates", - "Host States", + "ホストの状態", "list", { NULL }, { "alertcount", "alertlist", NULL }, NULL, - "Host states to be included in query results.", + "クエリ結果に含まれるホストの状態です。", valid_host_states }, { "servicestates", - "Service States", + "サービスの状態", "list", { NULL }, { "alertcount", "alertlist", NULL }, NULL, - "Service states to be included in query results.", + "クエリ結果に含まれるサービスの状態です。", valid_service_states }, { "hostnotificationtypes", - "Host Notification Types", + "ホスト通知タイプ", "list", { NULL }, { "notificationcount", "notificationlist", NULL }, NULL, - "Host notification types to be included in query results.", + "クエリ結果に含まれるホスト通知タイプです。", valid_host_notification_types }, { "servicenotificationtypes", - "Service Notification Types", + "サービス通知タイプ", "list", { NULL }, { "notificationcount", "notificationlist", NULL }, NULL, - "Service notification types to be included in query results.", + "クエリ結果に含まれるサービス通知タイプです。", valid_service_notification_types }, { "parenthost", - "Parent Host", + "上位ホスト", "nagios:objectjson/hostlist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", NULL }, NULL, - "Limits the hosts or services returned to those whose host parent is specified. A value of 'none' returns all hosts or services reachable directly by the Nagios core host.", + "そのホストの上位を指定したものを返すホストまたはサービスを制限します。「該当なし(none)」の値は、Nagiosのホストによって直接到達可能な全てのホストやサービスを返します。", parent_host_extras }, { "childhost", - "Child Host", + "下位ホスト", "nagios:objectjson/hostlist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", NULL }, NULL, - "Limits the hosts or services returned to those whose having the host specified as a child host. A value of 'none' returns all hosts or services with no child hosts.", + "そのホストの下位を指定したものを返すホストまたはサービスを制限します。「該当なし(none)」>の値は、下位ホストとの全てのホストやサービスを返します。", child_host_extras }, { "hostname", - "Host Name", + "ホスト名", "nagios:objectjson/hostlist", { "statechangelist", NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", "availability", NULL }, NULL, - "Name for the host requested. For availability reports if the " - "availability object type is hosts and the hostname is not " - "specified, the report will be generated for all hosts. Likewise, " - "if the availability object type is services and the hostname is not " - "specified, the report will be generated for all services or all " - "services with the same description, depending on the value for " - "service description.", + "要求されたホストの名前。可用性のオブジェクト·タイプがホストで、ホスト名が指定されていない場合可用性レポートの場合、レポトにはすべてのホストに対して生成されます。可用性のオブジェクト·タイプがサービスであるとホスト名が指定されていない場合も同様に、報告書は、サービスの説明のための値に応じて、同じ説明を持つすべてのサービスまたはすべてのサービスのために生成されます。", NULL }, { "hostgroup", - "Host Group", + "ホストグループ", "nagios:objectjson/hostgrouplist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", "availability", NULL }, NULL, - "Returns information applicable to the hosts in the hostgroup.", + "ホストグループのホストに適用可能な情報を返します。", NULL }, { "servicegroup", - "Service Group", + "サービスグループ", "nagios:objectjson/servicegrouplist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", "availability", NULL }, NULL, - "Returns information applicable to the services in the servicegroup.", + "サービスグループのサービスに適用可能な情報を返します。", NULL }, { "servicedescription", - "Service Description", + "サービス説明", "nagios:objectjson/servicelist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", "statechangelist", "availability", NULL }, "hostname", - "Description for the service requested. For availability reports, " - "if the availability object type is services and the " - "servicedescription is not specified, the report will be generated " - "either for all services or for all services on the specified host, " - "depending on the value specified for hostname", + "要求されたサービスの説明。可用性のオブジェクト·タイプがサービスでサービス越名に指定されていない場合、可用性を実現するレートの場合、レポートには、ホスト名に指定した値に応じて、すべてのサービス、または指定したホスト上のすべてのサービスのいずれかのために生成されます", NULL }, { "contactname", - "Contact Name", + "通知先名", "nagios:objectjson/contactlist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", NULL }, NULL, - "Name for the contact requested.", + "要求された通知先の名前です。", NULL }, { "contactgroup", - "Contact Group", + "通知先グループ", "nagios:objectjson/contactgrouplist", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", NULL }, NULL, - "Returns information applicable to the contacts in the contactgroup.", + "通知先グループの通知先に適用可能な情報を返します。", NULL }, { "notificationmethod", - "Notification Method", + "通知方法", "nagios:objectjson/commandlist", { NULL }, { "notificationcount", "notificationlist", NULL }, NULL, - "Returns objects that match the notification method.", + "通知方法に一致するオブジェクトを返します。", NULL }, { "timeperiod", - "Report Time Period", + "レポート期間", "nagios:objectjson/timeperiodlist", { NULL }, { "availability", NULL }, NULL, - "Timeperiod to use for the report.", + "レポートに使用する期間です。", NULL }, { "assumeinitialstate", - "Assume Initial State", + "考慮する初期状態", "boolean", { NULL }, { "availability", NULL }, NULL, - "Assume the initial state for the host(s) or service(s). Note that if true, assuming the initial state will be done only if the initial state could not be discovered by looking through the backtracked logs.", + "ホストやサービスのために初期状態を考慮します。 trueの場合、初期状態はバックトラックログを見ることで発見できなかった場合にのみ、初期状態と仮定すると実行されることに注意してください。", NULL }, { "assumestateretention", - "Assume State Retention", + "考慮する状態保持", "boolean", { NULL }, { "availability", NULL }, NULL, - "Assume states are retained.", + "考慮する状態を保持します。", NULL }, { "assumestatesduringnagiosdowntime", - "Assume States During Nagios Downtime", + "Nagiosダウンタイム中に考慮する状態", "boolean", { NULL }, { "availability", NULL }, NULL, - "Assume states are retained during Nagios downtime.", + "Nagiosがダウンタイム中に考慮する状態を保持します。", NULL }, { "assumedinitialhoststate", - "Assumed Initial Host State", + "考慮する初期ホスト状態", "enumeration", { NULL }, { "availability", NULL }, NULL, - "Host state assumed when it is not possible to determine the initial host state.", + "初期ホスト状態を決定することができなかった時に考慮するホスト状態です。", valid_initial_host_states }, { "assumedinitialservicestate", - "Assumed Initial Service State", + "考慮する初期サービス状態", "enumeration", { NULL }, { "availability", NULL }, NULL, - "Service state assumed when it is not possible to determine the initial service state.", + "初期サービス状態を決定することができなかった時に考慮するサービス状態です。", valid_initial_service_states }, { "backtrackedarchives", - "Backtracked Archives", + "バックトラックアーカイブ", "integer", { NULL }, { "alertcount", "alertlist", "notificationcount", "notificationlist", "statechangelist", "availability", NULL }, NULL, - "Number of backtracked archives to read in an attempt to find initial states.", + "初期状態を見つけるための試みを読み込むためにバックトラックアーカイブ数です。", NULL, }, { "starttime", - "Start Time", + "開始時間", "integer", { "alertcount", "alertlist", "notificationcount", "notificationlist", "statechangelist", "availability", NULL }, { NULL }, NULL, - "Starting time to use. Supplying a plus or minus sign means times relative to the query time.", + "使用する開始時間です。プラス記号またはマイナス記号を指定すると、クエリ時間を基準時間を意味します。", NULL, }, { "endtime", - "End Time", + "終了時間", "integer", { "alertcount", "alertlist", "notificationcount", "notificationlist", "statechangelist", "availability", NULL }, { NULL }, NULL, - "Ending time to use. Specifying plus or minus sign means times relative to the query time.", + "使用する終了時間です。プラス記号またはマイナス記号を指定すると、クエリ時間を基準時間を意味します。", NULL, }, { /* The last entry must contain all NULL entries */ @@ -610,7 +600,7 @@ int main(void) { json_root = json_new_object(); if(NULL == json_root) { - printf( "Failed to create new json object\n"); + printf( "オブジェクトを作成できませんでした\n"); exit( 1); } json_object_append_integer(json_root, "format_version", @@ -645,7 +635,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, NULL, RESULT_FILE_OPEN_READ_ERROR, - "Error: Could not open CGI configuration file '%s' for reading!", + "エラー: CGI 設定ファイル '%s' を読み込みで開けませんでした!", get_cgi_config_location())); json_object_append_object(json_root, "data", json_help(archive_json_help)); @@ -663,7 +653,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, NULL, RESULT_FILE_OPEN_READ_ERROR, - "Error: Could not open main configuration file '%s' for reading!", + "エラー: メイン設定ファイル '%s' を読み込みで開けませんでした!", main_config_file)); json_object_append_object(json_root, "data", json_help(archive_json_help)); @@ -702,7 +692,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, NULL, RESULT_FILE_OPEN_READ_ERROR, - "Error: Could not read some or all object configuration data!")); + "エラー: 一部または全ての設定データを読み込むことができませんでした!")); json_object_append_object(json_root, "data", json_help(archive_json_help)); document_footer(); @@ -717,7 +707,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, NULL, RESULT_FILE_OPEN_READ_ERROR, - "Error: Could not read host and service status information!")); + "エラー: ホスト及びサービスのステータス情報を読み込むことができませんでした!")); json_object_append_object(json_root, "data", json_help(archive_json_help)); @@ -746,7 +736,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, ¤t_authdata, RESULT_MEMORY_ALLOCATION_ERROR, - "Unable to allocate memory for log data.")); + "ログデータにメモリを割り当てられませんでした。")); json_object_append_object(json_root, "data", json_help(archive_json_help)); @@ -959,7 +949,7 @@ int main(void) { svm_get_string_from_value(cgi_data.query, valid_queries), get_query_status(query_status, cgi_data.query), (time_t)-1, ¤t_authdata, RESULT_OPTION_MISSING, - "Error: Object Type not specified. See data for help.")); + "エラー: オブジェクトタイプが指定されていません。ヘルプについてはデータを参照してください。")); json_object_append_object(json_root, "data", json_help(archive_json_help)); break; @@ -1151,8 +1141,8 @@ int process_cgivars(json_object *json_root, archive_json_cgi_data *cgi_data, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, RESULT_OPTION_VALUE_INVALID, - "The count option value is invalid. " - "It must be an integer greater than zero")); + "カウントオプション値が不正です。 " + "ゼロより大きい数値でなければなりません。")); result = RESULT_OPTION_VALUE_INVALID; break; } @@ -1490,7 +1480,7 @@ int process_cgivars(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, RESULT_OPTION_INVALID, - "Invalid option: '%s'.", variables[x])); + "不正なオプション: '%s' です。", variables[x])); result = RESULT_OPTION_INVALID; break; } @@ -1534,7 +1524,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Start and/or end time must be supplied.")); + "開始および/または終了時間を指定する必要があります。")); } if(!(cgi_data->object_types & (AU_OBJTYPE_HOST | AU_OBJTYPE_SERVICE))) { @@ -1544,7 +1534,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "At least one object type must be supplied.")); + "少なくとも1つのオブジェクトタイプを指定する必要があります。")); } break; case ARCHIVE_QUERY_NOTIFICATIONCOUNT: @@ -1556,7 +1546,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Start and/or end time must be supplied.")); + "開始および/または終了時間を指定する必要があります。")); } if(!(cgi_data->object_types & (AU_OBJTYPE_HOST | AU_OBJTYPE_SERVICE))) { @@ -1566,7 +1556,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "At least one object type must be supplied.")); + "少なくとも1つのオブジェクトタイプを指定する必要があります。")); } break; case ARCHIVE_QUERY_STATECHANGELIST: @@ -1577,7 +1567,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Start and/or end time must be supplied.")); + "開始および/または終了時間を指定する必要があります。")); } if(0 == cgi_data->object_type) { @@ -1587,7 +1577,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Object type must be supplied.")); + "オブジェクトタイプを指定する必要があります。")); } if(NULL == cgi_data->host_name) { @@ -1597,7 +1587,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Host name must be supplied.")); + "ホスト名を指定する必要があります。")); } if((AU_OBJTYPE_SERVICE == cgi_data->object_type) && @@ -1608,7 +1598,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Service description must be supplied.")); + "サービス説明を指定する必要があります。")); } break; @@ -1620,7 +1610,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Start and/or end time must be supplied.")); + "開始および/または終了時間を指定する必要があります。")); } if(0 == cgi_data->object_type) { @@ -1630,7 +1620,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Availability object type must be supplied.")); + "稼働率オブジェクトを指定する必要があります。")); } break; @@ -1641,7 +1631,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "Missing validation for object type %u.", cgi_data->query)); + "オブジェクトタイプ %u の欠落した検証です。", cgi_data->query)); break; } @@ -1673,7 +1663,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The parenthost '%s' could not be found.", + "上位ホスト '%s' を見つけることができませんでした。", cgi_data->parent_host_name)); } else { @@ -1699,7 +1689,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The childhost '%s' could not be found.", + "下位ホスト '%s' を見つけることができませんでした。", cgi_data->child_host_name)); } else { @@ -1723,7 +1713,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The hostgroup '%s' could not be found.", + "ホストグループ '%s' を見つけることができませんでした。", cgi_data->hostgroup_name)); } else { @@ -1741,7 +1731,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The servicegroup '%s' could not be found.", + "サービスグループ '%s' を見つけることができませんでした。", cgi_data->servicegroup_name)); } else { @@ -1766,7 +1756,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The contactgroup '%s' could not be found.", + "通知先グループ '%s' を見つけることができませんでした。", cgi_data->contactgroup_name)); } else { @@ -1784,7 +1774,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The timeperiod '%s' could not be found.", + "期間 '%s' を見つけることができませんでした。", cgi_data->timeperiod_name)); } else { @@ -1801,7 +1791,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The requested start time must be before the end time.")); + "要求した開始時間は終了時間の前でなければなりません。")); } /* If one or more host states were selected, but host objects were not, @@ -1813,8 +1803,8 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, json_result(query_time, THISCGI, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), - (time_t)-1, authinfo, result, "The requested host states " - "were ignored because host objects were not selected.")); + (time_t)-1, authinfo, result, "ホストオブジェクトが選択されていないため、" + "要求されたホストの状態が無視されました。")); } /* If one or more service states were selected, but service objects were not, notify the user but continue */ @@ -1825,8 +1815,8 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, json_result(query_time, THISCGI, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), - (time_t)-1, authinfo, result, "The requested service states " - "were ignored because service objects were not selected.")); + (time_t)-1, authinfo, result, "サービスオブジェクトが選択されていないため、" + "要求されたサービスの状態が無視されました。")); } /* If one or more host notification types were selected, but host @@ -1839,7 +1829,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The requested host notification types were ignored because host objects were not selected.")); + "ホストオブジェクトが選択されていないため、要求されたホストの通知タイプは無視されました。")); } /* If one or more service notification types were selected, but service objects were not, notify the user but continue */ @@ -1852,7 +1842,7 @@ int validate_arguments(json_object *json_root, archive_json_cgi_data *cgi_data, svm_get_string_from_value(cgi_data->query, valid_queries), get_query_status(query_status, cgi_data->query), (time_t)-1, authinfo, result, - "The requested service notification types were ignored because service objects were not selected.")); + "サービスオブジェクトが選択されていないため、要求されたサービスの通知タイプが無視されました。")); } return result; @@ -3227,7 +3217,7 @@ int get_initial_nagios_state(au_linked_list *log_entries, time_t start_time, else { if(AU_STATE_NO_DATA != initial_state) { /* Once we cross the threshold of the start time, if we have - an initial state, that is THE initial state */ + an intial state, that is THE initial state */ return initial_state; } else { diff --git a/cgi/archiveutils.c b/cgi/archiveutils.c index 927c2455af..d157795c27 100644 --- a/cgi/archiveutils.c +++ b/cgi/archiveutils.c @@ -34,79 +34,79 @@ #define AU_INITIAL_LIST_SIZE 16 const string_value_mapping svm_au_object_types[] = { - { "none", AU_OBJTYPE_NONE, "None" }, - { "host", AU_OBJTYPE_HOST, "Host" }, - { "service", AU_OBJTYPE_SERVICE, "Service" }, + { "none", AU_OBJTYPE_NONE, "無し" }, + { "host", AU_OBJTYPE_HOST, "ホスト" }, + { "service", AU_OBJTYPE_SERVICE, "サービス" }, { NULL, -1, NULL }, }; const string_value_mapping svm_au_state_types[] = { - { "hard", AU_STATETYPE_HARD, "Hard" }, - { "soft", AU_STATETYPE_SOFT, "Soft" }, - { "nodata", AU_STATETYPE_NO_DATA, "No Data" }, + { "hard", AU_STATETYPE_HARD, "ハード" }, + { "soft", AU_STATETYPE_SOFT, "ソフト" }, + { "nodata", AU_STATETYPE_NO_DATA, "データなし" }, { NULL, -1, NULL }, }; const string_value_mapping svm_au_states[] = { - { "nodata", AU_STATE_NO_DATA, "No Data" }, - { "up", AU_STATE_HOST_UP, "Host Up" }, - { "down", AU_STATE_HOST_DOWN, "How Down" }, - { "unreachable", AU_STATE_HOST_UNREACHABLE, "Host Unreachable" }, - { "ok", AU_STATE_SERVICE_OK, "Service OK" }, - { "warning", AU_STATE_SERVICE_WARNING, "Service Warning" }, - { "critical", AU_STATE_SERVICE_CRITICAL, "Service Critical" }, - { "unknown", AU_STATE_SERVICE_UNKNOWN, "Service Unknown" }, - { "programstart", AU_STATE_PROGRAM_START, "Program Start"}, - { "programend", AU_STATE_PROGRAM_END, "Program End"}, - { "downtimestart", AU_STATE_DOWNTIME_START, "Downtime Start"}, - { "downtimeend", AU_STATE_DOWNTIME_END, "Downtime End"}, - { "currentstate", AU_STATE_CURRENT_STATE, "Current State"}, + { "nodata", AU_STATE_NO_DATA, "データなし" }, + { "up", AU_STATE_HOST_UP, "ホストの稼働状態(UP)" }, + { "down", AU_STATE_HOST_DOWN, "ホストの停止状態(DOWN)" }, + { "unreachable", AU_STATE_HOST_UNREACHABLE, "ホストの未到達状態(UNREACHABLE)" }, + { "ok", AU_STATE_SERVICE_OK, "サービスの正常状態(OK)" }, + { "warning", AU_STATE_SERVICE_WARNING, "サービスの警告状態(WARNING)" }, + { "critical", AU_STATE_SERVICE_CRITICAL, "サービスの異常状態(CRITICAL)" }, + { "unknown", AU_STATE_SERVICE_UNKNOWN, "サービスの不明状態(UNKNOWN)" }, + { "programstart", AU_STATE_PROGRAM_START, "プログラム開始"}, + { "programend", AU_STATE_PROGRAM_END, "プログラム終了"}, + { "downtimestart", AU_STATE_DOWNTIME_START, "ダウンタイム開始"}, + { "downtimeend", AU_STATE_DOWNTIME_END, "ダウンタイム終了"}, + { "currentstate", AU_STATE_CURRENT_STATE, "現在の状態"}, { NULL, -1, NULL }, }; const string_value_mapping svm_au_log_types[] = { - { "alert", AU_LOGTYPE_ALERT, "Alert" }, - { "initialstate", AU_LOGTYPE_STATE_INITIAL, "Initial State" }, - { "currentstate", AU_LOGTYPE_STATE_CURRENT, "Current State" }, - { "notification", AU_LOGTYPE_NOTIFICATION, "Notification" }, - { "downtime", AU_LOGTYPE_DOWNTIME, "Downtime" }, + { "alert", AU_LOGTYPE_ALERT, "警告" }, + { "initialstate", AU_LOGTYPE_STATE_INITIAL, "初期状態" }, + { "currentstate", AU_LOGTYPE_STATE_CURRENT, "現在の状態" }, + { "notification", AU_LOGTYPE_NOTIFICATION, "通知" }, + { "downtime", AU_LOGTYPE_DOWNTIME, "ダウンタイム" }, { "nagios", AU_LOGTYPE_NAGIOS, "Nagios" }, { NULL, -1, NULL }, }; const string_value_mapping svm_au_notification_types[] = { { "nodata", AU_NOTIFICATION_NO_DATA, - "No Data" }, + "データなし" }, { "down", AU_NOTIFICATION_HOST_DOWN, - "Host Down" }, + "ホストの停止状態(DOWN)" }, { "unreachable", AU_NOTIFICATION_HOST_UNREACHABLE, - "Host Unreachable" }, + "ホストの未到達状態(UNREACHABLE)" }, { "recovery", AU_NOTIFICATION_HOST_RECOVERY, - "Host Recovery" }, + "ホストの復旧状態(RECOVERY)" }, { "hostcustom", AU_NOTIFICATION_HOST_CUSTOM, - "Host Custom" }, + "ホストカスタム" }, { "hostack", AU_NOTIFICATION_HOST_ACK, - "Host Acknowledgement" }, + "ホストの認知状態(Acknowledgement)" }, { "hostflapstart", AU_NOTIFICATION_HOST_FLAPPING_START, - "Host Flapping Start" }, + "ホストのフラッピング開始" }, { "hostflapstop", AU_NOTIFICATION_HOST_FLAPPING_STOP, - "Host Flapping Stop" }, + "ホストのフラッピング停止" }, { "critical", AU_NOTIFICATION_SERVICE_CRITICAL, - "Service Critical" }, + "サービスの異常状態(CRITICAL)" }, { "warning", AU_NOTIFICATION_SERVICE_WARNING, - "Service Warning" }, + "サービスの警告状態(WARNING)" }, { "recovery", AU_NOTIFICATION_SERVICE_RECOVERY, - "Service Recovery" }, + "サービスの復旧状態(RECOVERY)" }, { "custom", AU_NOTIFICATION_SERVICE_CUSTOM, - "Service Custom" }, + "サービスカスタム" }, { "serviceack", AU_NOTIFICATION_SERVICE_ACK, - "Service Acknowledgement" }, + "サービスの認知状態(Acknowledgement)" }, { "serviceflapstart", AU_NOTIFICATION_SERVICE_FLAPPING_START, - "Service Flapping Start" }, + "サービスのフラッピング開始" }, { "serviceflapstop", AU_NOTIFICATION_SERVICE_FLAPPING_STOP, - "Service Flapping Stop" }, + "サービスのフラッピング停止" }, { "unknown", AU_NOTIFICATION_SERVICE_UNKNOWN, - "Service Unknown" }, + "サービスの不明状態(UNKNOWN)" }, { NULL, -1, NULL }, }; diff --git a/cgi/avail.c b/cgi/avail.c index eb942083cd..ab60160b98 100644 --- a/cgi/avail.c +++ b/cgi/avail.c @@ -348,23 +348,23 @@ int main(int argc, char **argv) { switch (display_type) { case DISPLAY_HOST_AVAIL: - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Host Availability Report"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "ホストの稼働レポート"); break; case DISPLAY_SERVICE_AVAIL: - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Service Availability Report"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "サービスの稼働レポート"); break; case DISPLAY_HOSTGROUP_AVAIL: - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Hostgroup Availability Report"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "ホストグループの稼働レポート"); break; case DISPLAY_SERVICEGROUP_AVAIL: - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Servicegroup Availability Report"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "サービスグループの稼働レポート"); break; default: - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Availability Report"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "稼働レポート"); break; } temp_buffer[sizeof(temp_buffer) - 1] = '\x0'; @@ -376,35 +376,35 @@ int main(int argc, char **argv) { printf("\n"); if (display_type == DISPLAY_HOST_AVAIL && show_all_hosts == FALSE) { - host_report_url("all", "View Availability Report For All Hosts"); + host_report_url("all", "全ホストの稼働レポート"); printf("
\n"); #ifdef USE_TRENDS - printf("View Trends For This Host
\n", TRENDS_CGI, url_encode(host_name), t1, t2, (include_soft_states == TRUE) ? "yes" : "no", (assume_state_retention == TRUE) ? "yes" : "no", (assume_initial_states == TRUE) ? "yes" : "no", (assume_states_during_notrunning == TRUE) ? "yes" : "no", initial_assumed_host_state, backtrack_archives); + printf("このホストの傾向
\n", TRENDS_CGI, url_encode(host_name), t1, t2, (include_soft_states == TRUE) ? "yes" : "no", (assume_state_retention == TRUE) ? "yes" : "no", (assume_initial_states == TRUE) ? "yes" : "no", (assume_states_during_notrunning == TRUE) ? "yes" : "no", initial_assumed_host_state, backtrack_archives); #endif #ifdef USE_HISTOGRAM - printf("View Alert Histogram For This Host
\n", HISTOGRAM_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("このホストの警報ヒストグラム
\n", HISTOGRAM_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); #endif - printf("View Status Detail For This Host
\n", STATUS_CGI, url_encode(host_name)); - printf("View Alert History For This Host
\n", HISTORY_CGI, url_encode(host_name)); - printf("View Notifications For This Host
\n", NOTIFICATIONS_CGI, url_encode(host_name)); + printf("このホストの詳細
\n", STATUS_CGI, url_encode(host_name)); + printf("このホストの警報履歴
\n", HISTORY_CGI, url_encode(host_name)); + printf("このホストの通知履歴
\n", NOTIFICATIONS_CGI, url_encode(host_name)); } else if (display_type == DISPLAY_SERVICE_AVAIL && show_all_services == FALSE) { - host_report_url(host_name, "View Availability Report For This Host"); + host_report_url(host_name, "このホストの稼働レポート"); printf("
\n"); - service_report_url("null", "all", "View Availability Report For All Services"); + service_report_url("null", "all", "このホストで稼働中の全サービスの稼働レポート"); printf("
\n"); #ifdef USE_TRENDS printf("View Trends For This Service
\n", url_encode(svc_description), t1, t2, (include_soft_states == TRUE) ? "yes" : "no", (assume_state_retention == TRUE) ? "yes" : "no", (assume_initial_states == TRUE) ? "yes" : "no", (assume_states_during_notrunning == TRUE) ? "yes" : "no", initial_assumed_service_state, backtrack_archives); + printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s&includesoftstates=%s&assumeinitialstates=%s&assumestatesduringnotrunning=%s&initialassumedservicestate=%d&backtrack=%d'>このサービスの傾向
\n", url_encode(svc_description), t1, t2, (include_soft_states == TRUE) ? "yes" : "no", (assume_state_retention == TRUE) ? "yes" : "no", (assume_initial_states == TRUE) ? "yes" : "no", (assume_states_during_notrunning == TRUE) ? "yes" : "no", initial_assumed_service_state, backtrack_archives); #endif #ifdef USE_HISTOGRAM printf("View Alert Histogram For This Service
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s'>このサービスの警報ヒストグラム
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); #endif printf("View Alert History For This Service
\n", url_encode(svc_description)); + printf("service=%s'>このサービスの警報履歴
\n", url_encode(svc_description)); printf("View Notifications For This Service
\n", url_encode(svc_description)); + printf("service=%s'>このサービスの通知履歴
\n", url_encode(svc_description)); } printf("\n"); @@ -421,44 +421,44 @@ int main(int argc, char **argv) { printf("
\n"); if (display_type == DISPLAY_HOST_AVAIL) { if (show_all_hosts == TRUE) - printf("All Hosts"); + printf("全てのホスト"); else - printf("Host '%s'", host_name); + printf("ホスト '%s'", host_name); } else if (display_type == DISPLAY_SERVICE_AVAIL) { if (show_all_services == TRUE) - printf("All Services"); + printf("全てのサービス"); else - printf("Service '%s' On Host '%s'", svc_description, host_name); + printf("ホスト '%s' 上の '%s' サービス", host_name, svc_description); } else if (display_type == DISPLAY_HOSTGROUP_AVAIL) { if (show_all_hostgroups == TRUE) - printf("All Hostgroups"); + printf("全てのホストグループ"); else - printf("Hostgroup '%s'", hostgroup_name); + printf("ホストグループ '%s'", hostgroup_name); } else if (display_type == DISPLAY_SERVICEGROUP_AVAIL) { if (show_all_servicegroups == TRUE) - printf("All Servicegroups"); + printf("全てのサービスグループ"); else - printf("Servicegroup '%s'", servicegroup_name); + printf("サービスグループ '%s'", servicegroup_name); } printf("
\n"); printf("
\n"); - printf("Availability Report\n", url_images_path, TRENDS_ICON); + printf("稼働レポート\n", url_images_path, TRENDS_ICON); printf("
\n"); get_time_string(&t1, start_timestring, sizeof(start_timestring) - 1, SHORT_DATE_TIME); get_time_string(&t2, end_timestring, sizeof(end_timestring) - 1, SHORT_DATE_TIME); - printf("
%s to %s
\n", start_timestring, end_timestring); + printf("
%s から %s
\n", start_timestring, end_timestring); get_time_breakdown((time_t)(t2 - t1), &days, &hours, &minutes, &seconds); - printf("
Duration: %dd %dh %dm %ds", days, hours, minutes, seconds); + printf("
期間: %d日間と %d時間 %d分 %d秒", days, hours, minutes, seconds); if (current_timeperiod) - printf("
(using timeperiod %s)", current_timeperiod->name); + printf("
(期間 %s を使用します)", current_timeperiod->name); printf("
\n"); } @@ -472,7 +472,7 @@ int main(int argc, char **argv) { if (display_type != DISPLAY_NO_AVAIL && get_date_parts == FALSE) { - printf("First assumed %s state:%s\n", (display_type == DISPLAY_SERVICE_AVAIL) ? "service" : "host", (display_type == DISPLAY_HOST_AVAIL || display_type == DISPLAY_HOSTGROUP_AVAIL || display_type == DISPLAY_SERVICEGROUP_AVAIL) ? "First assumed service state" : ""); + printf("考慮する%sの初期状態:%s\n", (display_type == DISPLAY_SERVICE_AVAIL) ? "サービス" : "ホスト", (display_type == DISPLAY_HOST_AVAIL || display_type == DISPLAY_HOSTGROUP_AVAIL || display_type == DISPLAY_SERVICEGROUP_AVAIL) ? "考慮するサービスの初期状態" : ""); printf("\n"); printf("\n"); @@ -498,55 +498,55 @@ int main(int argc, char **argv) { if (display_type == DISPLAY_HOST_AVAIL || display_type == DISPLAY_HOSTGROUP_AVAIL || display_type == DISPLAY_SERVICEGROUP_AVAIL) { printf("\n"); } else { printf("", initial_assumed_host_state); printf("\n"); } printf("\n"); printf("\n"); if (display_type == DISPLAY_HOST_AVAIL || display_type == DISPLAY_HOSTGROUP_AVAIL || display_type == DISPLAY_SERVICEGROUP_AVAIL) { printf("\n"); } printf("\n"); printf("\n"); - printf("Report period:Backtracked archives:\n"); + printf("レポートの期間:過去のアーカイブ:\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -556,7 +556,7 @@ int main(int argc, char **argv) { printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); } @@ -607,7 +607,7 @@ int main(int argc, char **argv) { end_day = t->tm_mday; end_year = t->tm_year + 1900; - printf("

Step 3: Select Report Options

\n"); + printf("

ステップ3: レポートオプションの選択

\n"); printf("

\n"); @@ -625,46 +625,49 @@ int main(int argc, char **argv) { printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); if (display_type != DISPLAY_SERVICE_AVAIL) { - printf("\n"); + printf("\n"); printf("\n"); } - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
Report Period:レポート期間:\n"); printf("\n"); printf("
If Custom Report Period...
期間をカスタマイズ...
Start Date (Inclusive):開始日(指定日を含む):"); + printf("", start_year); + printf("年"); printf("\n "); + printf("月"); printf(" ", start_day); - printf("", start_year); + printf("日"); printf("\n"); printf("\n"); printf("\n"); @@ -672,24 +675,27 @@ int main(int argc, char **argv) { printf("
End Date (Inclusive):終了日(指定日を含む):"); + printf("", end_year); + printf("年"); printf("\n "); + printf("月"); printf(" ", end_day); - printf("", end_year); + printf("日"); printf("\n"); printf("\n"); printf("\n"); @@ -699,10 +705,10 @@ int main(int argc, char **argv) { printf("

Report time Period:表示するレポートの時間と期間:\n"); printf("

Assume Initial States:
初期状態を考慮:\n"); printf("\n"); printf("
Assume State Retention:
保存状態を考慮:\n"); printf("\n"); printf("
Assume States During Program Downtime:
プログラムのダウンタイム時間を考慮:\n"); printf("\n"); printf("
Include Soft States:
ソフトウェアの状態:\n"); printf("\n"); printf("
First Assumed Host State:
考慮するホストの初期状態:\n"); printf("\n"); printf("
First Assumed Service State:
考慮するサービスの初期状態:\n"); printf("\n"); printf("
Backtracked Archives (To Scan For Initial States):
過去のアーカイブ (初期状態を調べるためのもの):\n"); printf("\n", backtrack_archives); printf("
Output in CSV Format:CSV形式で出力する:"); printf("\n"); printf("
\n"); @@ -791,7 +797,7 @@ int main(int argc, char **argv) { /* step 2 - the user wants to select a hostgroup */ else if (select_hostgroups == TRUE) { - printf("

Step 2: Select Hostgroup

\n"); + printf("

ステップ2: ホストグループの選択

\n"); printf("

\n"); @@ -800,9 +806,9 @@ int main(int argc, char **argv) { printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Hostgroup(s):\n"); + printf("
ホストグループ:\n"); printf("\n"); printf("
\n"); @@ -821,7 +827,7 @@ int main(int argc, char **argv) { /* step 2 - the user wants to select a host */ else if (select_hosts == TRUE) { - printf("

Step 2: Select Host

\n"); + printf("

ステップ2: ホストの選択

\n"); printf("

\n"); @@ -830,9 +836,9 @@ int main(int argc, char **argv) { printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Host(s):\n"); + printf("
ホスト:\n"); printf("\n"); printf("
\n"); @@ -848,12 +854,12 @@ int main(int argc, char **argv) { printf("

\n"); - printf("
Tip: If you want to have the option of getting the availability data in CSV format, select '** ALL HOSTS **' from the pull-down menu.\n"); + printf("
ヒント: 稼働レポートをCSV形式で取得する場合は、プルダウンメニューから'** 全てのホスト**'を選択します。\n"); } /* step 2 - the user wants to select a servicegroup */ else if (select_servicegroups == TRUE) { - printf("

Step 2: Select Servicegroup

\n"); + printf("

ステップ2: サービスグループの選択

\n"); printf("

\n"); @@ -862,9 +868,9 @@ int main(int argc, char **argv) { printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Servicegroup(s):\n"); + printf("
サービスグループ:\n"); printf("\n"); printf("
\n"); @@ -902,7 +908,7 @@ int main(int argc, char **argv) { printf("}\n"); printf("\n"); - printf("

Step 2: Select Service

\n"); + printf("

ステップ2: サービスの選択

\n"); printf("

\n"); @@ -912,9 +918,9 @@ int main(int argc, char **argv) { printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Service(s):\n"); + printf("
サービス:\n"); printf("\n"); printf("
\n"); @@ -931,7 +937,7 @@ int main(int argc, char **argv) { printf("

\n"); - printf("
Tip: If you want to have the option of getting the availability data in CSV format, select '** ALL SERVICES **' from the pull-down menu.\n"); + printf("
ヒント: 稼働レポートをCSV形式で取得する場合は、プルダウンメニューから'** 全てのサービス**'を選択します。\n"); } @@ -949,7 +955,7 @@ int main(int argc, char **argv) { } if (is_authorized == FALSE) - printf("

It appears as though you are not authorized to view information for the specified %s...

\n", (display_type == DISPLAY_HOST_AVAIL) ? "host" : "service"); + printf("

%s情報を閲覧するための権限がありません。

\n", (display_type == DISPLAY_HOST_AVAIL) ? "ホスト" : "サービス"); else { @@ -968,7 +974,7 @@ int main(int argc, char **argv) { if (output_format == HTML_OUTPUT) { get_time_breakdown((time_t)(report_end_time - report_start_time), &days, &hours, &minutes, &seconds); - printf("
[ Availability report completed in %d min %d sec ]
\n", minutes, seconds); + printf("
[ このページを生成するのにかかった時間: %d分 %d秒 ]
\n", minutes, seconds); printf("

\n"); } @@ -991,7 +997,7 @@ int main(int argc, char **argv) { /* step 1 - ask the user what kind of report they want */ else { - printf("

Step 1: Select Report Type

\n"); + printf("

ステップ1: 稼働レポートの種類選択

\n"); printf("

\n"); @@ -999,17 +1005,17 @@ int main(int argc, char **argv) { printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
Type:
種類:\n"); printf("\n"); printf("
\n"); @@ -1058,9 +1064,10 @@ void document_header(int use_stylesheet) { printf("\n"); printf("\n"); + printf("\n"); printf("\n", url_images_path); printf("\n"); - printf("Nagios Availability\n"); + printf("Nagios::稼働レポート -Nagios Availability-\n"); printf("\n"); if (use_stylesheet == TRUE) { @@ -1850,14 +1857,14 @@ void compute_subject_availability(avail_subject *subject, time_t current_time) { if ((temp_as->time_stamp <= t1 || temp_as == subject->as_list) && (temp_as->entry_type != AS_NO_DATA && temp_as->entry_type != AS_PROGRAM_END && temp_as->entry_type != AS_PROGRAM_START)) { subject->last_known_state = temp_as->entry_type; #ifdef DEBUG - printf("SETTING LAST KNOWN STATE=%d
\n", subject->last_known_state); + printf("最後の状態を設定=%d
\n", subject->last_known_state); #endif } /* skip this entry if it occurs before the starting point of the graph */ if (temp_as->time_stamp <= t1) { #ifdef DEBUG - printf("SKIPPING PRE-EVENT: %d @ %lu
\n", temp_as->entry_type, temp_as->time_stamp); + printf("前イベントをスキップ: %d @ %lu
\n", temp_as->entry_type, temp_as->time_stamp); #endif last_as = temp_as; continue; @@ -1996,13 +2003,13 @@ unsigned long compute_state_duration_from_timeperiod(timeperiod *current_tp, tim temp_start = start_time - midnight_today; } #ifdef DEBUG - printf("Matching: %ld -> %ld. (%ld -> %ld)
\n", temp_start, temp_end, midnight_today + temp_start, midnight_today + temp_end); + printf("一致しました: %ld -> %ld. (%ld -> %ld)
\n", temp_start, temp_end, midnight_today + temp_start, midnight_today + temp_end); #endif /* check all time ranges for this day of the week */ for (temp_timerange = current_timeperiod->days[weekday]; temp_timerange != NULL; temp_timerange = temp_timerange->next) { #ifdef DEBUG - printf("
  • Matching in timerange[%d]: %d -> %d (%ld -> %ld)
    \n", weekday, temp_timerange->range_start, temp_timerange->range_end, temp_start, temp_end); + printf("
  • 一致した期間[%d]: %d -> %d (%ld -> %ld)
    \n", weekday, temp_timerange->range_start, temp_timerange->range_end, temp_start, temp_end); #endif start = max(temp_timerange->range_start, temp_start); end = min(temp_timerange->range_end, temp_end); @@ -2010,12 +2017,12 @@ unsigned long compute_state_duration_from_timeperiod(timeperiod *current_tp, tim if (start < end) { temp_duration += end - start; #ifdef DEBUG - printf("
  • Matched time: %ld -> %ld = %d
    \n", start, end, temp_duration); + printf("一致しました
  • Matched time: %ld -> %ld = %d
    \n", start, end, temp_duration); #endif } #ifdef DEBUG else { - printf("
  • Ignored time: %ld -> %ld
    \n", start, end); + printf("
  • Ignore一致しましたd time: %ld -> %ld
    \n", start, end); } #endif } @@ -2040,13 +2047,13 @@ void compute_subject_availability_times(int first_state, int last_state, time_t #ifdef DEBUG2 if (subject->type == HOST_SUBJECT) { - printf("\nHOST '%s'...\n", subject->host_name); + printf("\nホスト '%s'...\n", subject->host_name); } else { - printf("\nSERVICE '%s' ON HOST '%s'...\n", subject->service_description, subject->host_name); + printf("\nホスト '%s' 上の '%s' サービス\n", subject->host_name, subject->service_description); } - printf("COMPUTING %d->%d FROM %lu to %lu (%lu seconds) FOR %s\n", first_state, last_state, start_time, end_time, (end_time - start_time), (subject->type == HOST_SUBJECT) ? "HOST" : "SERVICE"); + printf("\n%s の %lu から %lu (%lu 秒間)までの %d->%d を計算
    \n", (subject->type == HOST_SUBJECT) ? "ホスト" : "サービス", start_time, end_time, (end_time-start_time), first_state, last_state); #endif /* clip times if necessary */ @@ -2123,7 +2130,7 @@ void compute_subject_availability_times(int first_state, int last_state, time_t #endif #ifdef DEBUG - printf("PASSED TIME CHECKS, CLIPPED VALUES: START=%lu, END=%lu\n", start_time, end_time); + printf("無視する時間: 開始=%lu, 終了=%lu\n", start_time, end_time); #endif @@ -2289,7 +2296,7 @@ void compute_subject_downtime_times(time_t start_time, time_t end_time, avail_su archived_state *last = NULL; #ifdef DEBUG2 - printf("\nENTERING COMPUTE_SUBJECT_DOWNTIME_TIMES: start=%lu, end=%lu, t1=%lu, t2=%lu \n\n", start_time, end_time, t1, t2); + printf("\nENTERING COMPUTE_SUBJECT_DOWNTIME_TIMES: start=%lu, end=%lu, t1=%lu, t2=%lu ", start_time, end_time, t1, t2); #endif /* times are weird, so bail out... */ @@ -2487,7 +2494,7 @@ void compute_subject_downtime_part_times(time_t start_time, time_t end_time, int } #ifdef DEBUG2 - printf("\tSUBJECT DOWNTIME: Host '%s', Service '%s', State=%d, Duration=%lu, Start=%lu\n", subject->host_name, (subject->service_description == NULL) ? "NULL" : subject->service_description, subject_state, state_duration, start_time); + printf("\tダウンタイム: ホスト '%s', サービス '%s', ステータス=%d, 期間=%lu, 開始時間=%lu\n", subject->host_name, (subject->service_description == NULL) ? "NULL" : subject->service_description, subject_state, state_duration, start_time); #endif } @@ -2958,14 +2965,14 @@ void read_archived_state_data(void) { for (current_archive = newest_archive; current_archive <= oldest_archive; current_archive++) { #ifdef DEBUG - printf("Reading archive #%d\n", current_archive); + printf("読み込んだアーカイブ #%d\n", current_archive); #endif /* get the name of the log file that contains this archive */ get_log_archive_to_use(current_archive, filename, sizeof(filename) - 1); #ifdef DEBUG - printf("Archive name: '%s'\n", filename); + printf("アーカイブ名: '%s'\n", filename); #endif /* scan the log file for archived state data */ @@ -3354,7 +3361,7 @@ void write_log_entries(avail_subject *subject) char start_date_time[MAX_DATETIME_LENGTH] = { 0 }; char end_date_time[MAX_DATETIME_LENGTH] = { 0 }; - char duration[20] = { 0 }; + char duration[48] = { 0 }; const char *bgclass = ""; const char *ebgclass = ""; @@ -3388,12 +3395,12 @@ void write_log_entries(avail_subject *subject) case AS_SVC_DOWNTIME_START: case AS_HOST_DOWNTIME_START: - entry_type = "Start of scheduled downtime"; + entry_type = "ダウンタイムの開始"; break; case AS_SVC_DOWNTIME_END: case AS_HOST_DOWNTIME_END: - entry_type = "End of scheduled downtime"; + entry_type = "ダウンタイムの終了"; break; default: @@ -3405,17 +3412,17 @@ void write_log_entries(avail_subject *subject) } printf("

    \n"); - printf("
    %s Log Entries:
    \n", (subject->type == HOST_SUBJECT) ? "Host" : "Service"); + printf("
    %sログの内容:
    \n", (subject->type == HOST_SUBJECT) ? "ホスト" : "サービス"); printf("
    "); if (full_log_entries == TRUE) { full_log_entries = FALSE; if (subject->type == HOST_SUBJECT) { - host_report_url(subject->host_name, "[ View condensed log entries ]"); + host_report_url(subject->host_name, "[ 簡略表示 ]"); } else { - service_report_url(subject->host_name, subject->service_description, "[ View condensed log entries ]"); + service_report_url(subject->host_name, subject->service_description, "[ 簡略表示 ]"); } full_log_entries = TRUE; } @@ -3423,10 +3430,10 @@ void write_log_entries(avail_subject *subject) full_log_entries = TRUE; if (subject->type == HOST_SUBJECT) { - host_report_url(subject->host_name, "[ View full log entries ]"); + host_report_url(subject->host_name, "[ 完全表示 ]"); } else { - service_report_url(subject->host_name, subject->service_description, "[ View full log entries ]"); + service_report_url(subject->host_name, subject->service_description, "[ 完全表示 ]"); } full_log_entries = FALSE; } @@ -3435,20 +3442,20 @@ void write_log_entries(avail_subject *subject) printf("
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); /* write all archived state entries */ for (temp_as = subject->as_list; temp_as != NULL; temp_as = temp_as->next) { if (temp_as->state_type == AS_HARD_STATE) { - state_type = " (HARD)"; + state_type = " (ハード)"; } else if (temp_as->state_type == AS_SOFT_STATE) { - state_type = " (SOFT)"; + state_type = " (ソフト)"; } else { state_type = ""; @@ -3460,7 +3467,7 @@ void write_log_entries(avail_subject *subject) if (full_log_entries == FALSE) { continue; } - entry_type = "NO DATA"; + entry_type = "データ無し"; ebgclass = "INDETERMINATE"; break; @@ -3468,7 +3475,7 @@ void write_log_entries(avail_subject *subject) if (full_log_entries == FALSE) { continue; } - entry_type = "PROGRAM END"; + entry_type = "プログラム終了"; ebgclass = "INDETERMINATE"; break; @@ -3476,62 +3483,62 @@ void write_log_entries(avail_subject *subject) if (full_log_entries == FALSE) { continue; } - entry_type = "PROGRAM (RE)START"; + entry_type = "プログラム(再)起動"; ebgclass = "INDETERMINATE"; break; case AS_HOST_UP: - entry_type = "HOST UP"; + entry_type = "ホスト稼働(UP)"; ebgclass = "UP"; break; case AS_HOST_DOWN: - entry_type = "HOST DOWN"; + entry_type = "ホスト停止(DOWN)"; ebgclass = "DOWN"; break; case AS_HOST_UNREACHABLE: - entry_type = "HOST UNREACHABLE"; + entry_type = "ホスト未到達(UNREACHABLE)"; ebgclass = "UNREACHABLE"; break; case AS_SVC_OK: - entry_type = "SERVICE OK"; + entry_type = "サービス正常(OK)"; ebgclass = "OK"; break; case AS_SVC_UNKNOWN: - entry_type = "SERVICE UNKNOWN"; + entry_type = "サービス不明(UNKNOWN)"; ebgclass = "UNKNOWN"; break; case AS_SVC_WARNING: - entry_type = "SERVICE WARNING"; + entry_type = "サービス警告(WARNING)"; ebgclass = "WARNING"; break; case AS_SVC_CRITICAL: - entry_type = "SERVICE CRITICAL"; + entry_type = "サービス異常(CRITICAL)"; ebgclass = "CRITICAL"; break; case AS_SVC_DOWNTIME_START: - entry_type = "SERVICE DOWNTIME START"; + entry_type = "サービス停止時間(ダウンタイム)の開始時間"; ebgclass = "INDETERMINATE"; break; case AS_SVC_DOWNTIME_END: - entry_type = "SERVICE DOWNTIME END"; + entry_type = "サービス停止時間(ダウンタイム)の終了時間"; ebgclass = "INDETERMINATE"; break; case AS_HOST_DOWNTIME_START: - entry_type = "HOST DOWNTIME START"; + entry_type = "ホスト停止時間(ダウンタイム)の開始時間"; ebgclass = "INDETERMINATE"; break; case AS_HOST_DOWNTIME_END: - entry_type = "HOST DOWNTIME END"; + entry_type = "ホスト停止時間(ダウンタイム)の終了時間"; ebgclass = "INDETERMINATE"; break; @@ -3559,7 +3566,7 @@ void write_log_entries(avail_subject *subject) else { get_time_string(&(temp_as->next->time_stamp), end_date_time, sizeof(end_date_time) - 1, SHORT_DATE_TIME); get_time_breakdown((time_t)(temp_as->next->time_stamp - temp_as->time_stamp), &days, &hours, &minutes, &seconds); - snprintf(duration, sizeof(duration) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(duration, sizeof(duration) - 1, "%d日間と %d時間 %d分 %d秒", days, hours, minutes, seconds); } bgclass = odd ? "Odd" : "Even"; @@ -3655,15 +3662,15 @@ void display_specific_hostgroup_availability(hostgroup *hg) if (output_format == HTML_OUTPUT) { printf("

    \n"); - printf("
    Hostgroup '%s' Host State Breakdowns:
    \n", hg->group_name); + printf("
    ホストグループ '%s' のホスト稼働状況:
    \n", hg->group_name); printf("
    \n"); printf("
    Event Start TimeEvent End TimeEvent DurationEvent/State TypeEvent/State Information
    イベント開始時間イベント終了時間イベント継続期間イベント/状態の種類イベント/状態の情報
    \n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); } for (temp_subject = subject_list; temp_subject != NULL; temp_subject = temp_subject->next) { @@ -3708,6 +3715,7 @@ void display_specific_hostgroup_availability(hostgroup *hg) percent_time_unreachable_known = (double) (((double) temp_subject->time_unreachable * 100.0) / (double) time_determinate); } } + bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; @@ -3752,7 +3760,7 @@ void display_specific_hostgroup_availability(hostgroup *hg) bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_up, average_percent_time_up_known); printf("", average_percent_time_down, average_percent_time_down_known); printf("", average_percent_time_unreachable, average_percent_time_unreachable_known); @@ -3760,6 +3768,7 @@ void display_specific_hostgroup_availability(hostgroup *hg) printf("
    Host%% Time Up%% Time Down%% Time Unreachable%% Time Undetermined
    ホスト名稼働率
    (UP)
    停止率
    (DOWN)
    未到達率
    (UNREACHABLE)
    未確定率
    (UNDETERMINED)
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); printf("
    \n"); + } } @@ -3870,15 +3879,15 @@ void display_specific_servicegroup_availability(servicegroup *sg) if (output_format == HTML_OUTPUT) { printf("

    \n"); - printf("
    Servicegroup '%s' Host State Breakdowns:
    \n", sg->group_name); + printf("
    サービスグループ '%s' のサービス稼働状況:
    \n", sg->group_name); printf("
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); } for (temp_subject = subject_list; temp_subject != NULL; temp_subject = temp_subject->next) { @@ -3950,7 +3959,7 @@ void display_specific_servicegroup_availability(servicegroup *sg) bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_up, average_percent_time_up_known); printf("", average_percent_time_down, average_percent_time_down_known); printf("", average_percent_time_unreachable, average_percent_time_unreachable_known); @@ -3960,17 +3969,17 @@ void display_specific_servicegroup_availability(servicegroup *sg) printf("\n"); printf("
    \n"); - printf("
    Servicegroup '%s' Service State Breakdowns:
    \n", sg->group_name); + printf("
    サービスグループ '%s' のサービス稼働状況:
    \n", sg->group_name); printf("
    \n"); printf("
    Host%% Time Up%% Time Down%% Time Unreachable%% Time Undetermined
    ホスト名稼働率
    (UP)
    停止率
    (DOWN)
    未到達率
    (UNREACHABLE)
    未確定率
    (UNDETERMINED)
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); } current_subject = 0; @@ -4082,7 +4091,7 @@ void display_specific_servicegroup_availability(servicegroup *sg) bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_ok, average_percent_time_ok_known); printf("", average_percent_time_warning, average_percent_time_warning_known); printf("", average_percent_time_unknown, average_percent_time_unknown_known); @@ -4189,7 +4198,7 @@ void display_host_availability(void) total_time = calculate_total_time(t1, t2); #ifdef DEBUG - printf("Total time: '%ld' seconds
    \n", total_time); + printf("合計時間: '%ld' 秒
    \n", total_time); #endif /* its the same header for all CSV outputs */ @@ -4237,45 +4246,45 @@ void display_host_availability(void) /* up times */ get_time_breakdown(temp_subject->time_up, &days, &hours, &minutes, &seconds); - snprintf(time_up_string, sizeof(time_up_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_up_string, sizeof(time_up_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_up, &days, &hours, &minutes, &seconds); - snprintf(time_up_scheduled_string, sizeof(time_up_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_up_scheduled_string, sizeof(time_up_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_up - temp_subject->scheduled_time_up, &days, &hours, &minutes, &seconds); - snprintf(time_up_unscheduled_string, sizeof(time_up_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_up_unscheduled_string, sizeof(time_up_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* down times */ get_time_breakdown(temp_subject->time_down, &days, &hours, &minutes, &seconds); - snprintf(time_down_string, sizeof(time_down_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_down_string, sizeof(time_down_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_down, &days, &hours, &minutes, &seconds); - snprintf(time_down_scheduled_string, sizeof(time_down_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_down_scheduled_string, sizeof(time_down_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_down - temp_subject->scheduled_time_down, &days, &hours, &minutes, &seconds); - snprintf(time_down_unscheduled_string, sizeof(time_down_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_down_unscheduled_string, sizeof(time_down_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* unreachable times */ get_time_breakdown(temp_subject->time_unreachable, &days, &hours, &minutes, &seconds); - snprintf(time_unreachable_string, sizeof(time_unreachable_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unreachable_string, sizeof(time_unreachable_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_unreachable, &days, &hours, &minutes, &seconds); - snprintf(time_unreachable_scheduled_string, sizeof(time_unreachable_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unreachable_scheduled_string, sizeof(time_unreachable_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_unreachable - temp_subject->scheduled_time_unreachable, &days, &hours, &minutes, &seconds); - snprintf(time_unreachable_unscheduled_string, sizeof(time_unreachable_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unreachable_unscheduled_string, sizeof(time_unreachable_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* indeterminate times */ get_time_breakdown(time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_string, sizeof(time_indeterminate_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_string, sizeof(time_indeterminate_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_scheduled_string, sizeof(time_indeterminate_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_scheduled_string, sizeof(time_indeterminate_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(time_indeterminate - temp_subject->scheduled_time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_unscheduled_string, sizeof(time_indeterminate_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_unscheduled_string, sizeof(time_indeterminate_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_indeterminate_notrunning, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_notrunning_string, sizeof(time_indeterminate_notrunning_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_notrunning_string, sizeof(time_indeterminate_notrunning_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_indeterminate_nodata, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_nodata_string, sizeof(time_indeterminate_nodata_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_nodata_string, sizeof(time_indeterminate_nodata_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(time_determinate, &days, &hours, &minutes, &seconds); - snprintf(time_determinate_string, sizeof(time_determinate_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_determinate_string, sizeof(time_determinate_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(total_time, &days, &hours, &minutes, &seconds); - snprintf(total_time_string, sizeof(total_time_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(total_time_string, sizeof(total_time_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); if (total_time > 0) { @@ -4307,7 +4316,7 @@ void display_host_availability(void) if (output_format == HTML_OUTPUT) { - printf("
    Host State Breakdowns:
    \n"); + printf("
    ホスト稼働状況:
    \n"); #ifdef USE_TRENDS printf("

    \n"); @@ -4320,94 +4329,93 @@ void display_host_availability(void) printf("&t1=%lu&t2=%lu&includesoftstates=%s", t1, t2, (include_soft_states == TRUE) ? "yes" : "no"); printf("&assumestateretention=%s&assumeinitialstates=%s", (assume_state_retention == TRUE) ? "yes" : "no", (assume_initial_states == TRUE) ? "yes" : "no"); printf("&assumestatesduringnotrunning=%s&initialassumedhoststate=%d", (assume_states_during_notrunning == TRUE) ? "yes" : "no", initial_assumed_host_state); - printf("&backtrack=%d'", backtrack_archives); - printf(" border=1 alt='Host State Trends' title='Host State Trends' width='500' height='20'>"); + printf("&backtrack=%d' border=1 alt='ホスト状態の傾向' title='ホスト状態の傾向' width='500' height='20'>", backtrack_archives); printf("
    \n"); printf("

    \n"); #endif printf("
    \n"); printf("
    HostService%% Time OK%% Time Warning%% Time Unknown%% Time Critical%% Time Undetermined
    ホスト名サービス名正常率
    (OK)
    警告率
    (WARNING)
    不明率
    (UNKNOWN)
    停止率
    (CRITICAL)
    未確定率
    (UNDETERMINED)
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); /* up times */ printf(""); - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_up_unscheduled_string); printf("", percent_time_up_unscheduled); printf("\n", percent_time_up_unscheduled_known); printf(""); - printf(""); + printf(""); printf("", time_up_scheduled_string); printf("", percent_time_up_scheduled); printf("\n", percent_time_up_scheduled_known); printf(""); - printf(""); + printf(""); printf("", time_up_string); printf("", percent_time_up); printf("\n", percent_time_up_known); /* down times */ printf(""); - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_down_unscheduled_string); printf("", percent_time_down_unscheduled); printf("\n", percent_time_down_unscheduled_known); printf(""); - printf(""); + printf(""); printf("", time_down_scheduled_string); printf("", percent_time_down_scheduled); printf("\n", percent_time_down_scheduled_known); printf(""); - printf(""); + printf(""); printf("", time_down_string); printf("", percent_time_down); printf("\n", percent_time_down_known); /* unreachable times */ printf(""); - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_unreachable_unscheduled_string); printf("", percent_time_unreachable); printf("\n", percent_time_unreachable_known); printf(""); - printf(""); + printf(""); printf("", time_unreachable_scheduled_string); printf("", percent_time_unreachable_scheduled); printf("\n", percent_time_unreachable_scheduled_known); printf(""); - printf(""); + printf(""); printf("", time_unreachable_string); printf("", percent_time_unreachable); printf("\n", percent_time_unreachable_known); /* indeterminate times */ printf(""); - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_indeterminate_notrunning_string); printf("", percent_time_indeterminate_notrunning); printf("\n"); printf(""); - printf(""); + printf(""); printf("", time_indeterminate_nodata_string); printf("", percent_time_indeterminate_nodata); printf("\n"); printf(""); - printf(""); + printf(""); printf("", time_indeterminate_string); printf("", percent_time_indeterminate); printf("\n"); printf("\n"); - printf("\n", total_time_string); + printf("\n", total_time_string); printf("
    StateType / ReasonTime%% Total Time%% Known Time
    状態内容時間割合認知率
    UPUnscheduled稼働
    (UP)
    未計画%s%2.3f%%%2.3f%%
    Scheduled計画%s%2.3f%%%2.3f%%
    Total合計%s%2.3f%%%2.3f%%
    DOWNUnscheduled停止
    (DOWN)
    未計画%s%2.3f%%%2.3f%%
    Scheduled計画%s%2.3f%%%2.3f%%
    Total合計%s%2.3f%%%2.3f%%
    UNREACHABLEUnscheduled未到達
    (UNREACHABLE)
    未計画%s%2.3f%%%2.3f%%
    Scheduled計画%s%2.3f%%%2.3f%%
    Total合計%s%2.3f%%%2.3f%%
    UndeterminedNagios Not Running不明
    (UNDETERMINED)
    Nagios非稼働%s%2.3f%%
    Insufficient Dataデータ不足%s%2.3f%%
    Total合計%s%2.3f%%
    AllTotal%s100.000%%100.000%%
    全て合計%s100.000%%100.000%%
    \n"); printf("
    \n"); @@ -4416,11 +4424,11 @@ void display_host_availability(void) /* display state breakdowns for all services on this host (only HTML output) */ printf("

    \n"); - printf("
    State Breakdowns For Host Services:
    \n"); + printf("
    このホストのサービスの稼働状況:
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); for (temp_subject = subject_list; temp_subject != NULL; temp_subject = temp_subject->next) { @@ -4496,7 +4504,7 @@ void display_host_availability(void) bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_ok, average_percent_time_ok_known); printf("", average_percent_time_warning, average_percent_time_warning_known); printf("", average_percent_time_unknown, average_percent_time_unknown_known); @@ -4546,15 +4554,15 @@ void display_host_availability(void) if (output_format == HTML_OUTPUT) { printf("

    \n"); - printf("
    Host State Breakdowns:
    \n"); + printf("
    ホスト稼働状況:
    \n"); printf("
    \n"); printf("
    Service%% Time OK%% Time Warning%% Time Unknown%% Time Critical%% Time Undetermined
    サービス名稼働率
    (OK)
    警告率
    (WARNING)
    不明率
    (UNKNOWN)
    障害率
    (CRITICAL)
    不確定率
    (UNDETERMINED)
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); } @@ -4689,7 +4697,7 @@ void display_host_availability(void) bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_up, average_percent_time_up_known); printf("", average_percent_time_down, average_percent_time_down_known); printf("", average_percent_time_unreachable, average_percent_time_unreachable_known); @@ -4701,7 +4709,6 @@ void display_host_availability(void) } } - /* display service availability */ void display_service_availability(void) { @@ -4788,7 +4795,7 @@ void display_service_availability(void) total_time = calculate_total_time(t1, t2); #ifdef DEBUG - printf("Total time: '%ld' seconds
    \n", total_time); + printf("合計時間: '%ld' 秒
    \n", total_time); #endif /* its the same header for all CSV outputs */ @@ -4837,53 +4844,53 @@ void display_service_availability(void) /* ok states */ get_time_breakdown(temp_subject->time_ok, &days, &hours, &minutes, &seconds); - snprintf(time_ok_string, sizeof(time_ok_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_ok_string, sizeof(time_ok_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_ok, &days, &hours, &minutes, &seconds); - snprintf(time_ok_scheduled_string, sizeof(time_ok_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_ok_scheduled_string, sizeof(time_ok_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_ok - temp_subject->scheduled_time_ok, &days, &hours, &minutes, &seconds); - snprintf(time_ok_unscheduled_string, sizeof(time_ok_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_ok_unscheduled_string, sizeof(time_ok_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* warning states */ get_time_breakdown(temp_subject->time_warning, &days, &hours, &minutes, &seconds); - snprintf(time_warning_string, sizeof(time_warning_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_warning_string, sizeof(time_warning_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_warning, &days, &hours, &minutes, &seconds); - snprintf(time_warning_scheduled_string, sizeof(time_warning_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_warning_scheduled_string, sizeof(time_warning_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_warning - temp_subject->scheduled_time_warning, &days, &hours, &minutes, &seconds); - snprintf(time_warning_unscheduled_string, sizeof(time_warning_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_warning_unscheduled_string, sizeof(time_warning_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* unknown states */ get_time_breakdown(temp_subject->time_unknown, &days, &hours, &minutes, &seconds); - snprintf(time_unknown_string, sizeof(time_unknown_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unknown_string, sizeof(time_unknown_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_unknown, &days, &hours, &minutes, &seconds); - snprintf(time_unknown_scheduled_string, sizeof(time_unknown_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unknown_scheduled_string, sizeof(time_unknown_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_unknown - temp_subject->scheduled_time_unknown, &days, &hours, &minutes, &seconds); - snprintf(time_unknown_unscheduled_string, sizeof(time_unknown_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_unknown_unscheduled_string, sizeof(time_unknown_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* critical states */ get_time_breakdown(temp_subject->time_critical, &days, &hours, &minutes, &seconds); - snprintf(time_critical_string, sizeof(time_critical_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_critical_string, sizeof(time_critical_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_critical, &days, &hours, &minutes, &seconds); - snprintf(time_critical_scheduled_string, sizeof(time_critical_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_critical_scheduled_string, sizeof(time_critical_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_critical - temp_subject->scheduled_time_critical, &days, &hours, &minutes, &seconds); - snprintf(time_critical_unscheduled_string, sizeof(time_critical_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_critical_unscheduled_string, sizeof(time_critical_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); /* indeterminate time */ get_time_breakdown(time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_string, sizeof(time_indeterminate_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_string, sizeof(time_indeterminate_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->scheduled_time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_scheduled_string, sizeof(time_indeterminate_scheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_scheduled_string, sizeof(time_indeterminate_scheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(time_indeterminate - temp_subject->scheduled_time_indeterminate, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_unscheduled_string, sizeof(time_indeterminate_unscheduled_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_unscheduled_string, sizeof(time_indeterminate_unscheduled_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_indeterminate_notrunning, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_notrunning_string, sizeof(time_indeterminate_notrunning_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_notrunning_string, sizeof(time_indeterminate_notrunning_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(temp_subject->time_indeterminate_nodata, &days, &hours, &minutes, &seconds); - snprintf(time_indeterminate_nodata_string, sizeof(time_indeterminate_nodata_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_indeterminate_nodata_string, sizeof(time_indeterminate_nodata_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(time_determinate, &days, &hours, &minutes, &seconds); - snprintf(time_determinate_string, sizeof(time_determinate_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(time_determinate_string, sizeof(time_determinate_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); get_time_breakdown(total_time, &days, &hours, &minutes, &seconds); - snprintf(total_time_string, sizeof(total_time_string) - 1, "%dd %dh %dm %ds", days, hours, minutes, seconds); + snprintf(total_time_string, sizeof(total_time_string) - 1, "%d日と %d時間 %d分 %d秒", days, hours, minutes, seconds); if (total_time > 0) { @@ -4921,7 +4928,7 @@ void display_service_availability(void) if (output_format == HTML_OUTPUT) { - printf("
    Service State Breakdowns:
    \n"); + printf("
    サービス稼働状況:
    \n"); #ifdef USE_TRENDS printf("

    \n"); printf(""); + printf(" border=1 alt='サービス状態の傾向' title='サービス状態の傾向' width='500' height='20'>"); printf("
    \n"); printf("

    \n"); #endif printf("
    \n"); printf("
    Host%% Time Up%% Time Down%% Time Unreachable%% Time Undetermined
    ホスト名稼働率
    (UP)
    停止率
    (DOWN)
    未到達率
    (UNREACHABLE)
    未確定率
    (UNDETERMINED)
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); /* ok states */ - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_ok_unscheduled_string); printf("", percent_time_ok_unscheduled); printf("\n", percent_time_ok_unscheduled_known); - printf(""); + printf(""); printf("", time_ok_scheduled_string); printf("", percent_time_ok_scheduled); printf("\n", percent_time_ok_scheduled_known); - printf(""); + printf(""); printf("", time_ok_string); printf("", percent_time_ok); printf("\n", percent_time_ok_known); /* warning states */ - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_warning_unscheduled_string); printf("", percent_time_warning_unscheduled); printf("\n", percent_time_warning_unscheduled_known); - printf(""); + printf(""); printf("", time_warning_scheduled_string); printf("", percent_time_warning_scheduled); printf("\n", percent_time_warning_scheduled_known); - printf(""); + printf(""); printf("", time_warning_string); printf("", percent_time_warning); printf("\n", percent_time_warning_known); /* unknown states */ - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_unknown_unscheduled_string); printf("", percent_time_unknown_unscheduled); printf("\n", percent_time_unknown_unscheduled_known); - printf(""); + printf(""); printf("", time_unknown_scheduled_string); printf("", percent_time_unknown_scheduled); printf("\n", percent_time_unknown_scheduled_known); - printf(""); + printf(""); printf("", time_unknown_string); printf("", percent_time_unknown); printf("\n", percent_time_unknown_known); /* critical states */ - printf(""); - printf(""); + printf(""); + printf(""); printf("", time_critical_unscheduled_string); printf("", percent_time_critical_unscheduled); printf("\n", percent_time_critical_unscheduled_known); - printf(""); + printf(""); printf("", time_critical_scheduled_string); printf("", percent_time_critical_scheduled); printf("\n", percent_time_critical_scheduled_known); - printf(""); + printf(""); printf("", time_critical_string); printf("", percent_time_critical); printf("\n", percent_time_critical_known); - printf(""); + printf(""); - printf(""); + printf(""); printf("", time_indeterminate_notrunning_string); printf("", percent_time_indeterminate_notrunning); printf("\n"); - printf(""); + printf(""); printf("", time_indeterminate_nodata_string); printf("", percent_time_indeterminate_nodata); printf("\n"); - printf(""); + printf(""); printf("", time_indeterminate_string); printf("", percent_time_indeterminate); printf("\n"); printf("\n"); - printf(""); - printf(""); + printf(""); + printf(""); printf("", total_time_string); printf(""); printf("\n"); @@ -5071,11 +5078,11 @@ void display_service_availability(void) if (output_format == HTML_OUTPUT) { - printf("
    Service State Breakdowns:
    \n"); + printf("
    サービス稼働状況:
    \n"); printf("
    \n"); printf("
    StateType / ReasonTime%% Total Time%% Known Time
    状態内容時間割合認知率
    OKUnscheduled
    正常
    (OK)
    未計画%s%2.3f%%%2.3f%%
    Scheduled
    計画%s%2.3f%%%2.3f%%
    Total
    合計%s%2.3f%%%2.3f%%
    WARNINGUnscheduled
    警告
    (WARNING)
    未計画%s%2.3f%%%2.3f%%
    Scheduled
    計画%s%2.3f%%%2.3f%%
    Total
    合計%s%2.3f%%%2.3f%%
    UNKNOWNUnscheduled
    不明
    (UNKNOWN)
    未計画%s%2.3f%%%2.3f%%
    Scheduled
    計画%s%2.3f%%%2.3f%%
    Total
    合計%s%2.3f%%%2.3f%%
    CRITICALUnscheduled
    異常
    (CRITICAL)
    未計画%s%2.3f%%%2.3f%%
    Scheduled
    計画%s%2.3f%%%2.3f%%
    Total
    合計%s%2.3f%%%2.3f%%
    Undetermined
    未確定
    (UNDETERMINED)
    Nagios Not RunningNagios非稼働%s%2.3f%%
    Insufficient Data
    データ不足%s%2.3f%%
    Total
    合計%s%2.3f%%
    AllTotal
    全て合計%s100.000%%100.000%%
    \n"); - printf("\n"); + printf("", bgclass, bgclass); + printf("", bgclass, bgclass); printf("", average_percent_time_ok, average_percent_time_ok_known); printf("", average_percent_time_warning, average_percent_time_warning_known); printf("", average_percent_time_unknown, average_percent_time_unknown_known); @@ -5350,7 +5356,7 @@ unsigned long calculate_total_time(time_t start_time, time_t end_time) { start = max(temp_timerange->range_start, temp_start); end = min(temp_timerange->range_end, temp_end); #ifdef DEBUG - printf("
  • Matching in timerange[%d]: %d -> %d (%ld -> %ld) %d -> %d = %ld
    \n", weekday, temp_timerange->range_start, temp_timerange->range_end, temp_start, temp_end, start, end, end - start); + printf("
  • 一致した期間[%d]: %d -> %d (%ld -> %ld) %d -> %d = %ld
    \n", weekday, temp_timerange->range_start, temp_timerange->range_end, temp_start, temp_end, start, end, end - start); #endif if (end > start) temp_duration += end - start; diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c index b831b08f60..a9ebeb92e3 100644 --- a/cgi/cgiutils.c +++ b/cgi/cgiutils.c @@ -111,6 +111,7 @@ char encoded_url_string[2][MAX_INPUT_BUFFER]; // 2 to be able use url_encode twi char *encoded_html_string = NULL; size_t encoded_html_string_len = 0; +char ttf_file[MAX_FILENAME_LENGTH]; /* * These function stubs allow us to compile a lot of the @@ -223,6 +224,8 @@ void reset_cgi_vars(void) { ping_syntax = NULL; + strcpy(ttf_file, ""); + return; } @@ -445,6 +448,11 @@ int read_cgi_config_file(const char *filename, read_config_callback callback) { tac_cgi_hard_only = (atoi(val) > 0) ? TRUE : FALSE; else if (callback) (*callback)(var,val); + else if(!strcmp(var, "ttf_file")) { + strncpy(ttf_file, val, sizeof(ttf_file)); + ttf_file[sizeof(ttf_file)-1] = '\x0'; + strip(ttf_file); + } } for(p = illegal_output_chars; p && *p; p++) @@ -950,6 +958,7 @@ void get_time_string(time_t *raw_time, char *buffer, int buffer_length, int type int month = 0; int day = 0; int year = 0; + char *weekdays_mb[7] = {"日", "月", "火", "水", "木", "金", "土"}; const char *weekdays[7] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; const char *months[12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; const char *tzone = ""; @@ -979,7 +988,7 @@ void get_time_string(time_t *raw_time, char *buffer, int buffer_length, int type /* ctime() style */ if(type == LONG_DATE_TIME) - snprintf(buffer, buffer_length, "%s %s %d %02d:%02d:%02d %s %d", weekdays[tm_ptr->tm_wday], months[tm_ptr->tm_mon], day, hour, minute, second, tzone, year); + snprintf(buffer, buffer_length, "%d年%d月%d日(%s) %02d:%02d:%02d", year, tm_ptr->tm_mon + 1, day, weekdays_mb[tm_ptr->tm_wday], hour, minute, second); /* short style */ else if(type == SHORT_DATE_TIME) { @@ -1028,7 +1037,7 @@ void get_interval_time_string(double time_units, char *buffer, int buffer_length minutes = (int)total_seconds / 60; total_seconds %= 60; seconds = (int)total_seconds; - snprintf(buffer, buffer_length, "%dh %dm %ds", hours, minutes, seconds); + snprintf(buffer, buffer_length, "%d時間 %d分 %d秒", hours, minutes, seconds); buffer[buffer_length - 1] = '\x0'; return; @@ -1202,7 +1211,6 @@ char * html_encode_with_buffer(char *input, int escape_newlines, char **output, where_in_tag = WHERE_IN_TAG_IN_ATTRIBUTE_VALUE; } break; - case WHERE_IN_TAG_IN_ATTRIBUTE_VALUE: if((*incp == 0x20) && (attr_value_start != '"') && (attr_value_start != '\'')) where_in_tag = WHERE_IN_TAG_OUTSIDE_ATTRIBUTE; @@ -1310,7 +1318,6 @@ char * html_encode_with_buffer(char *input, int escape_newlines, char **output, where_in_tag = WHERE_OUTSIDE_TAG; *incp = 0; break; - case WHERE_IN_TAG_IN_ATTRIBUTE_VALUE: if((attr_value_start != '"') && (attr_value_start != '\'')) { *outcp++ = *incp; @@ -1655,27 +1662,30 @@ void display_info_table(const char *title, int refresh, authdata *current_authda time(¤t_time); get_time_string(¤t_time, date_time, (int)sizeof(date_time), LONG_DATE_TIME); - printf("Last Updated: %s
    \n", date_time); + printf("最終更新: %s
    \n", date_time); if(refresh == TRUE) - printf("Updated every %d seconds
    \n", refresh_rate); + printf("更新間隔:%d秒毎
    \n", refresh_rate); - printf("Nagios® Core™ %s - www.nagios.org
    \n", PROGRAM_VERSION); + printf("Nagios® Core™ %s - www.nagios.org
    \n", PROGRAM_VERSION); if(current_authdata != NULL) - printf("Logged in as %s
    \n", (!strcmp(current_authdata->username, "")) ? "?" : current_authdata->username); + printf("ログイン名: %s
    \n", (!strcmp(current_authdata->username, "")) ? "?" : current_authdata->username); + + printf("
    \n"); + printf("Nagios® Core™ %s - www.nagios.org
    \n", PROGRAM_VERSION); if(nagios_process_state != STATE_OK) - printf("
    Warning: Monitoring process may not be running!
    Click here for more info.
    ", EXTINFO_CGI, DISPLAY_PROCESS_INFO); + printf("
    警告: 監視プロセスが稼働してないようです。
    ここをク>リックして確認してください。
    ", EXTINFO_CGI, DISPLAY_PROCESS_INFO); if(result == ERROR) - printf("
    Warning: Could not read program status information!
    "); + printf("
    警告: プログラムのステータス情報が読み込めません。
    "); else { if(enable_notifications == FALSE) - printf("
    - Notifications are disabled
    "); + printf("
    - 通知機能は無効になっています
    "); if(execute_service_checks == FALSE) - printf("
    - Service checks are disabled
    "); + printf("
    - サービスチェックは無効になっています
    "); } printf("
  • \n"); @@ -1696,24 +1706,24 @@ void display_nav_table(char *url, int archive) { printf("\n"); printf("\n"); printf("\n"); printf("\n"); } @@ -1751,7 +1761,7 @@ void display_nav_table(char *url, int archive) { archive_basename = strrchr((char *)&archive_file, '/') + 1; /* now it's safe to print the filename */ - printf("
    \n", archive_basename); + printf("
    \n", archive_basename); return; } @@ -1924,10 +1934,10 @@ void include_ssi_file(const char *filename) { case EFAULT: /* Bad address. */ case ENOMEM: /* Out of memory (i.e. kernel memory). */ case ENAMETOOLONG: /* File name too long. */ - printf("
    A stat call returned %d while looking for the file %s.
    ", errno, filename); + printf("
    -%d: %s のファイル名が長すぎます
    ", errno, filename); return; case EACCES: /* Permission denied. -- The file should be accessible by nagios. */ - printf("
    A stat call returned a permissions error(%d) while looking for the file %s.
    ", errno, filename); + printf("
    -%d: %s のパーミッションが正しくありません
    ", errno, filename); return; case ENOENT: /* A component of the path file_name does not exist, or the path is an empty string. Just return if the file doesn't exist. */ return; @@ -1953,25 +1963,25 @@ void include_ssi_file(const char *filename) { /* displays an error if CGI config file could not be read */ void cgi_config_file_error(const char *config_file) { - printf("

    Whoops!

    \n"); + printf("

    エラーが発生しました

    \n"); - printf("

    Error: Could not open CGI config file '%s' for reading!

    \n", config_file); + printf("

    エラー: CGI設定ファイル '%s' が読めません

    \n", config_file); printf("

    \n"); - printf("Here are some things you should check in order to resolve this error:\n"); + printf("この問題を解決するためにチェックする項目:\n"); printf("

    \n"); printf("

    \n"); printf("

      \n"); - printf("
    1. Make sure you've installed a CGI config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample CGI configuration file (named cgi.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.\n"); - printf("
    2. Make sure the user your web server is running as has permission to read the CGI config file.\n"); + printf("
    3. NagiosのCGI設定ファイルが正しい位置にあるか確認してください。CGIがどこに設定ファイルがあると想定しているか確認するために詳細のエラーメッセージを見てください。サンプルのCGI設定ファイル(cgi.cfg)はNagiosのソースディレクトリ内のsample-config/サブディレクトリにあります。\n"); + printf("
    4. WebサーバがNagiosのCGI設定ファイルを読むことが出来るようになっているかパーミッションを確認してください。\n"); printf("
    \n"); printf("

    \n"); printf("

    \n"); - printf("Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at https://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttps://www.nagios.org>へどうぞ。\n"); printf("

    \n"); return; @@ -1982,25 +1992,25 @@ void cgi_config_file_error(const char *config_file) { /* displays an error if main config file could not be read */ void main_config_file_error(const char *config_file) { - printf("

    Whoops!

    \n"); + printf("

    エラーが発生しました

    \n"); - printf("

    Error: Could not open main config file '%s' for reading!

    \n", config_file); + printf("

    エラー: 設定ファイル'%s' が読み込めませんでした

    \n", config_file); printf("

    \n"); - printf("Here are some things you should check in order to resolve this error:\n"); + printf("この問題を解決するためにチェックする項目:\n"); printf("

    \n"); printf("

    \n"); printf("

      \n"); - printf("
    1. Make sure you've installed a main config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample main configuration file (named nagios.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.\n"); - printf("
    2. Make sure the user your web server is running as has permission to read the main config file.\n"); + printf("
    3. メインの設定ファイルが正しい位置にあるか確認してください。CGIがどこに設定ファイルがあると想定しているか確認するために詳細のエラーメッセージを見てください。サンプルのCGIコンフィグファイル(nagiso.cfg)はNagiosのソースディレクトリ内のsample-config/サブディレクトリにありますよ。\n"); + printf("
    4. Webサーバが設定ファイルを読むことが出来るようになっているかパーミッションを確認してください。\n"); printf("
    \n"); printf("

    \n"); printf("

    \n"); - printf("Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at https://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttps://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; @@ -2010,25 +2020,25 @@ void main_config_file_error(const char *config_file) { /* displays an error if object data could not be read */ void object_data_error(void) { - printf("

    Whoops!

    \n"); + printf("

    エラーが発生しました

    \n"); - printf("

    Error: Could not read object configuration data!

    \n"); + printf("

    エラー: オブジェクト設定ファイルが読み込めませんでした

    \n"); printf("

    \n"); - printf("Here are some things you should check in order to resolve this error:\n"); + printf("この問題を解決するためにチェックする項目:\n"); printf("

    \n"); printf("

    \n"); printf("

      \n"); - printf("
    1. Verify configuration options using the -v command-line option to check for errors.\n"); - printf("
    2. Check the Nagios log file for messages relating to startup or status data errors.\n"); + printf("
    3. 設定内容が正しいかどうかコマンドライン上で-vオプションをつけてコマンドを実行して確認してください。(例:nagios -v /etc/nagios/nagios.cfg)\n"); + printf("
    4. Nagiosのログファイルを見て何がエラーを起こしてるのかチェックしてください。\n"); printf("
    \n"); printf("

    \n"); printf("

    \n"); - printf("Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at https://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttps://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; @@ -2038,29 +2048,29 @@ void object_data_error(void) { /* displays an error if status data could not be read */ void status_data_error(void) { - printf("

    Whoops!

    \n"); + printf("

    エラーが発生しました

    \n"); - printf("

    Error: Could not read host and service status information!

    \n"); + printf("

    エラー: ホストとサービス稼動状況の情報が読み込めませんでした

    \n"); printf("

    \n"); - printf("The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.\n"); + printf("このエラーが表示される最大の原因は正しくNagiosが稼動していないことが考えられます。もしNagiosが実際には動いてない場合、このメッセージは特に意味を持たない単なるエラーになります。これは単純にCGIがホストやサービスの状態をモニタリングできていないことになります。これを解決するにはNagiosのドキュメントの\"starting Nagios\"セクションを熟読してください。\n"); printf("

    \n"); printf("

    \n"); - printf("Some other things you should check in order to resolve this error include:\n"); + printf("このエラーを回避するためにチェックする箇所:\n"); printf("

    \n"); printf("

    \n"); printf("

      \n"); - printf("
    1. Check the Nagios log file for messages relating to startup or status data errors.\n"); - printf("
    2. Always verify configuration options using the -v command-line option before starting or restarting Nagios!\n"); + printf("
    3. Nagiosのログファイルを見てNagios起動時、もしくはステータスデータ取得時のエラーを確認してください。\n"); + printf("
    4. 設定内容が正しいかどうかコマンドライン上で-vオプションをつけてコマンドを実行して確認してください。(例:nagios -v /etc/nagios/nagios.cfg)\n"); printf("
    \n"); printf("

    \n"); printf("

    \n"); - printf("Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at https://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttps://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; diff --git a/cgi/cmd.c b/cgi/cmd.c index 67bb9981d9..4873899628 100644 --- a/cgi/cmd.c +++ b/cgi/cmd.c @@ -128,7 +128,7 @@ int main(void) { if(result == ERROR) { document_header(FALSE); if(content_type == WML_CONTENT) - printf("

    Error: Could not open CGI config file!

    \n"); + printf("

    エラー: CGI設定ファイルが開けませんでした。

    \n"); else cgi_config_file_error(get_cgi_config_location()); document_footer(); @@ -140,7 +140,7 @@ int main(void) { if(result == ERROR) { document_header(FALSE); if(content_type == WML_CONTENT) - printf("

    Error: Could not open main config file!

    \n"); + printf("

    エラー: メインの設定ファイルが開けませんでした。

    \n"); else main_config_file_error(main_config_file); document_footer(); @@ -160,7 +160,7 @@ int main(void) { if(result == ERROR) { document_header(FALSE); if(content_type == WML_CONTENT) - printf("

    Error: Could not read object config data!

    \n"); + printf("

    エラー: オブジェクトデータが読み取り出来ませんでした。

    \n"); else object_data_error(); document_footer(); @@ -205,9 +205,8 @@ int main(void) { /* authorized_for_read_only should take priority */ if(is_authorized_for_read_only(¤t_authdata) == TRUE) { - printf("

    It appears as though you do not have permission to submit the command you requested...

    \n"); - printf("

    If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
    "); - printf("and check the authorization options in your CGI configuration file.

    \n"); + printf("

    要求したコマンドを送信する権限が無いようです。

    \n"); + printf("

    このメッセージが何らかのエラーであると思う場合はHTTPサーバのこのCGIに対するアクセス権限の設定かNagiosのCGI用設定ファイルの認証に関するオプションを調べてみてください

    \n"); document_footer(); @@ -229,9 +228,9 @@ int main(void) { /* if no command was specified... */ if(command_type == CMD_NONE) { if(content_type == WML_CONTENT) - printf("

    Error: No command specified!

    \n"); + printf("

    エラー: コマンドが選択されていません。

    \n"); else - printf("

    Error: No command was specified

    \n"); + printf("

    エラー: コマンドが選択されていません。

    \n"); } /* if this is the first request for a command, present option */ @@ -292,7 +291,7 @@ void document_header(int use_stylesheet) { printf("\n"); - printf("\n"); + printf("\n"); } else { @@ -303,7 +302,7 @@ void document_header(int use_stylesheet) { printf("\n"); printf("\n", url_images_path); printf("\n"); - printf("External Command Interface\n"); + printf("外部コマンドインターフェース\n"); printf("\n"); if(use_stylesheet == TRUE) { @@ -734,259 +733,259 @@ void request_command_data(int cmd) { comment_author = current_authdata.username; - printf("

    You are requesting to "); + printf("

    リクエストしたコマンド:"); switch(cmd) { case CMD_ADD_HOST_COMMENT: case CMD_ADD_SVC_COMMENT: - printf("add a %s comment", (cmd == CMD_ADD_HOST_COMMENT) ? "host" : "service"); + printf("%sにコメントを追加する", (cmd == CMD_ADD_HOST_COMMENT) ? "ホスト" : "サービス"); break; case CMD_DEL_HOST_COMMENT: case CMD_DEL_SVC_COMMENT: - printf("delete a %s comment", (cmd == CMD_DEL_HOST_COMMENT) ? "host" : "service"); + printf("%sのコメントを削除する", (cmd == CMD_DEL_HOST_COMMENT) ? "ホスト" : "サービス"); break; case CMD_DELAY_HOST_NOTIFICATION: case CMD_DELAY_SVC_NOTIFICATION: - printf("delay a %s notification", (cmd == CMD_DELAY_HOST_NOTIFICATION) ? "host" : "service"); + printf("%sの通知を遅らせる", (cmd == CMD_DELAY_HOST_NOTIFICATION) ? "ホスト" : "サービス"); break; case CMD_SCHEDULE_SVC_CHECK: - printf("schedule a service check"); + printf("次回のサービスチェックを再スケジュール"); break; case CMD_ENABLE_SVC_CHECK: case CMD_DISABLE_SVC_CHECK: - printf("%s active checks of a particular service", (cmd == CMD_ENABLE_SVC_CHECK) ? "enable" : "disable"); + printf("指定したサービスチェックを%sにする", (cmd == CMD_ENABLE_SVC_CHECK) ? "有効" : "無効"); break; case CMD_ENABLE_NOTIFICATIONS: case CMD_DISABLE_NOTIFICATIONS: - printf("%s notifications", (cmd == CMD_ENABLE_NOTIFICATIONS) ? "enable" : "disable"); + printf("通知を%sにする", (cmd == CMD_ENABLE_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_SHUTDOWN_PROCESS: case CMD_RESTART_PROCESS: - printf("%s the Nagios process", (cmd == CMD_SHUTDOWN_PROCESS) ? "shutdown" : "restart"); + printf("Nagiosの%s", (cmd == CMD_SHUTDOWN_PROCESS) ? "停止" : "再起動"); break; case CMD_ENABLE_HOST_SVC_CHECKS: case CMD_DISABLE_HOST_SVC_CHECKS: - printf("%s active checks of all services on a host", (cmd == CMD_ENABLE_HOST_SVC_CHECKS) ? "enable" : "disable"); + printf("ホストの全サービスを%sにする", (cmd == CMD_ENABLE_HOST_SVC_CHECKS) ? "有効" : "無効"); break; case CMD_SCHEDULE_HOST_SVC_CHECKS: - printf("schedule a check of all services for a host"); + printf("ホストの全てのサービスチェックを遅らせる"); break; case CMD_DEL_ALL_HOST_COMMENTS: case CMD_DEL_ALL_SVC_COMMENTS: - printf("delete all comments for a %s", (cmd == CMD_DEL_ALL_HOST_COMMENTS) ? "host" : "service"); + printf("%sの全てのコメントを削除する", (cmd == CMD_DEL_ALL_HOST_COMMENTS) ? "ホスト" : "サービス"); break; case CMD_ENABLE_SVC_NOTIFICATIONS: case CMD_DISABLE_SVC_NOTIFICATIONS: - printf("%s notifications for a service", (cmd == CMD_ENABLE_SVC_NOTIFICATIONS) ? "enable" : "disable"); + printf("サービスの通知を%sにする", (cmd == CMD_ENABLE_SVC_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_HOST_NOTIFICATIONS: case CMD_DISABLE_HOST_NOTIFICATIONS: - printf("%s notifications for a host", (cmd == CMD_ENABLE_HOST_NOTIFICATIONS) ? "enable" : "disable"); + printf("ホストの通知を%sにする", (cmd == CMD_ENABLE_HOST_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST: case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST: - printf("%s notifications for all hosts and services beyond a host", (cmd == CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST) ? "enable" : "disable"); + printf("ホスト配下の全ホストとサービスの通知を%sにする", (cmd == CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST) ? "有効" : "無効"); break; case CMD_ENABLE_HOST_SVC_NOTIFICATIONS: case CMD_DISABLE_HOST_SVC_NOTIFICATIONS: - printf("%s notifications for all services on a host", (cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS) ? "enable" : "disable"); + printf("ホスト上の全サービスの通知を%sにする", (cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ACKNOWLEDGE_HOST_PROBLEM: case CMD_ACKNOWLEDGE_SVC_PROBLEM: - printf("acknowledge a %s problem", (cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) ? "host" : "service"); + printf("%sの問題を既知にする", (cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) ? "ホスト" : "サービス"); break; case CMD_START_EXECUTING_SVC_CHECKS: case CMD_STOP_EXECUTING_SVC_CHECKS: - printf("%s executing active service checks", (cmd == CMD_START_EXECUTING_SVC_CHECKS) ? "start" : "stop"); + printf("サービスチェックを%sする", (cmd == CMD_START_EXECUTING_SVC_CHECKS) ? "開始" : "停止"); break; case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS: case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS: - printf("%s accepting passive service checks", (cmd == CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS) ? "start" : "stop"); + printf("パッシブサービスチェックを%sする", (cmd == CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS) ? "開始" : "停止"); break; case CMD_ENABLE_PASSIVE_SVC_CHECKS: case CMD_DISABLE_PASSIVE_SVC_CHECKS: - printf("%s accepting passive service checks for a particular service", (cmd == CMD_ENABLE_PASSIVE_SVC_CHECKS) ? "start" : "stop"); + printf("指定したサービスのパッシブチェックを%sする", (cmd == CMD_ENABLE_PASSIVE_SVC_CHECKS) ? "開始" : "停止"); break; case CMD_ENABLE_EVENT_HANDLERS: case CMD_DISABLE_EVENT_HANDLERS: - printf("%s event handlers", (cmd == CMD_ENABLE_EVENT_HANDLERS) ? "enable" : "disable"); + printf("イベントハンドラを%sにする", (cmd == CMD_ENABLE_EVENT_HANDLERS) ? "有効" : "無効"); break; case CMD_ENABLE_HOST_EVENT_HANDLER: case CMD_DISABLE_HOST_EVENT_HANDLER: - printf("%s the event handler for a particular host", (cmd == CMD_ENABLE_HOST_EVENT_HANDLER) ? "enable" : "disable"); + printf("指定したホストのイベントハンドラを%sにする", (cmd == CMD_ENABLE_HOST_EVENT_HANDLER) ? "有効" : "無効"); break; case CMD_ENABLE_SVC_EVENT_HANDLER: case CMD_DISABLE_SVC_EVENT_HANDLER: - printf("%s the event handler for a particular service", (cmd == CMD_ENABLE_SVC_EVENT_HANDLER) ? "enable" : "disable"); + printf("指定したサービスのイベントハンドラを%sにする", (cmd == CMD_ENABLE_SVC_EVENT_HANDLER) ? "有効" : "無効"); break; case CMD_ENABLE_HOST_CHECK: case CMD_DISABLE_HOST_CHECK: - printf("%s active checks of a particular host", (cmd == CMD_ENABLE_HOST_CHECK) ? "enable" : "disable"); + printf("指定したホストのアクティブチェックを%sにする", (cmd == CMD_ENABLE_HOST_CHECK) ? "有効" : "無効"); break; case CMD_STOP_OBSESSING_OVER_SVC_CHECKS: case CMD_START_OBSESSING_OVER_SVC_CHECKS: - printf("%s obsessing over service checks", (cmd == CMD_STOP_OBSESSING_OVER_SVC_CHECKS) ? "stop" : "start"); + printf("Obsessing Overサービスチェックを%sする", (cmd == CMD_STOP_OBSESSING_OVER_SVC_CHECKS) ? "停止" : "開始"); break; case CMD_REMOVE_HOST_ACKNOWLEDGEMENT: case CMD_REMOVE_SVC_ACKNOWLEDGEMENT: - printf("remove a %s acknowledgement", (cmd == CMD_REMOVE_HOST_ACKNOWLEDGEMENT) ? "host" : "service"); + printf("%sの既知の問題を削除する", (cmd == CMD_REMOVE_HOST_ACKNOWLEDGEMENT) ? "ホスト" : "サービス"); break; case CMD_SCHEDULE_HOST_DOWNTIME: case CMD_SCHEDULE_SVC_DOWNTIME: - printf("schedule downtime for a particular %s", (cmd == CMD_SCHEDULE_HOST_DOWNTIME) ? "host" : "service"); + printf("%sのダウンタイムをスケジュールに追加する", (cmd == CMD_SCHEDULE_HOST_DOWNTIME) ? "ホスト" : "サービス"); break; case CMD_SCHEDULE_HOST_SVC_DOWNTIME: - printf("schedule downtime for all services for a particular host"); + printf("ホストの全サービスのダウンタイムをスケジュールに追加する"); break; case CMD_PROCESS_HOST_CHECK_RESULT: case CMD_PROCESS_SERVICE_CHECK_RESULT: - printf("submit a passive check result for a particular %s", (cmd == CMD_PROCESS_HOST_CHECK_RESULT) ? "host" : "service"); + printf("指定した%sのパッシブチェックの結果を登録する", (cmd == CMD_PROCESS_HOST_CHECK_RESULT) ? "ホスト" : "サービス"); break; case CMD_ENABLE_HOST_FLAP_DETECTION: case CMD_DISABLE_HOST_FLAP_DETECTION: - printf("%s flap detection for a particular host", (cmd == CMD_ENABLE_HOST_FLAP_DETECTION) ? "enable" : "disable"); + printf("ホストのフラップ検知を%sにする", (cmd == CMD_ENABLE_HOST_FLAP_DETECTION) ? "有効" : "無効"); break; case CMD_ENABLE_SVC_FLAP_DETECTION: case CMD_DISABLE_SVC_FLAP_DETECTION: - printf("%s flap detection for a particular service", (cmd == CMD_ENABLE_SVC_FLAP_DETECTION) ? "enable" : "disable"); + printf("サービスのフラップ検知を%sにする", (cmd == CMD_ENABLE_SVC_FLAP_DETECTION) ? "有効" : "無効"); break; case CMD_ENABLE_FLAP_DETECTION: case CMD_DISABLE_FLAP_DETECTION: - printf("%s flap detection for hosts and services", (cmd == CMD_ENABLE_FLAP_DETECTION) ? "enable" : "disable"); + printf("ホストとサービスのフラップ検知を%sにする", (cmd == CMD_ENABLE_FLAP_DETECTION) ? "有効" : "無効"); break; case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS: case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS: - printf("%s notifications for all services in a particular hostgroup", (cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS) ? "enable" : "disable"); + printf("指定したホストグループ上の全サービスの通知を%sにする", (cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS: case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS: - printf("%s notifications for all hosts in a particular hostgroup", (cmd == CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS) ? "enable" : "disable"); + printf("指定したホストグループ上の全ホストの通知を%sにする", (cmd == CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_HOSTGROUP_SVC_CHECKS: case CMD_DISABLE_HOSTGROUP_SVC_CHECKS: - printf("%s active checks of all services in a particular hostgroup", (cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS) ? "enable" : "disable"); + printf("指定したホストグループ上の全てのサービスチェックを%sにする", (cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS) ? "有効" : "無効"); break; case CMD_DEL_HOST_DOWNTIME: case CMD_DEL_SVC_DOWNTIME: - printf("cancel scheduled downtime for a particular %s", (cmd == CMD_DEL_HOST_DOWNTIME) ? "host" : "service"); + printf("%sのダウンタイムをキャンセルする", (cmd == CMD_DEL_HOST_DOWNTIME) ? "ホスト" : "サービス"); break; case CMD_ENABLE_PERFORMANCE_DATA: case CMD_DISABLE_PERFORMANCE_DATA: - printf("%s performance data processing for hosts and services", (cmd == CMD_ENABLE_PERFORMANCE_DATA) ? "enable" : "disable"); + printf("ホストとサービスのパフォーマンスデータを%sにする", (cmd == CMD_ENABLE_PERFORMANCE_DATA) ? "有効" : "無効"); break; case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME: - printf("schedule downtime for all hosts in a particular hostgroup"); + printf("指定したホストグループ上のホストのダウンタイムをスケジュールに追加する"); break; case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME: - printf("schedule downtime for all services in a particular hostgroup"); + printf("指定したホストグループ上のサービスのダウンタイムをスケジュールに追加する"); break; case CMD_START_EXECUTING_HOST_CHECKS: case CMD_STOP_EXECUTING_HOST_CHECKS: - printf("%s executing host checks", (cmd == CMD_START_EXECUTING_HOST_CHECKS) ? "start" : "stop"); + printf("ホストチェックを%sする", (cmd == CMD_START_EXECUTING_HOST_CHECKS) ? "開始" : "停止"); break; case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS: case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS: - printf("%s accepting passive host checks", (cmd == CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS) ? "start" : "stop"); + printf("パッシブホストのチェックを%sする", (cmd == CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS) ? "開始" : "停止"); break; case CMD_ENABLE_PASSIVE_HOST_CHECKS: case CMD_DISABLE_PASSIVE_HOST_CHECKS: - printf("%s accepting passive checks for a particular host", (cmd == CMD_ENABLE_PASSIVE_HOST_CHECKS) ? "start" : "stop"); + printf("指定したホストのパッシブチェックを%sする", (cmd == CMD_ENABLE_PASSIVE_HOST_CHECKS) ? "開始" : "停止"); break; case CMD_START_OBSESSING_OVER_HOST_CHECKS: case CMD_STOP_OBSESSING_OVER_HOST_CHECKS: - printf("%s obsessing over host checks", (cmd == CMD_START_OBSESSING_OVER_HOST_CHECKS) ? "start" : "stop"); + printf("Obsessing Overホストのチェックを%sする", (cmd == CMD_START_OBSESSING_OVER_HOST_CHECKS) ? "開始" : "停止"); break; case CMD_SCHEDULE_HOST_CHECK: - printf("schedule a host check"); + printf("ホストチェックをスケジュールに追加する"); break; case CMD_START_OBSESSING_OVER_SVC: case CMD_STOP_OBSESSING_OVER_SVC: - printf("%s obsessing over a particular service", (cmd == CMD_START_OBSESSING_OVER_SVC) ? "start" : "stop"); + printf("指定したサービスのObsessing Overを%sする", (cmd == CMD_START_OBSESSING_OVER_SVC) ? "開始" : "停止"); break; case CMD_START_OBSESSING_OVER_HOST: case CMD_STOP_OBSESSING_OVER_HOST: - printf("%s obsessing over a particular host", (cmd == CMD_START_OBSESSING_OVER_HOST) ? "start" : "stop"); + printf("指定したホストのObsessing Overを%sする", (cmd == CMD_START_OBSESSING_OVER_HOST) ? "開始" : "停止"); break; case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS: case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS: - printf("%s notifications for all services in a particular servicegroup", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS) ? "enable" : "disable"); + printf("指定したサービスグループ上の全サービスの通知を%sにする", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS: case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS: - printf("%s notifications for all hosts in a particular servicegroup", (cmd == CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS) ? "enable" : "disable"); + printf("指定したサービスグループ上の全ホストの通知を%sにする", (cmd == CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS) ? "有効" : "無効"); break; case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS: case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS: - printf("%s active checks of all services in a particular servicegroup", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS) ? "enable" : "disable"); + printf("指定したサービスグループ上の全てのサービスチェックを%sにする", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS) ? "有効" : "無効"); break; case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME: - printf("schedule downtime for all hosts in a particular servicegroup"); + printf("指定したサービスグループ上のホストのダウンタイムをスケジュールに追加する"); break; case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME: - printf("schedule downtime for all services in a particular servicegroup"); + printf("指定したサービスグループ上のサービスのダウンタイムをスケジュールに追加する"); break; case CMD_CLEAR_HOST_FLAPPING_STATE: case CMD_CLEAR_SVC_FLAPPING_STATE: - printf("clear flapping state for a %s", (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "host" : "service"); + printf("%sのフラッピング状態をクリアする", (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "ホスト" : "サービス"); break; case CMD_SEND_CUSTOM_HOST_NOTIFICATION: case CMD_SEND_CUSTOM_SVC_NOTIFICATION: - printf("send a custom %s notification", (cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION) ? "host" : "service"); + printf("カスタム%s通知を送信する", (cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION) ? "ホスト" : "サービス"); break; default: - printf("execute an unknown command. Shame on you!
    "); + printf("不明なコマンドを実行しました
    "); return; } @@ -999,7 +998,7 @@ void request_command_data(int cmd) { printf("
    \n"); printf("\n"); - printf("\n"); return TRUE; @@ -1507,13 +1506,13 @@ void commit_command_data(int cmd) { if (ecmd->cmt_opt == 2 && *comment_data == '\0') { if(!error_string) { - error_string = strdup("Comment was not entered"); + error_string = strdup("コメントが入力されていません"); } } clean_comment_data(comment_data); if (*comment_data != '\0' && *comment_author == '\0') { if(!error_string) { - error_string = strdup("Author was not entered"); + error_string = strdup("作成者が入力されていません"); } } clean_comment_data(comment_author); @@ -1545,7 +1544,7 @@ void commit_command_data(int cmd) { /* check the sanity of the comment id */ if(comment_id == 0) { if(!error_string) { - error_string = strdup("Comment id cannot be 0"); + error_string = strdup("コメントIDは0にできません"); } } @@ -1582,7 +1581,7 @@ void commit_command_data(int cmd) { /* check the sanity of the downtime id */ if(downtime_id == 0) { if(!error_string) { - error_string = strdup("Downtime id cannot be 0"); + error_string = strdup("ダウンタイムIDは0にできません"); } } @@ -1642,28 +1641,28 @@ void commit_command_data(int cmd) { /* make sure we have passive check info (if necessary) */ if(cmd == CMD_PROCESS_SERVICE_CHECK_RESULT && !strcmp(plugin_output, "")) { if(!error_string) { - error_string = strdup("Plugin output cannot be blank"); + error_string = strdup("プラグイン出力は空にできません"); } } /* make sure we have a notification delay (if necessary) */ if(cmd == CMD_DELAY_SVC_NOTIFICATION && notification_delay <= 0) { if(!error_string) { - error_string = strdup("Notification delay must be greater than 0"); + error_string = strdup("通知の遅延は0よりも大きくしなければなりません"); } } /* make sure we have check time (if necessary) */ if(cmd == CMD_SCHEDULE_SVC_CHECK && start_time == (time_t)0) { if(!error_string) { - error_string = strdup("Start time must be non-zero or bad format has been submitted."); + error_string = strdup("開始時間が不正な形式が送信されたか、0以外のものでなければなりません。"); } } /* make sure we have start/end times for downtime (if necessary) */ if(cmd == CMD_SCHEDULE_SVC_DOWNTIME && (start_time == (time_t)0 || end_time == (time_t)0 || end_time < start_time)) { if(!error_string) { - error_string = strdup("Start or end time not valid"); + error_string = strdup("開始または終了時間が不正です"); } } @@ -1735,28 +1734,28 @@ void commit_command_data(int cmd) { /* make sure we have a notification delay (if necessary) */ if(cmd == CMD_DELAY_HOST_NOTIFICATION && notification_delay <= 0) { if(!error_string) { - error_string = strdup("Notification delay must be greater than 0"); + error_string = strdup("通知の遅延は0以上でなければなりません"); } } /* make sure we have start/end times for downtime (if necessary) */ if((cmd == CMD_SCHEDULE_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOST_SVC_DOWNTIME) && (start_time == (time_t)0 || end_time == (time_t)0 || start_time > end_time)) { if(!error_string) { - error_string = strdup("Start or end time not valid"); + error_string = strdup("開始または終了時間が不正です"); } } /* make sure we have check time (if necessary) */ if((cmd == CMD_SCHEDULE_HOST_CHECK || cmd == CMD_SCHEDULE_HOST_SVC_CHECKS) && start_time == (time_t)0) { if(!error_string) { - error_string = strdup("Start time must be non-zero or bad format has been submitted."); + error_string = strdup("開始時間は不正な形式で送信されたか、0以外のものでなければなりません。"); } } /* make sure we have passive check info (if necessary) */ if(cmd == CMD_PROCESS_HOST_CHECK_RESULT && !strcmp(plugin_output, "")) { if(!error_string) { - error_string = strdup("Plugin output cannot be blank"); + error_string = strdup("プラグイン出力は空にできません"); } } @@ -1774,7 +1773,7 @@ void commit_command_data(int cmd) { /* make sure we have start/end times for downtime */ if((cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME) && (start_time == (time_t)0 || end_time == (time_t)0 || start_time > end_time)) { if(!error_string) { - error_string = strdup("Start or end time not valid"); + error_string = strdup("開始または終了時間が不正です"); } } @@ -1798,7 +1797,7 @@ void commit_command_data(int cmd) { /* make sure we have start/end times for downtime */ if((cmd == CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME) && (start_time == (time_t)0 || end_time == (time_t)0 || start_time > end_time)) { if(!error_string) { - error_string = strdup("Start or end time not valid"); + error_string = strdup("開始または終了時間が不正です"); } } @@ -1831,7 +1830,7 @@ void commit_command_data(int cmd) { default: if(!error_string) { - error_string = strdup("An error occurred while processing your command!"); + error_string = strdup("コマンドの実行中にエラーが発生しました!"); } } @@ -1839,16 +1838,16 @@ void commit_command_data(int cmd) { /* to be safe, we are going to REQUIRE that the authentication functionality is enabled... */ if(use_authentication == FALSE) { if(content_type == WML_CONTENT) { - printf("

    Error: Authentication is not enabled!

    \n"); + printf("

    エラー: CGIの認証機能が無効になっています。

    \n"); } else { printf("

    \n"); - printf("

    Sorry Dave, I can't let you do that...

    "); + printf("
    実行できません。

    "); printf("
    "); - printf("It seems that you have chosen to not use the authentication functionality of the CGIs.

    "); - printf("I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios, "); - printf("so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.

    "); - printf("Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to.\n"); + printf("CGIの認証機能が無効になっています

    "); + printf("これは無許可のユーザがNagiosに対してコマンドを使用できてしまうためあまり望ましくありません。"); + printf("それでもコマンドを使用出来るようにする場合は、Nagiosのセキュリティ機能を削除する必要があります。

    "); + printf("HTMLドキュメントの CGI認証機能の項目を熟読してから認証機能の設定を行ってください。\n"); printf("
    \n"); printf("

    \n"); } @@ -1857,12 +1856,12 @@ void commit_command_data(int cmd) { /* the user is not authorized to issue the given command */ else if(authorized == FALSE) { if(content_type == WML_CONTENT) { - printf("

    Error: You're not authorized to commit that command!

    \n"); + printf("

    エラー: このコマンドを発行する権限がありません。

    \n"); } else { - printf("

    Sorry, but you are not authorized to commit the specified command.

    \n"); - printf("

    Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.

    \n"); - printf("Return from whence you came

    \n"); + printf("

    このコマンドを発行する権限がありません。

    \n"); + printf("

    HTMLドキュメントの CGI認証機能の項目を熟読してから認証機能の設定を行ってください。

    \n"); + printf("元のページへ戻る

    \n"); } } @@ -1873,20 +1872,21 @@ void commit_command_data(int cmd) { } else { printf("

    %s

    \n", error_string); - printf("

    Go back and verify that you entered all required information correctly.
    \n"); - printf("Return from whence you came

    \n"); + free(error_string); + printf("

    入力に誤りが無いか戻って確認してください。
    \n"); + printf("元のページへ戻る

    \n"); } } /* if Nagios isn't checking external commands, don't do anything... */ else if(check_external_commands == FALSE) { if(content_type == WML_CONTENT) { - printf("

    Error: Nagios is not checking external commands!

    \n"); + printf("

    エラー: Nagiosが外部コマンドをチェックできないためコマンド発行できませんでした。

    \n"); } else { - printf("

    Sorry, but Nagios is currently not checking for external commands, so your command will not be committed!

    \n"); - printf("

    Read the documentation for information on how to enable external commands...

    \n"); - printf("Return from whence you came

    \n"); + printf("

    Nagiosが外部コマンドをチェックできないためコマンド発行できませんでした。

    \n"); + printf("

    外部コマンド使い方についてドキュメントを読んでください。

    \n"); + printf("元のページへ戻る

    \n"); } } @@ -1898,21 +1898,21 @@ void commit_command_data(int cmd) { if(result == OK) { if(content_type == WML_CONTENT) { - printf("

    Your command was submitted successfully...

    \n"); + printf("

    コマンドを正常に受け付けました。

    \n"); } else { - printf("

    Your command request was successfully submitted to Nagios for processing.

    \n"); - printf("Note: It may take a while before the command is actually processed.

    \n"); - printf("Done

    "); + printf("

    コマンドを正常に受け付けました。

    \n"); + printf("注)コマンドが実行されるまではしばらく時間がかかります。

    \n"); + printf("了解

    "); } } else { if(content_type == WML_CONTENT) { - printf("

    An error occurred while committing your command!

    \n"); + printf("

    コマンドを処理する際にエラーが発生しました。

    \n"); } else { - printf("

    An error occurred while attempting to commit your command for processing.

    \n"); - printf("Return from whence you came

    \n"); + printf("

    コマンドを処理する際にエラーが発生しました。

    \n"); + printf("元のページへ戻る

    \n"); } } } @@ -2275,11 +2275,11 @@ int write_command_to_file(char *cmd) { if(stat(command_file, &statbuf)) { if(content_type == WML_CONTENT) - printf("

    Error: Could not stat() external command file!

    \n"); + printf("

    エラー: 外部コマンドファイルをstat()できません。

    \n"); else { - printf("

    Error: Could not stat() command file '%s'!

    \n", command_file); + printf("

    エラー: 外部コマンドファイル'%s'をstat()できません。

    \n", command_file); printf("

    "); - printf("The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.\n"); + printf("外部コマンドファイルが無いようです。Nagiosが動いてないか、Nagiosが外部コマンドをチェックできない状態の可能性があります。\n"); printf("

    \n"); } @@ -2291,11 +2291,11 @@ int write_command_to_file(char *cmd) { if(fp == NULL) { if(content_type == WML_CONTENT) - printf("

    Error: Could not open command file for update!

    \n"); + printf("

    エラー: コマンドファイルをアップデートできません。

    \n"); else { - printf("

    Error: Could not open command file '%s' for update!

    \n", command_file); + printf("

    エラー: コマンドファイル'%s'をアップデートできません。

    \n", command_file); printf("

    "); - printf("The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.\n"); + printf("外部コマンドファイルもしくは、ディレクトリのパーミッションに誤りがある可能性があります。パーミッションが適切かどうか確認してください。\n"); printf("

    \n"); } @@ -2336,7 +2336,7 @@ void clean_comment_data(char *buffer) { /* display information about a command */ void show_command_help(int cmd) { - printf("
    Command Description
    \n"); + printf("
    コマンドの説明
    \n"); printf("
    HostService%% Time OK%% Time Warning%% Time Unknown%% Time Critical%% Time Undetermined
    ホスト名サービス名稼働率
    (OK)
    警告率
    (WARNING)
    不明率
    (UNKNOWN)
    障害率
    (CRITICAL)
    不確定率
    (UNDETERMINED)TR>\n"); } for (temp_subject = subject_list; temp_subject != NULL; temp_subject = temp_subject->next) { @@ -5222,20 +5229,19 @@ void display_service_availability(void) printf("%lu, %2.3f%%, %2.3f%%, ", temp_subject->time_critical, percent_time_critical, percent_time_critical_known); /* indeterminate times */ - printf("%lu, %2.3f%%, ", temp_subject->time_indeterminate_notrunning, percent_time_indeterminate_notrunning); - printf("%lu, %2.3f%%, ", temp_subject->time_indeterminate_nodata, percent_time_indeterminate_nodata); - printf("%lu, %2.3f%%\n", time_indeterminate, percent_time_indeterminate); + printf("%lu, %2.3f%%, ", temp_subject->time_indeterminate_notrunning, percent_time_indeterminate_notrunning); + printf("%lu, %2.3f%%, ", temp_subject->time_indeterminate_nodata, percent_time_indeterminate_nodata); + printf("%lu, %2.3f%%\n", time_indeterminate, percent_time_indeterminate); } } if (output_format == HTML_OUTPUT) { /* average statistics */ - bgclass = odd ? "Odd" : "Even"; odd = odd ? 0 : 1; - printf("
    Average
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)
    \n"); - printf("
    Command Options
    \n"); + printf("
    コマンドオプション
    \n"); printf("\n"); printf("\n"); if(cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) { - printf("\n"); - printf("\n"); } - printf("\n"); print_comment_field(cmd); @@ -1033,20 +1032,20 @@ void request_command_data(int cmd) { case CMD_ADD_SVC_COMMENT: case CMD_ACKNOWLEDGE_SVC_PROBLEM: - printf("\n"); - printf("\n"); - printf("\n"); } - printf("\n"); print_comment_field(cmd); @@ -1054,28 +1053,28 @@ void request_command_data(int cmd) { case CMD_DEL_HOST_COMMENT: case CMD_DEL_SVC_COMMENT: - printf("\n"); break; case CMD_DELAY_HOST_NOTIFICATION: - printf("\n"); - printf("\n"); print_comment_field(cmd); break; case CMD_DELAY_SVC_NOTIFICATION: - printf("\n"); - printf("\n"); print_comment_field(cmd); @@ -1084,21 +1083,21 @@ void request_command_data(int cmd) { case CMD_SCHEDULE_SVC_CHECK: case CMD_SCHEDULE_HOST_CHECK: case CMD_SCHEDULE_HOST_SVC_CHECKS: - printf("\n"); if(cmd == CMD_SCHEDULE_SVC_CHECK) { - printf("\n"); } time(&t); get_time_string(&t, buffer, sizeof(buffer) - 1, SHORT_DATE_TIME); - printf("\n"); print_comment_field(cmd); - printf("\n"); break; @@ -1118,10 +1117,10 @@ void request_command_data(int cmd) { case CMD_START_OBSESSING_OVER_SVC: case CMD_STOP_OBSESSING_OVER_SVC: case CMD_CLEAR_SVC_FLAPPING_STATE: - printf("\n"); - printf("\n"); print_comment_field(cmd); @@ -1148,17 +1147,17 @@ void request_command_data(int cmd) { case CMD_START_OBSESSING_OVER_HOST: case CMD_STOP_OBSESSING_OVER_HOST: case CMD_CLEAR_HOST_FLAPPING_STATE: - printf("\n"); print_comment_field(cmd); if(cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_DISABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_SVC_NOTIFICATIONS) { - printf("\n"); } if(cmd == CMD_ENABLE_HOST_NOTIFICATIONS || cmd == CMD_DISABLE_HOST_NOTIFICATIONS) { - printf("\n"); } @@ -1187,20 +1186,20 @@ void request_command_data(int cmd) { case CMD_START_OBSESSING_OVER_HOST_CHECKS: case CMD_STOP_OBSESSING_OVER_HOST_CHECKS: if (print_comment_field(cmd) == FALSE) - printf(""); + printf(""); break; case CMD_PROCESS_HOST_CHECK_RESULT: case CMD_PROCESS_SERVICE_CHECK_RESULT: - printf("\n"); if(cmd == CMD_PROCESS_SERVICE_CHECK_RESULT) { - printf("\n"); } - printf("\n"); - printf("\n"); - printf("\n"); break; @@ -1227,18 +1226,18 @@ void request_command_data(int cmd) { case CMD_SCHEDULE_HOST_SVC_DOWNTIME: case CMD_SCHEDULE_SVC_DOWNTIME: - printf("\n"); if(cmd == CMD_SCHEDULE_SVC_DOWNTIME) { - printf("\n"); - printf("\n"); t += (unsigned long)7200; get_time_string(&t, buffer, sizeof(buffer) - 1, SHORT_DATE_TIME); - printf("\n"); - printf("\n"); - printf("\n"); printf("\n"); if(cmd == CMD_SCHEDULE_HOST_DOWNTIME) { - printf("\n"); } @@ -1310,11 +1309,11 @@ void request_command_data(int cmd) { case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS: case CMD_ENABLE_HOSTGROUP_SVC_CHECKS: case CMD_DISABLE_HOSTGROUP_SVC_CHECKS: - printf("\n"); if(cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_DISABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS) { - printf("\n"); } @@ -1327,11 +1326,11 @@ void request_command_data(int cmd) { case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS: case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS: case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS: - printf("\n"); if(cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_DISABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS || cmd == CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS) { - printf("\n"); } @@ -1340,7 +1339,7 @@ void request_command_data(int cmd) { case CMD_DEL_HOST_DOWNTIME: case CMD_DEL_SVC_DOWNTIME: - printf("\n"); print_comment_field(cmd); @@ -1353,43 +1352,43 @@ void request_command_data(int cmd) { case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME: if(cmd == CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME) { - printf("\n"); } else { - printf("\n"); } print_comment_field(cmd); time(&t); get_time_string(&t, buffer, sizeof(buffer) - 1, SHORT_DATE_TIME); - printf("\n"); t += (unsigned long)7200; get_time_string(&t, buffer, sizeof(buffer) - 1, SHORT_DATE_TIME); - printf("\n"); - printf("\n"); - printf("\n"); if(cmd == CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME || cmd == CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME) { - printf("\n"); } @@ -1397,21 +1396,21 @@ void request_command_data(int cmd) { case CMD_SEND_CUSTOM_HOST_NOTIFICATION: case CMD_SEND_CUSTOM_SVC_NOTIFICATION: - printf("\n"); if(cmd == CMD_SEND_CUSTOM_SVC_NOTIFICATION) { - printf("\n"); } - printf("\n"); - printf("\n"); @@ -1419,12 +1418,12 @@ void request_command_data(int cmd) { break; default: - printf("\n"); + printf("\n"); } printf("\n"); - printf("\n"); + printf("\n"); printf("
    \n"); @@ -1014,18 +1013,18 @@ void request_command_data(int cmd) { case CMD_ADD_HOST_COMMENT: case CMD_ACKNOWLEDGE_HOST_PROBLEM: - printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Sticky Acknowledgement:"); + printf("
    既知の問題を固定:"); printf("", (ack_no_sticky == TRUE) ? "" : "CHECKED"); printf("
    Send Notification:"); + printf("
    警報を通知:"); printf("", (ack_no_send == TRUE) ? "" : "CHECKED"); printf("
    Persistent%s:", (cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) ? " Comment" : ""); + printf("
    再起動後も%s保持させる:", (cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) ? "コメントを" : ""); printf("", (cmd == CMD_ACKNOWLEDGE_HOST_PROBLEM) ? "" : "CHECKED"); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); if(cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM) { - printf("
    Sticky Acknowledgement:"); + printf("
    既知の問題を固定:"); printf("", (ack_no_sticky == TRUE) ? "" : "CHECKED"); printf("
    Send Notification:"); + printf("
    警報を通知:"); printf("", (ack_no_send == TRUE) ? "" : "CHECKED"); printf("
    Persistent%s:", (cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM) ? " Comment" : ""); + printf("
    再起動後も%s保持させる:", (cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM) ? "コメントを" : ""); printf("", (cmd == CMD_ACKNOWLEDGE_SVC_PROBLEM) ? "" : "CHECKED"); printf("
    Comment ID:"); + printf("
    コメント ID:"); printf("", comment_id); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Notification Delay (minutes from now):"); + printf("
    通知を遅らせる時間(現在からの分):"); printf("", notification_delay); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); - printf("
    Notification Delay (minutes from now):"); + printf("
    通知を遅らせる時間(現在からの分):"); printf("", notification_delay); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); printf("
    Check Time:"); + printf("
    チェック時刻:"); printf("", buffer); printf("
    Force Check:"); + printf("
    強制的にチェック:"); printf("", (force_check == TRUE) ? "CHECKED" : ""); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    %s For Host Too:", (cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS) ? "Enable" : "Disable"); + printf("
    同時にホストも%sにする:", (cmd == CMD_ENABLE_HOST_SVC_CHECKS || cmd == CMD_ENABLE_HOST_SVC_NOTIFICATIONS) ? "有効" : "無効"); printf(""); printf("
    %s Notifications For Child Hosts Too:", (cmd == CMD_ENABLE_HOST_NOTIFICATIONS) ? "Enable" : "Disable"); + printf("
    同時に下位ホストへの通知も%sにする:", (cmd == CMD_ENABLE_HOST_NOTIFICATIONS) ? "有効" : "無効"); printf(""); printf("
    There are no options for this command.
    Click the 'Commit' button to submit the command.
    このコマンドにはオプションはありません。
    '発行'ボタンを押してコマンドを送信してください
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); printf("
    Check Result:"); + printf("
    チェック結果:"); printf("\n"); printf("
    Check Output:"); + printf("
    チェック出力:"); printf(""); printf("
    Performance Data:"); + printf("
    パフォーマンスデータ:"); printf(""); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); } print_comment_field(cmd); printf("

    Triggered By:\n"); + printf("
    トリガー:\n"); printf("
    Start Time:"); + printf("
    開始時刻:"); printf("", buffer); printf("
    End Time:"); + printf("
    終了時刻:"); printf("", buffer); printf("
    Type:"); + printf("
    種類:"); printf("\n"); printf("
    If Flexible, Duration:"); + printf("
    期間(「非固定」を選択した場合のみ):"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
    Hours時間Minutes
    \n"); printf("

    Child Hosts:"); + printf("
    下位ホスト:"); printf("\n"); printf("
    Hostgroup Name:"); + printf("
    ホストグループ名:"); printf("", escape_string(hostgroup_name)); printf("
    %s For Hosts Too:", (cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS) ? "Enable" : "Disable"); + printf("
    同時にホストも%sにする:", (cmd == CMD_ENABLE_HOSTGROUP_SVC_CHECKS || cmd == CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS) ? "有効" : "無効"); printf(""); printf("
    Servicegroup Name:"); + printf("
    サービスグループ名:"); printf("", escape_string(servicegroup_name)); printf("
    %s For Hosts Too:", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS) ? "Enable" : "Disable"); + printf("
    同時にホストも%sにする:", (cmd == CMD_ENABLE_SERVICEGROUP_SVC_CHECKS || cmd == CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS) ? "有効" : "無効"); printf(""); printf("
    Scheduled Downtime ID:"); + printf("
    ダウンタイム ID:"); printf("", downtime_id); printf("
    Hostgroup Name:"); + printf("
    ホストグループ名:"); printf("", escape_string(hostgroup_name)); printf("
    Servicegroup Name:"); + printf("
    サービスグループ名:"); printf("", escape_string(servicegroup_name)); printf("
    Start Time:"); + printf("
    開始時刻:"); printf("", buffer); printf("
    End Time:"); + printf("
    終了時刻:"); printf("", buffer); printf("
    Type:"); + printf("
    種類:"); printf("\n"); printf("
    If Flexible, Duration:"); + printf("
    期間(「非固定」を選択した場合のみ):"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
    Hours時間Minutes
    \n"); printf("
    Schedule Downtime For Hosts Too:"); + printf("
    同時にホストもダウンタイムをスケジュールする:"); printf(""); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("", escape_string(host_name)); printf("
    Service:"); + printf("
    サービス名:"); printf("", escape_string(service_desc)); printf("
    Forced:"); + printf("
    強制的に通知する:"); printf("
    Broadcast:"); + printf("
    全員に通知する:"); printf("
    This should not be happening... :-(
    何かおかしいです... (´・ω・`)
    \n"); printf("\n"); @@ -1445,7 +1444,7 @@ void request_command_data(int cmd) { printf("\n"); printf("

    \n"); - printf("

    Please enter all required information before committing the command.
    Required fields are marked in red.
    Failure to supply all required values will result in an error.

    "); + printf("

    コマンドを発行する前に必須項目(赤色)に入力してください。
    入力されていない場合エラーになります。

    "); return; } @@ -1468,10 +1467,10 @@ int print_comment_field(int cmd_id) comment = ecmd->default_comment; } - printf("
    Author (Your Name):", reqtext); + printf("
    作成者:", reqtext); printf("", escape_string(comment_author), (lock_author_names == TRUE) ? "READONLY DISABLED" : ""); printf("
    Comment:", reqtext); + printf("
    コメント:", reqtext); printf("", escape_string(comment)); printf("
    \n"); printf("\n"); diff --git a/cgi/config.c b/cgi/config.c index 11b5d24830..0e2d9ed2a6 100644 --- a/cgi/config.c +++ b/cgi/config.c @@ -89,21 +89,21 @@ static void print_expand_input(int type) { if(type == DISPLAY_COMMAND_EXPANSION) return; /* Has its own form, w/ larger */ else if(type == DISPLAY_SERVICES) { - seldesc = " Services Named or on Host"; + seldesc = "ホスト上または指定されたサービスのみ"; } else if(type == DISPLAY_SERVICEDEPENDENCIES) { - seldesc = " Dependencies with Host"; + seldesc = "ホストとの依存関係のみ"; } else if(type == DISPLAY_SERVICEESCALATIONS) { - seldesc = " Escalations on Host"; + seldesc = "ホスト上のエスカレーションのみ"; } else if(type == DISPLAY_HOSTDEPENDENCIES) { - seldesc = " Dependencies on/of Host"; + seldesc = "ホスト上の依存関係のみ"; } else if(type == DISPLAY_HOSTESCALATIONS) { - seldesc = " Escalations for Host"; + seldesc = "ホスト用のエスカレーションのみ"; } - printf("\n", seldesc); + printf("\n", seldesc); printf("\n"); /* right hand column of top row */ @@ -144,28 +144,28 @@ int main(void) { printf("\n", CONFIG_CGI); printf("
    \n"); @@ -2344,458 +2344,436 @@ void show_command_help(int cmd) { switch(cmd) { case CMD_ADD_HOST_COMMENT: - printf("This command is used to add a comment for the specified host. If you work with other administrators, you may find it useful to share information about a host\n"); - printf("that is having problems if more than one of you may be working on it. If you do not check the 'persistent' option, the comment will be automatically be deleted\n"); - printf("the next time Nagios is restarted.\n"); + printf("このコマンドはこのホストにコメントを追加します。仕事中に起こったホストに関する様々な問題を記録すると他の管理者と共有が行え便利です。\n"); + printf("「再起動後も(コメントを)保持させる」チェックボックスにチェックを入れないとNagiosが次に再起動したときにコメントは削除されます。\n"); break; case CMD_ADD_SVC_COMMENT: - printf("This command is used to add a comment for the specified service. If you work with other administrators, you may find it useful to share information about a host\n"); - printf("or service that is having problems if more than one of you may be working on it. If you do not check the 'persistent' option, the comment will automatically be\n"); - printf("deleted the next time Nagios is restarted.\n"); + printf("このコマンドはこのホストにコメントを追加します。仕事中に起こったホストに関する様々な問題を記録すると他の管理者と共有が行え便利です。\n"); + printf("「再起動後も(コメントを)保持させる」チェックボックスにチェックを入れないとNagiosが次に再起動したときにコメントは削除されます。
    \n"); break; case CMD_DEL_HOST_COMMENT: - printf("This command is used to delete a specific host comment.\n"); + printf("このコマンドはこのホストのコメントを削除します。\n"); break; case CMD_DEL_SVC_COMMENT: - printf("This command is used to delete a specific service comment.\n"); + printf("このコマンドはこのサービスのコメントを削除します。\n"); break; case CMD_DELAY_HOST_NOTIFICATION: - printf("This command is used to delay the next problem notification that is sent out for the specified host. The notification delay will be disregarded if\n"); - printf("the host changes state before the next notification is scheduled to be sent out. This command has no effect if the host is currently UP.\n"); + printf("このコマンドは障害を検出した時にこのホストの次回通知を遅らせます。ただし、遅らせた通知が作動する前にホストの状態が変化した場合は無視されます。\n"); + printf("また、ホストが稼働状態の場合はこのコマンドは効果がありません。\n"); break; case CMD_DELAY_SVC_NOTIFICATION: - printf("This command is used to delay the next problem notification that is sent out for the specified service. The notification delay will be disregarded if\n"); - printf("the service changes state before the next notification is scheduled to be sent out. This command has no effect if the service is currently in an OK state.\n"); + printf("このコマンドは障害を検出した時にこのサービスの次回通知を遅らせます。ただし、遅らせた通知が作動する前にホストの状態が変化した場合は無視されます。\n"); + printf("また、ホストが稼働状態の場合はこのコマンドは効果がありません。\n"); break; case CMD_SCHEDULE_SVC_CHECK: - printf("This command is used to schedule the next check of a particular service. Nagios will re-queue the service to be checked at the time you specify.\n"); - printf("If you select the force check option, Nagios will force a check of the service regardless of both what time the scheduled check occurs and whether or not checks are enabled for the service.\n"); + printf("このコマンドは指定したサービスを次回からチェックするようにスケジュールするために使います。実行するとNagiosは指定する時にチェックされるサービスをキューに入れます。\n"); + printf("また、「強制的にチェック」にチェックを入れるとNagiosは他にチェックがスケジュールされていない場合やこのサービスのサービスチェックが無効になっていた場合であっても強制的にチェックを行います。パッシブサービスチェックのみのサービスであってもアクティブチェックされていますので注意してください。\n"); break; case CMD_ENABLE_SVC_CHECK: - printf("This command is used to enable active checks of a service.\n"); + printf("このコマンドはアクティブなサービスのチェックを有効にするために使います。\n"); break; case CMD_DISABLE_SVC_CHECK: - printf("This command is used to disable active checks of a service.\n"); + printf("このコマンドはアクティブなサービスのチェックを無効にするために使います。\n"); break; case CMD_DISABLE_NOTIFICATIONS: - printf("This command is used to disable host and service notifications on a program-wide basis.\n"); + printf("このコマンドはホストとサービスの通知機能をグローバル設定として無効にします。\n"); break; case CMD_ENABLE_NOTIFICATIONS: - printf("This command is used to enable host and service notifications on a program-wide basis.\n"); + printf("このコマンドはホストとサービスの通知機能をグローバル設定として有効にします。\n"); break; case CMD_SHUTDOWN_PROCESS: - printf("This command is used to shutdown the Nagios process. Note: Once the Nagios has been shutdown, it cannot be restarted via the web interface!\n"); + printf("このコマンドはNagiosを停止させます。注)一度このコマンドでNagiosを停止させると、WebインターフェースからNagiosを起動することはできないので注意してください。\n"); break; case CMD_RESTART_PROCESS: - printf("This command is used to restart the Nagios process. Executing a restart command is equivalent to sending the process a HUP signal.\n"); - printf("All information will be flushed from memory, the configuration files will be re-read, and Nagios will start monitoring with the new configuration information.\n"); + printf("このコマンドはNagiosを再起動させます。再起動コマンドはプロセスにHUPシグナルのを送るのと同じです。\n"); + printf("メモリ上の全情報のクリア、設定ファイルを再読込したあとNagiosはモニタリングを開始します\n"); break; case CMD_ENABLE_HOST_SVC_CHECKS: - printf("This command is used to enable active checks of all services associated with the specified host. This does not enable checks of the host unless you check the 'Enable for host too' option.\n"); + printf("このコマンドはこのホストの全サービスのチェックを有効にします。ただし、ホストチェックは有効になりません。ホストのチェックを有効にしたい場合は、「同時にホストも有効にする」をチェックします。\n"); break; case CMD_DISABLE_HOST_SVC_CHECKS: - printf("This command is used to disable active checks of all services associated with the specified host. When a service is disabled Nagios will not monitor the service. Doing this will prevent any notifications being sent out for\n"); - printf("the specified service while it is disabled. In order to have Nagios check the service in the future you will have to re-enable the service.\n"); - printf("Note that disabling service checks may not necessarily prevent notifications from being sent out about the host which those services are associated with. This does not disable checks of the host unless you check the 'Disable for host too' option.\n"); + printf("このコマンドはこのホストの全サービスのチェックを無効にします。サービスを無効にするとNagiosはモニターしなくなります。これは障害が起こっているときに通知を送るのを抑制することができます。再度サービスをチェックを行うには「有効」にすることで出来ます。ただし、ホストチェックは無効になりません。ホストのチェックも無効にしたい場合は、「同時にホストチェックも無効にする」をチェックします。\n"); break; case CMD_SCHEDULE_HOST_SVC_CHECKS: - printf("This command is used to scheduled the next check of all services on the specified host. If you select the force check option, Nagios will force a check of all services on the host regardless of both what time the scheduled checks occur and whether or not checks are enabled for those services.\n"); + printf("このコマンドは指定されたホスト上の全てのサービスを次回からチェックするようにスケジュールするために使います。「強制的にチェック」にチェックを入れるとNagiosは他にチェックがスケジュールされていても、このサービスのサービスチェックが無効になっていたとしても強制的にチェックを行います。パッシブサービスチェックのみのサービスであってもアクティブチェックされてますので注意してください。\n"); break; case CMD_DEL_ALL_HOST_COMMENTS: - printf("This command is used to delete all comments associated with the specified host.\n"); + printf("このコマンドは指定したホストの全コメントを削除します。\n"); break; case CMD_DEL_ALL_SVC_COMMENTS: - printf("This command is used to delete all comments associated with the specified service.\n"); + printf("このコマンドは指定したサービスの全コメントを削除します。\n"); break; case CMD_ENABLE_SVC_NOTIFICATIONS: - printf("This command is used to enable notifications for the specified service. Notifications will only be sent out for the\n"); - printf("service state types you defined in your service definition.\n"); + printf("このコマンドは指定したサービスの通知機能を有効にします。通知は定義したサービス情報の状態が変わった際に送られます。\n"); break; case CMD_DISABLE_SVC_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for the specified service. You will have to re-enable notifications\n"); - printf("for this service before any alerts can be sent out in the future.\n"); + printf("このコマンドは指定したサービスの通知機能を無効にします。通知機能は再度有効にするまで一切機能しません。\n"); break; case CMD_ENABLE_HOST_NOTIFICATIONS: - printf("This command is used to enable notifications for the specified host. Notifications will only be sent out for the\n"); - printf("host state types you defined in your host definition. Note that this command does not enable notifications\n"); - printf("for services associated with this host.\n"); + printf("このコマンドは指定したホストの通知機能を有効にします。通知は定義したホスト情報の状態が変わった際に送られます。\n"); + printf("注)このコマンドではホストに付随するサービスの通知機能までは有効になりません。\n"); break; case CMD_DISABLE_HOST_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for the specified host. You will have to re-enable notifications for this host\n"); - printf("before any alerts can be sent out in the future. Note that this command does not disable notifications for services associated with this host.\n"); + printf("このコマンドは指定したホストの通知機能を無効にします。通知機能は再度有効にするまで一切機能しません。\n"); + printf("注)このコマンドではホストに付随するサービスの通知機能までは無効になりません。\n"); break; case CMD_ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST: - printf("This command is used to enable notifications for all hosts and services that lie \"beyond\" the specified host\n"); - printf("(from the view of Nagios).\n"); + printf("このコマンドは指定したホストの配下にある全てのホストとサービスの通知機能を有効にします。\n"); break; case CMD_DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST: - printf("This command is used to temporarily prevent notifications from being sent out for all hosts and services that lie\n"); - printf("\"beyond\" the specified host (from the view of Nagios).\n"); + printf("このコマンドは指定したホストの配下にある全てのホストとサービスの通知機能を無効にします。\n"); break; case CMD_ENABLE_HOST_SVC_NOTIFICATIONS: - printf("This command is used to enable notifications for all services on the specified host. Notifications will only be sent out for the\n"); - printf("service state types you defined in your service definition. This does not enable notifications for the host unless you check the 'Enable for host too' option.\n"); + printf("このコマンドは指定したホストの全サービスの通知機能を有効にします。通知は定義したサービス状態が変化した際に送られます。\n"); + printf("このコマンドではホストの通知機能は有効になりません。ホストも同様に通知機能を有効にしたい場合は「同時にホストも有効にする」をチェックします。\n"); break; case CMD_DISABLE_HOST_SVC_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for all services on the specified host. You will have to re-enable notifications for\n"); - printf("all services associated with this host before any alerts can be sent out in the future. This does not prevent notifications from being sent out about the host unless you check the 'Disable for host too' option.\n"); + printf("このコマンドは指定したホストの全サービスの通知機能を無効にします。通知機能は再度有効にするまで機能しません。\n"); + printf("このコマンドではホストの通知機能は無効になりません。ホストも同様に通知機能を無効にしたい場合は「同時にホストも無効にする」をチェックします。\n"); break; case CMD_ACKNOWLEDGE_HOST_PROBLEM: - printf("This command is used to acknowledge a host problem. When a host problem is acknowledged, future notifications about problems are temporarily disabled until the host changes from its current state.\n"); - printf("If you want acknowledgement to disable notifications until the host recovers, check the 'Sticky Acknowledgement' checkbox.\n"); - printf("Contacts for this host will receive a notification about the acknowledgement, so they are aware that someone is working on the problem. Additionally, a comment will also be added to the host.\n"); - printf("Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the host comment to remain once the acknowledgement is removed, check\n"); - printf("the 'Persistent Comment' checkbox. If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the 'Send Notification' checkbox.\n"); + printf("このコマンドは指定したホストの問題を既知としてマークします。ホストの問題が認知済としてマークされたら、今後この問題に関して状態が変わるまで(たとえば復旧するなど)通知を行わなくなります。\n"); + printf("このコマンドが実行されるとホストの通知先に「問題を認知した」という通知が行われます。加えてコメントも追加されます。\n"); + printf("名前とちょっとした説明を入れてください。もしこの問題を認知してもコメントを残したい場合は「保存する」にチェックを入れます。もし、この問題を認知した警報を通知したくなければ「警報を通知」のチェックをはずしてください。\n"); break; case CMD_ACKNOWLEDGE_SVC_PROBLEM: - printf("This command is used to acknowledge a service problem. When a service problem is acknowledged, future notifications about problems are temporarily disabled until the service changes from its current state.\n"); - printf("If you want acknowledgement to disable notifications until the service recovers, check the 'Sticky Acknowledgement' checkbox.\n"); - printf("Contacts for this service will receive a notification about the acknowledgement, so they are aware that someone is working on the problem. Additionally, a comment will also be added to the service.\n"); - printf("Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the service comment to remain once the acknowledgement is removed, check\n"); - printf("the 'Persistent Comment' checkbox. If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the 'Send Notification' checkbox.\n"); + printf("このコマンドは指定したサービスの問題を既知としてマークします。ホストの問題が認知済としてマークされたら、今後この問題に関して状態が変わるまで(たとえば復旧するなど)通知を行わなくなります。\n"); + printf("このコマンドが実行されるとサービスの通知先に「問題を認知した」という通知が行われます。加えてコメントも追加されます。\n"); + printf("名前とちょっとした説明を入れてください。もしこの問題を認知してもコメントを残したい場合は「保存する」にチェックを入れます。もし、この問題を認知した警報を通知したくなければ「警報を通知」のチェックをはずしてください。\n"); break; case CMD_START_EXECUTING_SVC_CHECKS: - printf("This command is used to resume execution of active service checks on a program-wide basis. Individual services which are disabled will still not be checked.\n"); + printf("このコマンドはグローバル設定としてサービスチェックを再開します。ただし、個々のサービスでサービスチェックが無効になっているものはそのまま無効になります。\n"); break; case CMD_STOP_EXECUTING_SVC_CHECKS: - printf("This command is used to temporarily stop Nagios from actively executing any service checks. This will have the side effect of preventing any notifications from being sent out (for any and all services and hosts).\n"); - printf("Service checks will not be executed again until you issue a command to resume service check execution.\n"); + printf("このコマンドは一時的に全てのサービスチェックを停止します。これによりどんな通知も行わなくなります。\n"); + printf("サービスチェックはサービスチェックを再開するコマンドを発行するまで行われません。\n"); break; case CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS: - printf("This command is used to make Nagios start accepting passive service check results that it finds in the external command file\n"); + printf("このコマンドはNagiosが外部コマンドからパッシブサービスチェックの結果を受け付けるようにします。\n"); break; case CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS: - printf("This command is use to make Nagios stop accepting passive service check results that it finds in the external command file. All passive check results that are found will be ignored.\n"); + printf("このコマンドはNagiosが外部コマンドからパッシブサービスチェックの結果を受け付ないようにします。\n"); break; case CMD_ENABLE_PASSIVE_SVC_CHECKS: - printf("This command is used to allow Nagios to accept passive service check results that it finds in the external command file for this particular service.\n"); + printf("このコマンドはNagiosが外部コマンドから指定したサービスについてのパッシブサービスチェックの結果を受け付けるようにします。\n"); break; case CMD_DISABLE_PASSIVE_SVC_CHECKS: - printf("This command is used to stop Nagios accepting passive service check results that it finds in the external command file for this particular service. All passive check results that are found for this service will be ignored.\n"); + printf("このコマンドはNagiosが外部コマンドから指定したサービスについてのパッシブサービスチェックの結果を受け付けないようにします。\n"); break; case CMD_ENABLE_EVENT_HANDLERS: - printf("This command is used to allow Nagios to run host and service event handlers.\n"); + printf("このコマンドはホスト、サービスのイベントハンドラを有効にします。\n"); break; case CMD_DISABLE_EVENT_HANDLERS: - printf("This command is used to temporarily prevent Nagios from running any host or service event handlers.\n"); + printf("このコマンドはホスト、サービスのイベントハンドラを無効にします。\n"); break; case CMD_ENABLE_SVC_EVENT_HANDLER: - printf("This command is used to allow Nagios to run the service event handler for a particular service when necessary (if one is defined).\n"); + printf("このコマンドは指定したサービスのイベントハンドラを有効にします。\n"); break; case CMD_DISABLE_SVC_EVENT_HANDLER: - printf("This command is used to temporarily prevent Nagios from running the service event handler for a particular service.\n"); + printf("このコマンドは指定したサービスのイベントハンドラを無効にします。\n"); break; case CMD_ENABLE_HOST_EVENT_HANDLER: - printf("This command is used to allow Nagios to run the host event handler for a particular service when necessary (if one is defined).\n"); + printf("このコマンドは指定したホストのイベントハンドラを有効にします。\n"); break; case CMD_DISABLE_HOST_EVENT_HANDLER: - printf("This command is used to temporarily prevent Nagios from running the host event handler for a particular host.\n"); + printf("このコマンドは指定したホストのイベントハンドラを無効にします。\n"); break; case CMD_ENABLE_HOST_CHECK: - printf("This command is used to enable active checks of this host.\n"); + printf("このコマンドはホストチェックを有効にします。\n"); break; case CMD_DISABLE_HOST_CHECK: - printf("This command is used to temporarily prevent Nagios from actively checking the status of a particular host. If Nagios needs to check the status of this host, it will assume that it is in the same state that it was in before checks were disabled.\n"); + printf("このコマンドはホストチェックを無効にします。もしNagiosがこのホストのチェックデータが必要となったら、無効にする前の状態を現在の状態とみなします。\n"); break; case CMD_START_OBSESSING_OVER_SVC_CHECKS: - printf("This command is used to have Nagios start obsessing over service checks. Read the documentation on distributed monitoring for more information on this.\n"); + printf("このコマンドはNagiosにObsessing overサービスチェックを開始させます。この機能についてはドキュメントを参照してください。\n"); break; case CMD_STOP_OBSESSING_OVER_SVC_CHECKS: - printf("This command is used stop Nagios from obsessing over service checks.\n"); + printf("このコマンドはNagiosにObsessing overサービスチェックを停止させます。この機能についてはドキュメントを参照してください。\n"); break; case CMD_REMOVE_HOST_ACKNOWLEDGEMENT: - printf("This command is used to remove an acknowledgement for a particular host problem. Once the acknowledgement is removed, notifications may start being\n"); - printf("sent out about the host problem. \n"); + printf("このコマンドは指定したホストの認知済マークを削除し、通知を再開します。\n"); break; case CMD_REMOVE_SVC_ACKNOWLEDGEMENT: - printf("This command is used to remove an acknowledgement for a particular service problem. Once the acknowledgement is removed, notifications may start being\n"); - printf("sent out about the service problem.\n"); + printf("このコマンドは指定したサービスの認知済マークを削除し、通知を再開します。\n"); break; case CMD_PROCESS_SERVICE_CHECK_RESULT: - printf("This command is used to submit a passive check result for a particular service. It is particularly useful for resetting security-related services to OK states once they have been dealt with.\n"); + printf("このコマンドは指定したサービスからのPassiveチェックの結果を送信します。これは作業が行われたり、作業を完了したり、セキュリティチェックなどに有効活用できます。\n"); break; case CMD_PROCESS_HOST_CHECK_RESULT: - printf("This command is used to submit a passive check result for a particular host.\n"); + printf("このコマンドは指定したホストのPassiveチェックの結果を送信します。\n"); break; case CMD_SCHEDULE_HOST_DOWNTIME: - printf("This command is used to schedule downtime for a particular host. During the specified downtime, Nagios will not send notifications out about the host.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for this host as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when the host goes down or becomes unreachable (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); + printf("このコマンドは指定したホストのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_SCHEDULE_HOST_SVC_DOWNTIME: - printf("This command is used to schedule downtime for all services on a particular host. During the specified downtime, Nagios will not send notifications out about the host.\n"); - printf("Normally, a host in downtime will not send alerts about any services in a failed state. This option will explicitly set downtime for all services for this host.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for this host as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when the host goes down or becomes unreachable (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); + printf("このコマンドは指定したホストとその全サービスのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_SCHEDULE_SVC_DOWNTIME: - printf("This command is used to schedule downtime for a particular service. During the specified downtime, Nagios will not send notifications out about the service.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for this service as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when the service enters a non-OK state (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); + printf("このコマンドは指定したサービスのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはサービスに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはサービスが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_ENABLE_HOST_FLAP_DETECTION: - printf("This command is used to enable flap detection for a specific host. If flap detection is disabled on a program-wide basis, this will have no effect,\n"); + printf("このコマンドは指定したホストのフラップ検知を有効にします。ただし、フラップ検知がグローバル設定で無効に設定されている場合はこのコマンドは何の効果も持ちません。\n"); break; case CMD_DISABLE_HOST_FLAP_DETECTION: - printf("This command is used to disable flap detection for a specific host.\n"); + printf("このコマンドは指定したホストのフラップ検知を無効にします。\n"); break; case CMD_ENABLE_SVC_FLAP_DETECTION: - printf("This command is used to enable flap detection for a specific service. If flap detection is disabled on a program-wide basis, this will have no effect,\n"); + printf("このコマンドは指定したサービスのフラップ検知を有効にします。ただし、フラップ検知がグローバル設定で無効に設定されている場合はこのコマンドは何の効果も持ちません。\n"); break; case CMD_DISABLE_SVC_FLAP_DETECTION: - printf("This command is used to disable flap detection for a specific service.\n"); + printf("このコマンドは指定したサービスのフラップ検知を無効にします。\n"); break; case CMD_ENABLE_FLAP_DETECTION: - printf("This command is used to enable flap detection for hosts and services on a program-wide basis. Individual hosts and services may have flap detection disabled.\n"); + printf("このコマンドはグローバル設定としてフラップ検知を有効にします。個々のホストやサービスで無効に設定されている場合、それらは保持されたままになります。\n"); break; case CMD_DISABLE_FLAP_DETECTION: - printf("This command is used to disable flap detection for hosts and services on a program-wide basis.\n"); + printf("このコマンドはグローバル設定としてフラップ検知を無効にします。\n"); break; case CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS: - printf("This command is used to enable notifications for all services in the specified hostgroup. Notifications will only be sent out for the\n"); - printf("service state types you defined in your service definitions. This does not enable notifications for the hosts in this hostgroup unless you check the 'Enable for hosts too' option.\n"); + printf("このコマンドは指定したホストグループの全サービスの通知を有効にします。通知はサービス定義で定義したサービスのみ送られます。\n"); + printf("このコマンドでは指定したホストグループ上のホストの通知機能は有効になりません。もし有効にしたい場合は「同時にホストも有効にする」をチェックします。\n"); break; case CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for all services in the specified hostgroup. You will have to re-enable notifications for\n"); - printf("all services in this hostgroup before any alerts can be sent out in the future. This does not prevent notifications from being sent out about the hosts in this hostgroup unless you check the 'Disable for hosts too' option.\n"); + printf("このコマンドは指定したホストグループの全サービスの通知を無効にします。通知はサービス定義で定義したサービスのみ送られます。\n"); + printf("このコマンドでは指定したホストグループ上のホストの通知機能は無効になりません。もし無効にしたい場合は「同時にホストも無効にする」をチェックします。\n"); break; case CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS: - printf("This command is used to enable notifications for all hosts in the specified hostgroup. Notifications will only be sent out for the\n"); - printf("host state types you defined in your host definitions.\n"); + printf("このコマンドは指定したホストグループ上の全ホストの通知を有効にします。\n"); + printf("通知はホスト定義で定義したホストのみに送られます。\n"); break; case CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for all hosts in the specified hostgroup. You will have to re-enable notifications for\n"); - printf("all hosts in this hostgroup before any alerts can be sent out in the future.\n"); + printf("このコマンドは指定したホストグループ上の全ホストの通知を無効にします。\n"); + printf("再度このホストグループ上の全ホストに通知を有効にするまでどんな警報も通知されません。\n"); break; case CMD_ENABLE_HOSTGROUP_SVC_CHECKS: - printf("This command is used to enable active checks of all services in the specified hostgroup. This does not enable active checks of the hosts in the hostgroup unless you check the 'Enable for hosts too' option.\n"); + printf("このコマンドは指定したホストグループ上のサービスチェックを有効にします。\n"); + printf("ただし、ホストチェックまではこのコマンドでは有効になりません。有効にしたい場合は「同時にホストも有効にする」をチェックします。\n"); break; case CMD_DISABLE_HOSTGROUP_SVC_CHECKS: - printf("This command is used to disable active checks of all services in the specified hostgroup. This does not disable checks of the hosts in the hostgroup unless you check the 'Disable for hosts too' option.\n"); + printf("このコマンドは指定したホストグループ上のサービスチェックを無効にします。このコマンドではホストグループのホストチェックは無効になりません。無効にしたい場合は「同時>にホストも無効にする」をチェックします。\n"); break; case CMD_DEL_HOST_DOWNTIME: - printf("This command is used to cancel active or pending scheduled downtime for the specified host.\n"); + printf("このコマンドは指定したホストのダウンタイムをキャンセルもしくは保留にします。\n"); break; case CMD_DEL_SVC_DOWNTIME: - printf("This command is used to cancel active or pending scheduled downtime for the specified service.\n"); + printf("このコマンドは指定したサービスのダウンタイムをキャンセルもしくは保留にします。\n"); break; case CMD_ENABLE_PERFORMANCE_DATA: - printf("This command is used to enable the processing of performance data for hosts and services on a program-wide basis. Individual hosts and services may have performance data processing disabled.\n"); + printf("このコマンドはグローバル設定としてホストとサービスのパフォーマンスデータを有効にします。\n"); + printf("個々のホストやサービスが無効になっている場合は無効のままになります。\n"); break; case CMD_DISABLE_PERFORMANCE_DATA: - printf("This command is used to disable the processing of performance data for hosts and services on a program-wide basis.\n"); + printf("このコマンドはグローバル設定としてホストとサービスのパフォーマンスデータを無効にします。\n"); break; case CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME: - printf("This command is used to schedule downtime for all hosts in a particular hostgroup. During the specified downtime, Nagios will not send notifications out about the hosts.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for the hosts as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when a host goes down or becomes unreachable (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); + printf("このコマンドは指定したホストグループ上の全ホストのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME: - printf("This command is used to schedule downtime for all services in a particular hostgroup. During the specified downtime, Nagios will not send notifications out about the services.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for the services as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when a service enters a non-OK state (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); - printf("Note that scheduling downtime for services does not automatically schedule downtime for the hosts those services are associated with. If you want to also schedule downtime for all hosts in the hostgroup, check the 'Schedule downtime for hosts too' option.\n"); + printf("このコマンドは指定したホストグループ上の全サービスのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはサービスに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし<「B>固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_START_EXECUTING_HOST_CHECKS: - printf("This command is used to enable active host checks on a program-wide basis.\n"); + printf("このコマンドはグローバル設定としてホストチェックを有効にするために使います。\n"); break; case CMD_STOP_EXECUTING_HOST_CHECKS: - printf("This command is used to disable active host checks on a program-wide basis.\n"); + printf("このコマンドはグローバル設定としてホストチェックを無効にするために使います。\n"); break; case CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS: - printf("This command is used to have Nagios start obsessing over host checks. Read the documentation on distributed monitoring for more information on this.\n"); + printf("このコマンドはNagiosがObsessing Overホストチェックを開始するために使います。詳細な情報はドキュメントの分散モニタリング(distributed monitoring)の部分を参照してください。\n"); break; case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS: - printf("This command is used to stop Nagios from obsessing over host checks.\n"); + printf("このコマンドはNagiosがObsessing Overホストチェックを停止するために使います。\n"); break; case CMD_ENABLE_PASSIVE_HOST_CHECKS: - printf("This command is used to allow Nagios to accept passive host check results that it finds in the external command file for a particular host.\n"); + printf("このコマンドはNagiosが指定したホストの外部コマンドからパッシブチェックを行うことを許可するために使用します。\n"); break; case CMD_DISABLE_PASSIVE_HOST_CHECKS: - printf("This command is used to stop Nagios from accepting passive host check results that it finds in the external command file for a particular host. All passive check results that are found for this host will be ignored.\n"); + printf("このコマンドはNagiosが指定したホストの外部コマンドからパッシブチェックを行うことを拒否するために使用します。これを実行すると指定したホストからの全てのPassiveチェックが無視されます。\n"); break; case CMD_START_OBSESSING_OVER_HOST_CHECKS: - printf("This command is used to have Nagios start obsessing over host checks. Read the documentation on distributed monitoring for more information on this.\n"); + printf("このコマンドはobsessing overホストチェックを開始するために使います。詳細な情報はドキュメントの分散モニタリング(distributed monitoring)の部分を参照してください。\n"); break; case CMD_STOP_OBSESSING_OVER_HOST_CHECKS: - printf("This command is used to stop Nagios from obsessing over host checks.\n"); + printf("このコマンドはobsessing overホストチェックを停止するために使います。\n"); break; case CMD_SCHEDULE_HOST_CHECK: - printf("This command is used to schedule the next check of a particular host. Nagios will re-queue the host to be checked at the time you specify.\n"); - printf("If you select the force check option, Nagios will force a check of the host regardless of both what time the scheduled check occurs and whether or not checks are enabled for the host.\n"); + printf("このコマンドは指定したホストを次回からチェックするようにスケジュールするために使います。実行するとNagiosは指定する時にチェックされるサービスをキューに入れます。\n"); + printf("また、「強制的にチェック」にチェックを入れるとNagiosは他にチェックがスケジュールされていない場合やこのホストのホストチェックが無効になっていた場合であっても強制的にチェックを行います。\n"); break; case CMD_START_OBSESSING_OVER_SVC: - printf("This command is used to have Nagios start obsessing over a particular service.\n"); + printf("このコマンドは指定したサービスのobsessing overを開始するために使います。\n"); break; case CMD_STOP_OBSESSING_OVER_SVC: - printf("This command is used to stop Nagios from obsessing over a particular service.\n"); + printf("このコマンドは指定したサービスのobsessing overを停止するために使います。\n"); break; case CMD_START_OBSESSING_OVER_HOST: - printf("This command is used to have Nagios start obsessing over a particular host.\n"); + printf("このコマンドは指定したホストのobsessing overを開始するために使います。\n"); break; case CMD_STOP_OBSESSING_OVER_HOST: - printf("This command is used to stop Nagios from obsessing over a particular host.\n"); + printf("このコマンドは指定したホストのobsessing overを停止するために使います。\n"); break; case CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS: - printf("This command is used to enable notifications for all services in the specified servicegroup. Notifications will only be sent out for the\n"); - printf("service state types you defined in your service definitions. This does not enable notifications for the hosts in this servicegroup unless you check the 'Enable for hosts too' option.\n"); + printf("このコマンドは指定したサービスグループの全サービスの通知を有効にします。通知はサービス定義で定義したサービスのみ送られます。\n"); + printf("このコマンドでは指定したサービスグループ上のホストの通知機能は有効になりません。もし有効にしたい場合は「同時にホストも有効にする」をチェックします。\n"); break; case CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for all services in the specified servicegroup. You will have to re-enable notifications for\n"); - printf("all services in this servicegroup before any alerts can be sent out in the future. This does not prevent notifications from being sent out about the hosts in this servicegroup unless you check the 'Disable for hosts too' option.\n"); + printf("このコマンドは指定したサービスグループの全サービスの通知を無効にします。通知はサービス定義で定義したサービスのみ送られます。\n"); + printf("このコマンドでは指定したサービスグループ上のホストの通知機能は無効になりません。もし有効にしたい場合は「同時にホストも無効にする」をチェックします。\n"); break; case CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS: - printf("This command is used to enable notifications for all hosts in the specified servicegroup. Notifications will only be sent out for the\n"); - printf("host state types you defined in your host definitions.\n"); + printf("このコマンドは指定したサービスグループ上の全ホストの通知を有効にします。\n"); + printf("通知はホスト定義で定義したホストのみに送られます。\n"); break; case CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS: - printf("This command is used to prevent notifications from being sent out for all hosts in the specified servicegroup. You will have to re-enable notifications for\n"); - printf("all hosts in this servicegroup before any alerts can be sent out in the future.\n"); + printf("このコマンドは指定したサービスグループ上の全ホストの通知を無効にします。\n"); + printf("再度このサービスグループ上の全ホストに通知を有効にするまでどんな警報も通知されません。\n"); break; case CMD_ENABLE_SERVICEGROUP_SVC_CHECKS: - printf("This command is used to enable active checks of all services in the specified servicegroup. This does not enable active checks of the hosts in the servicegroup unless you check the 'Enable for hosts too' option.\n"); + printf("このコマンドは指定したサービスグループ上のサービスチェックを有効にします。このコマンドではサービスグループのホストチェックは有効になりません。有効にしたい場合は「同時にホストも有効にする」にチェックを入れてください。\n"); break; case CMD_DISABLE_SERVICEGROUP_SVC_CHECKS: - printf("This command is used to disable active checks of all services in the specified servicegroup. This does not disable checks of the hosts in the servicegroup unless you check the 'Disable for hosts too' option.\n"); + printf("このコマンドは指定したサービスグループ上のサービスチェックを無効にします。このコマンドではサービスグループのホストチェックは無効になりません。無効にしたい場合は「同時にホストも無効にする」にチェックを入れてください。\n"); break; case CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME: - printf("This command is used to schedule downtime for all hosts in a particular servicegroup. During the specified downtime, Nagios will not send notifications out about the hosts.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for the hosts as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when a host goes down or becomes unreachable (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); + printf("このコマンドは指定したサービスグループ上の全ホストのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME: - printf("This command is used to schedule downtime for all services in a particular servicegroup. During the specified downtime, Nagios will not send notifications out about the services.\n"); - printf("When the scheduled downtime expires, Nagios will send out notifications for the services as it normally would. Scheduled downtimes are preserved\n"); - printf("across program shutdowns and restarts. Both the start and end times should be specified in the following format: mm/dd/yyyy hh:mm:ss.\n"); - printf("If you select the fixed option, the downtime will be in effect between the start and end times you specify. If you do not select the fixed\n"); - printf("option, Nagios will treat this as \"flexible\" downtime. Flexible downtime starts when a service enters a non-OK state (sometime between the\n"); - printf("start and end times you specified) and lasts as long as the duration of time you enter. The duration fields do not apply for fixed downtime.\n"); - printf("Note that scheduling downtime for services does not automatically schedule downtime for the hosts those services are associated with. If you want to also schedule downtime for all hosts in the servicegroup, check the 'Schedule downtime for hosts too' option.\n"); + printf("このコマンドは指定したサービスグループ上の全サービスのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはサービスに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; case CMD_CLEAR_HOST_FLAPPING_STATE: case CMD_CLEAR_SVC_FLAPPING_STATE: - printf("This command is used to reset the flapping state for the specified %s.\n", - (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "host" : "service"); - printf("All state history for the specified %s will be cleared.\n", - (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "host" : "service"); + printf("このコマンドは指定された%sのフラッピング状態をリセットするために使用されます。\n", + (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "ホスト" : "サービス"); + printf("指定されて%sのすべての状態履歴がクリアされます。\n", + (cmd == CMD_CLEAR_HOST_FLAPPING_STATE) ? "ホスト" : "サービス"); break; case CMD_SEND_CUSTOM_HOST_NOTIFICATION: case CMD_SEND_CUSTOM_SVC_NOTIFICATION: - printf("This command is used to send a custom notification about the specified %s. Useful in emergencies when you need to notify admins of an issue regarding a monitored system or service.\n", (cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION) ? "host" : "service"); - printf("Custom notifications normally follow the regular notification logic in Nagios. Selecting the Forced option will force the notification to be sent out, regardless of the time restrictions, whether or not notifications are enabled, etc. Selecting the Broadcast option causes the notification to be sent out to all normal (non-escalated) and escalated contacts. These options allow you to override the normal notification logic if you need to get an important message out.\n"); + printf("このコマンドは%sに対してすぐに通知します。これは監視されているシステムあるいはサービスについて発生した問題を管理者側へ通知する必要がある緊急時において有用です。\n", (cmd == CMD_SEND_CUSTOM_HOST_NOTIFICATION) ? "ホスト" : "サービス"); + printf("この作業はNagiosで通常行われる通知作業の後に行われます。「強制的に通知する」を選択した場合、通知機能が有効になっているかや時間による制限が行われているかなどにかかわらず通知を行うようになります。「全員に通知」を選択すると全ての利用者に対して通知を行います。\n"); + printf("尚、これらの選択はあなたが重要なメッセージを受け取りたいと考えているならば通常の通知よりも優先しておく必要があります。\n"); break; default: - printf("Sorry, but no information is available for this command."); + printf("このコマンドの情報はありません。"); } printf("
    Show Only%s:
    %s表示:
    ", html_encode(to_expand, FALSE)); } @@ -133,7 +133,7 @@ int main(void) { /* left column of the first row */ printf("\n"); - display_info_table("Configuration", FALSE, ¤t_authdata); + display_info_table("各種設定 -Configuration-", FALSE, ¤t_authdata); printf("
    \n"); - printf("\n"); + printf("\n"); printf("\n"); print_expand_input(display_type); - printf("\n"); + printf("\n"); printf("
    Object Type:
    オブジェクトタイプ:
    "); printf("\n"); printf("
    \n"); printf("\n"); } @@ -295,10 +295,11 @@ void document_header(int use_stylesheet) { printf("\n"); printf("\n"); + printf("\n"); printf("\n", url_images_path); printf("\n"); printf("\n"); - printf("Configuration\n"); + printf("設定 -Configuration-\n"); printf("\n"); if(use_stylesheet == TRUE) { @@ -422,7 +423,7 @@ void display_hosts(void) { char *processed_string = NULL; int options = 0; int odd = 0; - char time_string[16]; + char time_string[24]; const char *bg_class = ""; int num_contacts = 0; @@ -432,53 +433,53 @@ void display_hosts(void) { return; } - printf("

    Host%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    ホスト %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf("\n"); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf("\n"); + printf(""); + printf(""); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the hosts... */ @@ -539,19 +540,19 @@ void display_hosts(void) { printf("%s", CONFIG_CGI, url_encode(temp_host->check_period), html_encode(temp_host->check_period, FALSE)); printf("\n"); - printf("\n", bg_class, (temp_host->obsess == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_host->obsess == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_host->checks_enabled == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_host->checks_enabled == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_host->accept_passive_checks == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_host->accept_passive_checks == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_host->check_freshness == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_host->check_freshness == TRUE) ? "有効" : "無効"); printf("\n"); printf("\n"); get_interval_time_string(temp_host->notification_interval, time_string, sizeof(time_string)); - printf("\n", bg_class, (temp_host->notification_interval == 0) ? "No Re-notification" : html_encode(time_string, FALSE)); + printf("\n", bg_class, (temp_host->notification_interval == 0) ? "再通知無し" : html_encode(time_string, FALSE)); get_interval_time_string(temp_host->first_notification_delay, time_string, sizeof(time_string)); printf("\n", bg_class, time_string); @@ -585,26 +586,26 @@ void display_hosts(void) { options = 0; if(flag_isset(temp_host->notification_options, OPT_DOWN) == TRUE) { options = 1; - printf("Down"); + printf("停止(DOWN)"); } if(flag_isset(temp_host->notification_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_host->notification_options, OPT_RECOVERY) == TRUE) { - printf("%sRecovery", (options) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_host->notification_options, OPT_FLAPPING) == TRUE) { - printf("%sFlapping", (options) ? ", " : ""); + printf("%sフラッピング(FLAPPING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_host->notification_options, OPT_DOWNTIME) == TRUE) { - printf("%sDowntime", (options) ? ", " : ""); + printf("%sダウンタイム", (options) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -673,22 +674,22 @@ void display_hosts(void) { options = 0; if(flag_isset(temp_host->flap_detection_options, OPT_UP) == TRUE) { options = 1; - printf("Up"); + printf("Up稼動(UP)"); } if(flag_isset(temp_host->flap_detection_options, OPT_DOWN) == TRUE) { - printf("%sDown", (options) ? ", " : ""); + printf("%s停止(DOWN)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_host->flap_detection_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("", bg_class, (temp_host->notes == NULL) ? " " : html_encode(temp_host->notes, FALSE)); @@ -731,14 +732,14 @@ void display_hosts(void) { options = 0; if(temp_host->retain_status_information == TRUE) { options = 1; - printf("Status Information"); + printf("ステータス情報"); } if(temp_host->retain_nonstatus_information == TRUE) { - printf("%sNon-Status Information", (options == 1) ? ", " : ""); + printf("%sステータス情報以外", (options == 1) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); @@ -765,20 +766,20 @@ void display_hostgroups(void) { return; } - printf("

    Host Group%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    ホストグループ %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Host NameAlias/DescriptionAddressImportance (Host)Importance (Host + Services)Parent HostsMax. Check AttemptsCheck IntervalRetry IntervalHost Check CommandCheck Periodホスト名エイリアス/説明アドレス重要度 (ホスト)重要度 (ホスト + サービス)上位ホスト最大チェック数チェック間隔再試行間隔ホストチェックコマンドチェック期間Obsess OverEnable Active ChecksEnable Passive ChecksCheck FreshnessFreshness ThresholdDefault Contacts/GroupsNotification IntervalFirst Notification DelayNotification OptionsNotification PeriodEvent HandlerEvent Handler PeriodEnable Event HandlerStalking OptionsEnable Flap DetectionLow Flap ThresholdHigh Flap ThresholdFlap Detection OptionsProcess Performance DataNotesNotes URLAction URL2-D Coords3-D CoordsStatusmap ImageVRML ImageLogo ImageImage AltRetention Optionsアクティブチェックパッシブチェック鮮度チェック(Freshness)鮮度しきい値(Freshness)デフォルトの通知先/グループ通知間隔初回通知遅延時間通知オプション通知時間帯イベントハンドライベントハンドラ期間イベントハンドラの有効化追跡オプションフラップ検知設定低フラップ閾値高フラップ閾値フラップ検知オプションパフォーマンスデータ処理メモメモURLアクションURL2-D 位置3-D 位置ステータスマップ画像VRML画像ロゴ画像画像代替文字ステータス保持オプション
    %s%s%s%s%s%s%s%s", bg_class); if(temp_host->freshness_threshold == 0) - printf("Auto-determined value\n"); + printf("自動設定\n"); else - printf("%d seconds\n", temp_host->freshness_threshold); + printf("%d 秒\n", temp_host->freshness_threshold); printf("", bg_class); @@ -576,7 +577,7 @@ void display_hosts(void) { printf("%s%s%s", bg_class); @@ -630,41 +631,41 @@ void display_hosts(void) { printf("", bg_class); - printf("%s\n", (temp_host->event_handler_enabled == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_host->event_handler_enabled == TRUE) ? "有効" : "無効"); printf("", bg_class); options = 0; if(flag_isset(temp_host->stalking_options, OPT_UP) == TRUE) { options = 1; - printf("Up"); + printf("稼動(UP)"); } if(flag_isset(temp_host->stalking_options, OPT_DOWN) == TRUE) { - printf("%sDown", (options) ? ", " : ""); + printf("%s停止(DOWN)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_host->stalking_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("", bg_class); - printf("%s\n", (temp_host->flap_detection_enabled == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_host->flap_detection_enabled == TRUE) ? "有効" : "無効"); printf("", bg_class); if(temp_host->low_flap_threshold == 0.0) - printf("Program-wide value\n"); + printf("グローバル設定\n"); else printf("%3.1f%%\n", temp_host->low_flap_threshold); printf("", bg_class); if(temp_host->high_flap_threshold == 0.0) - printf("Program-wide value\n"); + printf("グローバル設定\n"); else printf("%3.1f%%\n", temp_host->high_flap_threshold); printf("", bg_class); - printf("%s\n", (temp_host->process_performance_data == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_host->process_performance_data == TRUE) ? "有効" : "無効"); printf("%s
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the hostgroups... */ @@ -840,20 +841,20 @@ void display_servicegroups(void) { return; } - printf("

    Service Group%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    サービスグループ %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Group NameDescriptionHost MembersNotesNotes URLAction URLグループ名説明このホストのメンバーメモメモURLアクションURL
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the servicegroups... */ @@ -919,8 +920,8 @@ void display_contacts(void) { return; } - printf("

    Contact%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    通知先 %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); @@ -928,18 +929,18 @@ void display_contacts(void) { printf("
    Group NameDescriptionService MembersNotesNotes URLAction URLグループ名説明このサービスのメンバーメモメモURLアクションURL
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all contacts... */ @@ -966,56 +967,56 @@ void display_contacts(void) { options = 0; if(flag_isset(temp_contact->service_notification_options, OPT_UNKNOWN)) { options = 1; - printf("Unknown"); + printf("不明(UNKNOWN)"); } if(flag_isset(temp_contact->service_notification_options, OPT_WARNING)) { - printf("%sWarning", (options) ? ", " : ""); + printf("%s警告(WARNING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->service_notification_options, OPT_CRITICAL)) { - printf("%sCritical", (options) ? ", " : ""); + printf("%s異常(CRITICAL)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->service_notification_options, OPT_RECOVERY)) { - printf("%sRecovery", (options) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->service_notification_options, OPT_FLAPPING)) { - printf("%sFlapping", (options) ? ", " : ""); + printf("%sフラッピング(FLAPPING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->service_notification_options, OPT_DOWNTIME)) { - printf("%sDowntime", (options) ? ", " : ""); + printf("%sダウンタイム", (options) ? ", " : ""); options = 1; } if(!options) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -1103,8 +1104,8 @@ void display_contactgroups(void) { } - printf("

    Contact Group%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    通知先グループ %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); @@ -1112,9 +1113,9 @@ void display_contactgroups(void) { printf("
    Contact NameAliasEmail AddressPager Address/NumberMinimum ImportanceService Notification OptionsHost Notification OptionsService Notification PeriodHost Notification PeriodService Notification CommandsHost Notification CommandsRetention Options通知先名エイリアスメールアドレス携帯番号/アドレス最小重要度サービス通知オプションホスト通知オプションサービス通知期間ホスト通知期間サービス通知コマンドホスト通知コマンド保持オプション
    ", bg_class); options = 0; if(flag_isset(temp_contact->host_notification_options, OPT_DOWN) == TRUE) { options = 1; - printf("Down"); + printf("停止(DOWN)"); } if(flag_isset(temp_contact->host_notification_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->host_notification_options, OPT_RECOVERY) == TRUE) { - printf("%sRecovery", (options) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->host_notification_options, OPT_FLAPPING) == TRUE) { - printf("%sFlapping", (options) ? ", " : ""); + printf("%sフラッピング(FLAPPING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_contact->host_notification_options, OPT_DOWNTIME) == TRUE) { - printf("%sDowntime", (options) ? ", " : ""); + printf("%sダウンタイム", (options) ? ", " : ""); options = 1; } if(!options) - printf("None"); + printf("無し"); printf("\n", bg_class); @@ -1045,7 +1046,7 @@ void display_contacts(void) { found = TRUE; } if(found == FALSE) - printf("None"); + printf("無し"); printf("", bg_class); @@ -1061,21 +1062,21 @@ void display_contacts(void) { found = TRUE; } if(found == FALSE) - printf("None"); + printf("無し"); printf("", bg_class); options = 0; if(temp_contact->retain_status_information == TRUE) { options = 1; - printf("Status Information"); + printf("ステータス情報"); } if(temp_contact->retain_nonstatus_information == TRUE) { - printf("%sNon-Status Information", (options == 1) ? ", " : ""); + printf("%sステータス情報以外", (options == 1) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("
    \n"); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); printf("\n"); /* check all the contact groups... */ @@ -1166,7 +1167,7 @@ void display_services(void) { char *command_name; int options; int odd = 0; - char time_string[16]; + char time_string[24]; const char *bg_class; int num_contacts = 0; @@ -1177,53 +1178,53 @@ void display_services(void) { return; } - printf("

    Service%s%s

    \n", - (*to_expand == '\0' ? "s" : "s Named or on Host "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    %sサービス %s

    \n", + (*to_expand == '\0' ? "" : "次のホストまたは指定された"), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Group NameDescriptionContact Membersグループ名説明このグループのメンバー
    \n"); printf("\n"); - printf(""); + printf(""); printf("\n"); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); printf("\n"); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the services... */ @@ -1272,23 +1273,23 @@ void display_services(void) { printf("%s", CONFIG_CGI, url_encode(temp_service->check_period), html_encode(temp_service->check_period, FALSE)); printf("\n"); - printf("\n", bg_class, (temp_service->parallelize == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->parallelize == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_service->is_volatile == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->is_volatile == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_service->obsess == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->obsess == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_service->checks_enabled == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->checks_enabled == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_service->accept_passive_checks == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->accept_passive_checks == TRUE) ? "有効" : "無効"); - printf("\n", bg_class, (temp_service->check_freshness == TRUE) ? "Yes" : "No"); + printf("\n", bg_class, (temp_service->check_freshness == TRUE) ? "有効" : "無効"); printf("\n"); printf("\n"); printf("\n"); get_interval_time_string(temp_service->notification_interval, time_string, sizeof(time_string)); - printf("\n", bg_class, (temp_service->notification_interval == 0) ? "No Re-notification" : html_encode(time_string, FALSE)); + printf("\n", bg_class, (temp_service->notification_interval == 0) ? "再通知無し" : html_encode(time_string, FALSE)); get_interval_time_string(temp_service->first_notification_delay, time_string, sizeof(time_string)); printf("\n", bg_class, time_string); @@ -1323,30 +1324,30 @@ void display_services(void) { options = 0; if(flag_isset(temp_service->notification_options, OPT_UNKNOWN) == TRUE) { options = 1; - printf("Unknown"); + printf("不明(UNKNOWN)"); } if(flag_isset(temp_service->notification_options, OPT_WARNING) == TRUE) { - printf("%sWarning", (options) ? ", " : ""); + printf("%s警告(WARNING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->notification_options, OPT_CRITICAL) == TRUE) { - printf("%sCritical", (options) ? ", " : ""); + printf("%s異常(CRITICAL)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->notification_options, OPT_RECOVERY) == TRUE) { - printf("%sRecovery", (options) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->notification_options, OPT_FLAPPING) == TRUE) { - printf("%sFlapping", (options) ? ", " : ""); + printf("%sフラッピング(FLAPPING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->notification_options, OPT_DOWNTIME) == TRUE) { - printf("%sDowntime", (options) ? ", " : ""); + printf("%sダウンタイム", (options) ? ", " : ""); options = 1; } if(!options) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -1419,26 +1420,26 @@ void display_services(void) { options = 0; if(flag_isset(temp_service->flap_detection_options, OPT_OK) == TRUE) { options = 1; - printf("Ok"); + printf("稼動(UP)"); } if(flag_isset(temp_service->flap_detection_options, OPT_WARNING) == TRUE) { - printf("%sWarning", (options) ? ", " : ""); + printf("%s警告(WARNING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->flap_detection_options, OPT_UNKNOWN) == TRUE) { - printf("%sUnknown", (options) ? ", " : ""); + printf("%s不明(UNKNOWN)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->flap_detection_options, OPT_CRITICAL) == TRUE) { - printf("%sCritical", (options) ? ", " : ""); + printf("%s異常(CRITICAL)", (options) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("", bg_class, (temp_service->notes == NULL) ? " " : html_encode(temp_service->notes, FALSE)); @@ -1461,14 +1462,14 @@ void display_services(void) { options = 0; if(temp_service->retain_status_information == TRUE) { options = 1; - printf("Status Information"); + printf("ステータス情報"); } if(temp_service->retain_nonstatus_information == TRUE) { - printf("%sNon-Status Information", (options == 1) ? ", " : ""); + printf("%sステータス情報以外", (options == 1) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); @@ -1488,8 +1489,8 @@ void display_timeperiods(void) { daterange *temp_daterange = NULL; timeperiod *temp_timeperiod = NULL; timeperiodexclusion *temp_timeperiodexclusion = NULL; - const char *months[12] = {"january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"}; - const char *days[7] = {"sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"}; + char *months[12] = {"1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"}; + char *days[7] = {"日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"}; int odd = 0; int day = 0; int x = 0; @@ -1507,19 +1508,19 @@ void display_timeperiods(void) { return; } - printf("

    Time Period%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    時間帯 %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Serviceサービス
    HostDescriptionImportanceMax. Check AttemptsNormal Check IntervalRetry Check IntervalCheck CommandCheck PeriodParallelizeホスト説明重要度最大チェック数通常のチェック間隔再試行のチェック間隔チェックコマンドチェック時間帯並列処理VolatileObsess OverEnable Active ChecksEnable Passive ChecksCheck FreshnessFreshness ThresholdDefault Contacts/GroupsEnable NotificationsNotification IntervalFirst Notification DelayNotification OptionsNotification PeriodEvent HandlerEvent Handler PeriodEnable Event HandlerStalking OptionsEnable Flap DetectionLow Flap ThresholdHigh Flap ThresholdFlap Detection OptionsProcess Performance DataNotesNotes URLAction URLLogo ImageImage AltRetention Optionsアクティブチェックパッシブチェック鮮度チェック(Freshness)鮮度しきい値(Freshness)デフォルトの通知先/グループ通知通知間隔初回通知遅延時間通知オプション通知時間帯イベントハンドライベントハンドラ期間イベントハンドラの有効化追跡オプションフラップ検知設定低フラップ閾値高フラップ閾値フラップ検知オプションパフォーマンスデータ処理メモメモURLアクションURLロゴ画像画像代替文字ステータス保持オプション
    %s%s%s%s%s%s%s%s%s%s%s%s", bg_class); if(temp_service->freshness_threshold == 0) - printf("Auto-determined value\n"); + printf("自動設定\n"); else - printf("%d seconds\n", temp_service->freshness_threshold); + printf("%d 秒\n", temp_service->freshness_threshold); printf("", bg_class); @@ -1310,11 +1311,11 @@ void display_services(void) { printf("", bg_class); - printf("%s\n", (temp_service->notifications_enabled == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_service->notifications_enabled == TRUE) ? "有効" : "無効"); printf("%s%s%s", bg_class); @@ -1372,45 +1373,45 @@ void display_services(void) { printf("", bg_class); - printf("%s\n", (temp_service->event_handler_enabled == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_service->event_handler_enabled == TRUE) ? "有効" : "無効"); printf("", bg_class); options = 0; if(flag_isset(temp_service->stalking_options, OPT_OK) == TRUE) { options = 1; - printf("Ok"); + printf("正常(OK)"); } if(flag_isset(temp_service->stalking_options, OPT_WARNING) == TRUE) { - printf("%sWarning", (options) ? ", " : ""); + printf("%s警告(WARNING)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->stalking_options, OPT_UNKNOWN) == TRUE) { - printf("%sUnknown", (options) ? ", " : ""); + printf("%s不明(UNKNOWN)", (options) ? ", " : ""); options = 1; } if(flag_isset(temp_service->stalking_options, OPT_CRITICAL) == TRUE) { - printf("%sCritical", (options) ? ", " : ""); + printf("%s異常(CRITICAL)", (options) ? ", " : ""); options = 1; } if(options == 0) - printf("None"); + printf("無し"); printf("", bg_class); - printf("%s\n", (temp_service->flap_detection_enabled == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_service->flap_detection_enabled == TRUE) ? "有効" : "無効"); printf("", bg_class); if(temp_service->low_flap_threshold == 0.0) - printf("Program-wide value\n"); + printf("グローバル設定\n"); else printf("%3.1f%%\n", temp_service->low_flap_threshold); printf("", bg_class); if(temp_service->high_flap_threshold == 0.0) - printf("Program-wide value\n"); + printf("グローバル設定\n"); else printf("%3.1f%%\n", temp_service->high_flap_threshold); printf("", bg_class); - printf("%s\n", (temp_service->process_performance_data == TRUE) ? "Yes" : "No"); + printf("%s\n", (temp_service->process_performance_data == TRUE) ? "有効" : "無効"); printf("%s
    \n"); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); printf("\n"); /* check all the time periods... */ @@ -1692,12 +1693,12 @@ void display_commands(void) { return; } - printf("

    Command%s%s

    \n", - (*to_expand == '\0' ? "s" : " "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    コマンド %s

    \n", + (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("
    NameAlias/DescriptionExclusionsDays/DatesTimes名前エイリアス/説明除外曜日/日付時間
    \n"); - printf("\n"); + printf("\n"); /* check all commands */ for(temp_command = command_list; temp_command != NULL; temp_command = temp_command->next) if(((*to_expand) == '\0') || (!strcmp(to_expand, temp_command->name))) { @@ -1753,7 +1754,7 @@ static void display_servicedependency(servicedependency *temp_sd) printf("\n", url_encode(temp_sd->service_description), html_encode(temp_sd->service_description, FALSE)); - printf("", bg_class, (temp_sd->dependency_type == NOTIFICATION_DEPENDENCY) ? "Notification" : "Check Execution"); + printf("", bg_class, (temp_sd->dependency_type == NOTIFICATION_DEPENDENCY) ? "通知" : "チェック実行"); printf("\n"); @@ -1797,25 +1798,25 @@ void display_servicedependencies(void) { return; } - printf("

    Service Dependencies%s%s

    \n", - (*to_expand == '\0' ? "" : " Involving Host "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    %sサービス依存関係 %s

    \n", + (*to_expand == '\0' ? "" : "次のホストを含む"), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Command NameCommand Line
    Command Nameコマンドライン
    %s%s%s", bg_class); if(temp_sd->dependency_period == NULL) @@ -1765,23 +1766,23 @@ static void display_servicedependency(servicedependency *temp_sd) printf("", bg_class); options = FALSE; if(flag_isset(temp_sd->failure_options, OPT_OK) == TRUE) { - printf("Ok"); + printf("稼働(OK)"); options = TRUE; } if(flag_isset(temp_sd->failure_options, OPT_WARNING) == TRUE) { - printf("%sWarning", (options == TRUE) ? ", " : ""); + printf("%s警告(WARNING)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_sd->failure_options, OPT_UNKNOWN) == TRUE) { - printf("%sUnknown", (options == TRUE) ? ", " : ""); + printf("%s不明(UNKNOWN)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_sd->failure_options, OPT_CRITICAL) == TRUE) { - printf("%sCritical", (options == TRUE) ? ", " : ""); + printf("%s異常(CRITICAL)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_sd->failure_options, OPT_PENDING) == TRUE) { - printf("%sPending", (options == TRUE) ? ", " : ""); + printf("%s未解決(PENDING)", (options == TRUE) ? ", " : ""); options = TRUE; } printf("
    \n"); printf("\n"); - printf(""); - printf(""); + printf(""); + printf(""); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); for(i = 0; i < num_objects.servicedependencies; i++) { @@ -1835,7 +1836,7 @@ void display_serviceescalations(void) { serviceescalation *temp_se = NULL; contactsmember *temp_contactsmember = NULL; contactgroupsmember *temp_contactgroupsmember = NULL; - char time_string[16] = ""; + char time_string[24] = ""; int options = FALSE; int odd = 0; const char *bg_class = ""; @@ -1848,25 +1849,25 @@ void display_serviceescalations(void) { return; } - printf("

    Service Escalation%s%s

    \n", - (*to_expand == '\0' ? "s" : "s on Host "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    %sサービスエスカレーション %s

    \n", + (*to_expand == '\0' ? "" : "次のホストの"), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Dependent ServiceMaster Service依存サービス上位サービス
    HostServiceHostServiceDependency TypeDependency PeriodDependency Failure Optionsホストサービスホストサービス依存タイプ依存期間依存失敗オプション
    \n"); printf("\n"); - printf(""); + printf(""); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); @@ -1913,7 +1914,7 @@ void display_serviceescalations(void) { printf("\n"); @@ -1921,7 +1922,7 @@ void display_serviceescalations(void) { get_interval_time_string(temp_se->notification_interval, time_string, sizeof(time_string)); printf("\n"); @@ -1936,23 +1937,23 @@ void display_serviceescalations(void) { printf("\n"); printf("\n"); @@ -1986,7 +1987,7 @@ static void display_hostdependency(hostdependency *temp_hd) printf("", bg_class, CONFIG_CGI, url_encode(temp_hd->host_name), html_encode(temp_hd->host_name, FALSE)); - printf("", bg_class, (temp_hd->dependency_type == NOTIFICATION_DEPENDENCY) ? "Notification" : "Check Execution"); + printf("", bg_class, (temp_hd->dependency_type == NOTIFICATION_DEPENDENCY) ? "通知" : "チェック実行"); printf("\n"); @@ -2027,19 +2028,19 @@ void display_hostdependencies(void) { return; } - printf("

    Host Dependencies%s%s

    \n", - (*to_expand == '\0' ? "" : " Involving Host "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    %sホスト依存関係 %s

    \n", + (*to_expand == '\0' ? "" : "次のホストを含む"), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Serviceサービス
    HostDescriptionContacts/GroupsFirst NotificationLast NotificationNotification IntervalEscalation PeriodEscalation Optionsホスト説明通知先/グループ初回通知最終通知通知間隔エスカレーション期間エスカレーションオプション
    ", bg_class); if(temp_se->last_notification == 0) - printf("Infinity"); + printf("無限"); else printf("%d", temp_se->last_notification); printf("", bg_class); if(temp_se->notification_interval == 0.0) - printf("Notify Only Once (No Re-notification)"); + printf("1回のみ(再通知無し)"); else printf("%s", time_string); printf("", bg_class); options = FALSE; if(flag_isset(temp_se->escalation_options, OPT_WARNING) == TRUE) { - printf("%sWarning", (options == TRUE) ? ", " : ""); + printf("%s警告(WARNING)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_se->escalation_options, OPT_UNKNOWN) == TRUE) { - printf("%sUnknown", (options == TRUE) ? ", " : ""); + printf("%s不明(UNKNOWN)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_se->escalation_options, OPT_CRITICAL) == TRUE) { - printf("%sCritical", (options == TRUE) ? ", " : ""); + printf("%s異常(CRITICAL)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_se->escalation_options, OPT_RECOVERY) == TRUE) { - printf("%sRecovery", (options == TRUE) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options == TRUE) ? ", " : ""); options = TRUE; } if(options == FALSE) - printf("None"); + printf("無し"); printf("
    %s%s%s", bg_class); if(temp_hd->dependency_period == NULL) @@ -1998,19 +1999,19 @@ static void display_hostdependency(hostdependency *temp_hd) printf("", bg_class); options = FALSE; if(flag_isset(temp_hd->failure_options, OPT_UP) == TRUE) { - printf("Up"); + printf("稼働(OK)"); options = TRUE; } if(flag_isset(temp_hd->failure_options, OPT_DOWN) == TRUE) { - printf("%sDown", (options == TRUE) ? ", " : ""); + printf("%s停止(DOWN)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_hd->failure_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options == TRUE) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_hd->failure_options, OPT_PENDING) == TRUE) { - printf("%sPending", (options == TRUE) ? ", " : ""); + printf("%s未解決(PENDING)", (options == TRUE) ? ", " : ""); options = TRUE; } printf("
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* print all host dependencies... */ @@ -2059,7 +2060,7 @@ void display_hostescalations(void) { hostescalation *temp_he = NULL; contactsmember *temp_contactsmember = NULL; contactgroupsmember *temp_contactgroupsmember = NULL; - char time_string[16] = ""; + char time_string[24] = ""; int options = FALSE; int odd = 0; const char *bg_class = ""; @@ -2072,21 +2073,21 @@ void display_hostescalations(void) { return; } - printf("

    Host Escalation%s%s

    \n", - (*to_expand == '\0' ? "s" : "s for Host "), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); + printf("

    %sホストエスカレーション %s

    \n", + (*to_expand == '\0' ? "" : "次のホストの"), (*to_expand == '\0' ? "" : html_encode(to_expand, FALSE))); printf("

    \n"); printf("

    \n"); printf("
    Dependent HostMaster HostDependency TypeDependency PeriodDependency Failure Options依存ホスト上位ホスト依存タイプ依存期間依存失敗オプション
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* print all hostescalations... */ @@ -2130,7 +2131,7 @@ void display_hostescalations(void) { printf("\n"); @@ -2138,7 +2139,7 @@ void display_hostescalations(void) { get_interval_time_string(temp_he->notification_interval, time_string, sizeof(time_string)); printf("\n"); @@ -2153,19 +2154,19 @@ void display_hostescalations(void) { printf("\n"); printf("\n"); @@ -2182,9 +2183,8 @@ void display_hostescalations(void) { void unauthorized_message(void) { - printf("

    It appears as though you do not have permission to view the configuration information you requested...

    \n"); - printf("

    If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
    "); - printf("and check the authorization options in your CGI configuration file.

    \n"); + printf("

    要求したコマンドを送信する権限が無いようです。

    \n"); + printf("

    このメッセージが何らかのエラーであると思う場合はHTTPサーバのこのCGIに対するアクセス権限の設定かNagiosのCGI用設定ファイルの認証に関するオプションを調べてみてください

    \n"); return; } @@ -2236,7 +2236,7 @@ void display_command_expansion(void) { return; } - printf("

    Command Expansion

    \n"); + printf("

    拡張コマンド

    \n"); /* Parse to_expand into parts */ for(i = 0; i < MAX_COMMAND_ARGUMENTS; i++) command_args[i] = NULL; @@ -2260,12 +2260,12 @@ void display_command_expansion(void) { printf("

    \n"); printf("
    HostContacts/GroupsFirst NotificationLast NotificationNotification IntervalEscalation PeriodEscalation Optionsホスト通知先/グループ初回通知最終通知通知間隔エスカレーション期間エスカレーションオプション
    ", bg_class); if(temp_he->last_notification == 0) - printf("Infinity"); + printf("無限"); else printf("%d", temp_he->last_notification); printf("", bg_class); if(temp_he->notification_interval == 0.0) - printf("Notify Only Once (No Re-notification)"); + printf("1回のみ(再通知無し)"); else printf("%s", time_string); printf("", bg_class); options = FALSE; if(flag_isset(temp_he->escalation_options, OPT_DOWN) == TRUE) { - printf("%sDown", (options == TRUE) ? ", " : ""); + printf("%s停止(DOWN)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_he->escalation_options, OPT_UNREACHABLE) == TRUE) { - printf("%sUnreachable", (options == TRUE) ? ", " : ""); + printf("%s未到達(UNREACHABLE)", (options == TRUE) ? ", " : ""); options = TRUE; } if(flag_isset(temp_he->escalation_options, OPT_RECOVERY) == TRUE) { - printf("%sRecovery", (options == TRUE) ? ", " : ""); + printf("%s復旧(RECOVERY)", (options == TRUE) ? ", " : ""); options = TRUE; } if(options == FALSE) - printf("None"); + printf("無し"); printf("
    \n"); - printf("\n"); + printf("\n"); if((*to_expand) != '\0') { arg_count[0] = 0; - printf("\n"); @@ -2312,7 +2312,7 @@ void display_command_expansion(void) { c = strstr(cc, "$"); if(c)(*(c++)) = '\0'; printf("$%s%s", html_encode(cc, FALSE), (c ? "$" : "")); - if(!c) printf(" (not properly terminated)"); + if(!c) printf(" (適切に終端していません)"); } else { /* $ARGn$ macro */ @@ -2326,18 +2326,18 @@ void display_command_expansion(void) { if(*(command_args[i]) != '\0') printf("%s%s%s", hash_color(i), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : ""), html_encode(command_args[i], FALSE), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : "")); - else printf("(empty)"); + else printf("(空)"); } - else printf("(undefined)"); + else printf("(未定義)"); } - else printf("(not a valid $ARGn$ index: %u)", i); + else printf("(有効な $ARGn$ インデックスではありません: %u)", i); if((*c) != '\0') c++; - else printf(" (not properly terminated)"); + else printf(" (適切に終端していません)"); } else { /* Syntax err in index */ c = strstr(cc, "$"); - printf("(not an $ARGn$ index: "%s")", html_encode(strtok(cc, "$"), FALSE)); + printf("($ARGn$ インデックスではありません: "%s")", html_encode(strtok(cc, "$"), FALSE)); if(c) c++; } } @@ -2348,19 +2348,19 @@ void display_command_expansion(void) { for(i = 1; (i < MAX_COMMAND_ARGUMENTS) && (command_args[i]); i++) { if(arg_count[i] == 0) { - printf("\n", bg_class, bg_class); + printf("\n", bg_class, bg_class); printf("\n", bg_class, i, hash_color(i), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : ""), html_encode(command_args[i], FALSE), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : "")); } else if(arg_count[i] > 1) { - printf("\n", bg_class, bg_class, i); + printf("\n", bg_class, bg_class, i); printf("\n", bg_class, i, hash_color(i), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : ""), html_encode(command_args[i], FALSE), ((lead_space[i] > 0) || (trail_space[i] > 0) ? "‍" : "")); } if((lead_space[i] > 0) || (trail_space[i] > 0)) { - printf("\n", bg_class, bg_class); + printf("\n", bg_class, bg_class); printf("\n", html_encode(command_args[0], FALSE)); + printf("COLOR='#FF0000'>エラー:\n", html_encode(command_args[0], FALSE)); } } - printf("\n"); - printf("\n"); + printf("\n"); + printf("\n"); printf("
    Command NameCommand Line
    Command Nameコマンドライン
    To expand:%s", escape_string(command_args[0])); + printf("
    拡張:%s", escape_string(command_args[0])); for(i = 1; (i < MAX_COMMAND_ARGUMENTS) && command_args[i]; i++) printf("!%s", hash_color(i), escape_string(command_args[i])); printf("\n
    unused:
    未使用:$ARG%u$=%s%s%s
    used %u x:
    使用 %u x:$ARG%u$=%s%s%s
    dangling whitespace:
    空白がぶらぶらしてます(dangling whitespace):$ARG%u$=", bg_class, i); for(c = command_args[i], j = 0; c && isspace(*c); c++, j++) /* TODO: As long as the hyperlinks change all whitespace into actual spaces, @@ -2403,16 +2403,16 @@ void display_command_expansion(void) { if(!arg_count[0]) { printf("
    Error:No\n"); - printf("command "%s" found
    No\n"); + printf("コマンド "%s" が見つかりました

    Enter the command_check definition from a host or service definition and press Go to see the expansion of the command
    To expand:
    ホストまたはサービスの定期からcommand_checkの定義を入力してコマンドの拡張を見に行くには実行を押します。
    拡張:\n", html_encode(to_expand, FALSE)); - printf("
    \n"); printf("

    \n"); @@ -2426,7 +2426,7 @@ void display_options(void) { printf("

    \n"); - printf("
    Select Type of Config Data You Wish To View
    \n"); + printf("
    閲覧したい設定項目を選んでください
    \n"); printf("

    \n"); @@ -2435,26 +2435,26 @@ void display_options(void) { printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
    Object Type:
    オブジェクトタイプ:
    "); printf("\n"); printf("
    \n"); printf("
    \n"); diff --git a/cgi/extinfo.c b/cgi/extinfo.c index 43f07f1689..82b458d5ba 100644 --- a/cgi/extinfo.c +++ b/cgi/extinfo.c @@ -148,23 +148,23 @@ int main(void) { printf("\n"); if(display_type == DISPLAY_HOST_INFO) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Host Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "ホスト情報"); else if(display_type == DISPLAY_SERVICE_INFO) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Service Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "サービス情報"); else if(display_type == DISPLAY_COMMENTS) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "All Host and Service Comments"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "全てのホストとサービスのコメント"); else if(display_type == DISPLAY_PERFORMANCE) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Performance Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "パフォーマンス情報"); else if(display_type == DISPLAY_HOSTGROUP_INFO) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Hostgroup Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "ホストグループ情報"); else if(display_type == DISPLAY_SERVICEGROUP_INFO) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Servicegroup Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "サービスグループ情報"); else if(display_type == DISPLAY_DOWNTIME) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "All Host and Service Scheduled Downtime"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "全てのホストとサービスのダウンタイムスケジュール"); else if(display_type == DISPLAY_SCHEDULING_QUEUE) - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Check Scheduling Queue"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "スケジュールキューの確認"); else - snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Nagios Process Information"); + snprintf(temp_buffer, sizeof(temp_buffer) - 1, "Nagiosプロセス情報"); temp_buffer[sizeof(temp_buffer) - 1] = '\x0'; display_info_table(temp_buffer, TRUE, ¤t_authdata); @@ -213,47 +213,47 @@ int main(void) { printf("\n"); printf("\n"); printf("\n"); @@ -267,19 +267,19 @@ int main(void) { if((display_type == DISPLAY_HOST_INFO && temp_host != NULL) || (display_type == DISPLAY_SERVICE_INFO && temp_host != NULL && temp_service != NULL) || (display_type == DISPLAY_HOSTGROUP_INFO && temp_hostgroup != NULL) || (display_type == DISPLAY_SERVICEGROUP_INFO && temp_servicegroup != NULL)) { if(display_type == DISPLAY_HOST_INFO) { - printf("
    Host
    \n"); + printf("
    ホスト
    \n"); printf("
    %s
    \n", temp_host->alias); printf("
    (%s)

    \n", temp_host->name); if(temp_host->parent_hosts != NULL) { /* print all parent hosts */ - printf("
    Parents:
    \n"); + printf("
    上位:
    \n"); for(temp_parenthost = temp_host->parent_hosts; temp_parenthost != NULL; temp_parenthost = temp_parenthost->next) printf("\n", STATUS_CGI, url_encode(temp_parenthost->host_name), temp_parenthost->host_name); printf("
    "); } - printf("
    Member of
    "); + printf("
    所属メンバー
    "); for(temp_hostgroup = hostgroup_list; temp_hostgroup != NULL; temp_hostgroup = temp_hostgroup->next) { if(is_host_member_of_hostgroup(temp_hostgroup, temp_host) == TRUE) { if(found == TRUE) @@ -290,15 +290,15 @@ int main(void) { } if(found == FALSE) - printf("No hostgroups"); + printf("ホストグループ無し"); printf("

    \n"); printf("
    %s
    \n", temp_host->address); } if(display_type == DISPLAY_SERVICE_INFO) { - printf("
    Service
    %s
    On Host
    \n", service_desc); + printf("
    ホスト
    %s
    上のサービス
    \n", service_desc); printf("
    %s
    \n", temp_host->alias); printf("
    (%s)

    \n", EXTINFO_CGI, DISPLAY_HOST_INFO, url_encode(temp_host->name), temp_host->name); - printf("
    Member of
    "); + printf("
    所属メンバー
    "); for(temp_servicegroup = servicegroup_list; temp_servicegroup != NULL; temp_servicegroup = temp_servicegroup->next) { if(is_service_member_of_servicegroup(temp_servicegroup, temp_service) == TRUE) { if(found == TRUE) @@ -309,13 +309,13 @@ int main(void) { } if(found == FALSE) - printf("No servicegroups."); + printf("サービスグループ無し"); printf("

    \n"); printf("
    %s
    \n", temp_host->address); } if(display_type == DISPLAY_HOSTGROUP_INFO) { - printf("
    Hostgroup
    \n"); + printf("
    ホストグループ
    \n"); printf("
    %s
    \n", temp_hostgroup->alias); printf("
    (%s)
    \n", temp_hostgroup->group_name); if(temp_hostgroup->notes != NULL) { @@ -325,7 +325,7 @@ int main(void) { } } if(display_type == DISPLAY_SERVICEGROUP_INFO) { - printf("
    Servicegroup
    \n"); + printf("
    サービスグループ
    \n"); printf("
    %s
    \n", temp_servicegroup->alias); printf("
    (%s)
    \n", temp_servicegroup->group_name); if(temp_servicegroup->notes != NULL) { @@ -383,8 +383,8 @@ int main(void) { process_macros_r(mac, temp_host->action_url, &processed_string, 0); printf("%s", processed_string); free(processed_string); - printf("' TARGET='%s'>Perform Additional Actions On This Host\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); - printf("
    Extra Actions

    \n"); + printf("' TARGET='%s'>このホストの対応情報\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); + printf("
    対応情報

    \n"); printf("\n"); } if(temp_host->notes_url != NULL && strcmp(temp_host->notes_url, "")) { @@ -394,8 +394,8 @@ int main(void) { printf("%s", processed_string); free(processed_string); /*print_extra_host_url(temp_host->name,temp_host->notes_url);*/ - printf("' TARGET='%s'>View Additional Notes For This Host\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); - printf("
    Extra Notes

    \n"); + printf("' TARGET='%s'>このホストの追加情報\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); + printf("
    追加情報

    \n"); printf("\n"); } printf("\n"); @@ -408,16 +408,16 @@ int main(void) { process_macros_r(mac, temp_service->action_url, &processed_string, 0); printf("%s", processed_string); free(processed_string); - printf("' TARGET='%s'>Perform Additional Actions On This Service\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); - printf("
    Extra Actions

    \n"); + printf("' TARGET='%s'>このサービスの対応情報\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); + printf("
    対応情報

    \n"); } if(temp_service->notes_url != NULL && strcmp(temp_service->notes_url, "")) { printf("View Additional Notes For This Service\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); - printf("
    Extra Notes

    \n"); + printf("' TARGET='%s'>このサービスの追加情報\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); + printf("
    追加情報

    \n"); } printf("\n"); } @@ -428,16 +428,16 @@ int main(void) { printf("\n"); printf("Perform Additional Actions On This Hostgroup\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); - printf("
    Extra Actions

    \n"); + printf("' TARGET='%s'>このホストグループの対応情報\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); + printf("
    対応情報

    \n"); printf("\n"); } if(temp_hostgroup->notes_url != NULL && strcmp(temp_hostgroup->notes_url, "")) { printf("\n"); printf("View Additional Notes For This Hostgroup\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); - printf("
    Extra Notes

    \n"); + printf("' TARGET='%s'>このホストグループの追加情報\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); + printf("
    追加情報

    \n"); printf("\n"); } printf("\n"); @@ -448,14 +448,14 @@ int main(void) { if(temp_servicegroup->action_url != NULL && strcmp(temp_servicegroup->action_url, "")) { printf("Perform Additional Actions On This Servicegroup\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); - printf("
    Extra Actions

    \n"); + printf("' TARGET='%s'>このサービスグループの対応情報\n", (action_url_target == NULL) ? "_blank" : action_url_target, url_images_path, ACTION_ICON); + printf("
    対応情報

    \n"); } if(temp_servicegroup->notes_url != NULL && strcmp(temp_servicegroup->notes_url, "")) { printf("View Additional Notes For This Servicegroup\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); - printf("
    Extra Notes

    \n"); + printf("' TARGET='%s'>このサービスグループの追加情報\n", (notes_url_target == NULL) ? "_blank" : notes_url_target, url_images_path, NOTES_ICON); + printf("
    追加情報

    \n"); } printf("\n"); } @@ -546,9 +546,10 @@ void document_header(int use_stylesheet) { printf("\n"); printf("\n"); + printf("\n"); printf("\n", url_images_path); printf("\n"); - printf("Extended Information\n"); + printf("情報\n"); printf("\n"); if(use_stylesheet == TRUE) { @@ -568,7 +569,7 @@ void document_header(int use_stylesheet) { printf("\n", url_js_path, JQUERY_JS); - if (enable_page_tour == TRUE) { printf("\n", url_js_path, NAGFUNCS_JS); printf("
    -

    JSON Query Generator

    +

    JSON クエリー ジェネレーター

    -

    Your query results will appear here.

    +

    クエリーの結果がここに表示されます。

    -

    Enter your options here.

    +

    ここにオプションを入れてください。

    @@ -24,22 +25,22 @@

    JSON Query Generator

    - +
    diff --git a/html/main.php b/html/main.php index 15713f8d85..db9d4ea6ae 100644 --- a/html/main.php +++ b/html/main.php @@ -71,8 +71,8 @@ function setCoreStatusHTML(image, text) {
    -
    Version
    -
    December 19, 2024
    +
    バージョン
    +
    2024年12月19日
    Check for updates @@ -85,15 +85,15 @@ function setCoreStatusHTML(image, text) { if (!$updateinfo['update_checks_enabled']) { ?>
    -
    Warning: Automatic Update Checks are Disabled!
    -
    Disabling update checks presents a possible security risk. Visit nagios.org to check for updates manually or enable update checks in your Nagios config file.
    +
    警告: 自動更新チェックは無効です。
    +
    アップデートチェックを無効にすると潜在的なセキュリティリスクがあります。Nagiosの設定ファイルで更新チェックを有効にするか、手動で更新を確認するためにnagios.orgを訪れてください。
    -
    A new version of Nagios Core is available!
    -
    Visit nagios.org to download Nagios .
    +
    Nagios Coreの最新バージョンが利用可能です
    +
    Nagios をダウンロードするためにnagios.orgを訪れてください。
    "> + -Nagios Core +Nagios Core 日本語化 @@ -26,49 +27,49 @@