diff -Nnaur cgi/avail.c.orig cgi/avail.c --- cgi/avail.c.orig Sat Jan 20 23:07:59 2007 +++ cgi/avail.c Sat Jan 20 23:08:23 2007 @@ -384,19 +384,19 @@ 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'; @@ -408,35 +408,35 @@ 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 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"); @@ -453,42 +453,42 @@ 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
\n",days,hours,minutes,seconds); + printf("
期間: %d日間と %d時間 %d分 %d秒
\n",days,hours,minutes,seconds); } printf("\n"); @@ -522,60 +522,60 @@ printf("\n",(assume_states_during_notrunning==TRUE)?"yes":"no"); printf("\n",(include_soft_states==TRUE)?"yes":"no"); - 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"); 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"); @@ -585,7 +585,7 @@ printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); @@ -637,7 +637,7 @@ end_day=t->tm_mday; end_year=t->tm_year+1900; - printf("

Step 3: Select Report Options

\n"); + printf("

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

\n"); printf("

\n"); @@ -655,46 +655,49 @@ 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"); if((display_type==DISPLAY_HOST_AVAIL && show_all_hosts==TRUE) || (display_type==DISPLAY_SERVICE_AVAIL && show_all_services==TRUE)){ 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"); @@ -702,24 +705,27 @@ printf("
End Date (Inclusive):終了日(指定日を含む):"); + printf("",end_year); + printf("年"); printf("\n "); + printf("月"); printf(" ",end_day); - printf("",end_year); + printf("日"); printf("\n"); printf("\n"); printf("\n"); @@ -729,10 +735,10 @@ 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"); @@ -823,7 +829,7 @@ /* 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"); @@ -832,9 +838,9 @@ printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Hostgroup(s):\n"); + printf("
ホストグループ:\n"); printf("\n"); printf("
\n"); @@ -853,7 +859,7 @@ /* 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"); @@ -862,9 +868,9 @@ printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Host(s):\n"); + printf("
ホスト:\n"); printf("\n"); printf("
\n"); @@ -880,12 +886,12 @@ 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"); @@ -894,9 +900,9 @@ printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Servicegroup(s):\n"); + printf("
サービスグループ:\n"); printf("\n"); printf("
\n"); @@ -934,19 +940,19 @@ printf("}\n"); printf("\n"); - printf("

Step 2: Select Service

\n"); + printf("

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

\n"); printf("

\n"); printf("
\n",AVAIL_CGI); printf("\n"); - printf("\n",(firsthostpointer==NULL)?"unknown":firsthostpointer); + printf("\n",(firsthostpointer==NULL)?"不明":firsthostpointer); printf("\n"); - printf("\n"); - printf("\n"); + printf("\n"); printf("
Service(s):\n"); + printf("
サービス:\n"); printf("\n"); printf("
\n"); @@ -963,7 +969,7 @@ 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"); } @@ -981,7 +987,7 @@ } 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{ @@ -1000,7 +1006,7 @@ 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"); } @@ -1023,7 +1029,7 @@ /* step 1 - ask the user what kind of report they want */ else{ - printf("

Step 1: Select Report Type

\n"); + printf("

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

\n"); printf("

\n"); @@ -1031,17 +1037,17 @@ printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
Type:
種類:\n"); printf("\n"); printf("
\n"); @@ -1089,8 +1095,9 @@ printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Nagios Availability\n"); + printf("Nagios::稼働レポート -Nagios Availability-\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -1880,14 +1887,14 @@ 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; @@ -1998,11 +2005,11 @@ #ifdef DEBUG if(subject->type==HOST_SUBJECT) - printf("HOST '%s'...\n",subject->host_name); + printf("ホスト '%s'\n",subject->host_name); else - printf("SERVICE '%s' ON HOST '%s'...\n",subject->service_description,subject->host_name); + printf("ホスト '%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("%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 */ @@ -2036,13 +2043,13 @@ if(start_time>midnight_today) 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); @@ -2050,12 +2057,12 @@ if(startMatched time: %ld -> %ld = %d
    \n",start, end, temp_duration); + printf("
  • 一致した時間: %ld -> %ld = %d
    \n",start, end, temp_duration); #endif } #ifdef DEBUG else - printf("
  • Ignored time: %ld -> %ld
    \n",start, end); + printf("
  • 一致しなかった時間: %ld -> %ld
    \n",start, end); #endif } state_duration+=temp_duration; @@ -2128,7 +2135,7 @@ as->processed_state=start_state; #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 @@ -2430,7 +2437,7 @@ } #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 return; @@ -2864,14 +2871,14 @@ 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 */ @@ -3285,23 +3292,23 @@ 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; } else{ 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; } printf("
    \n"); @@ -3309,15 +3316,15 @@ printf("
    \n"); printf("\n"); - printf("\n"); + 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=""; @@ -3325,63 +3332,63 @@ case AS_NO_DATA: if(full_log_entries==FALSE) continue; - entry_type="NO DATA"; + entry_type="データ無し"; ebgclass="INDETERMINATE"; break; case AS_PROGRAM_END: if(full_log_entries==FALSE) continue; - entry_type="PROGRAM END"; + entry_type="プログラム終了"; ebgclass="INDETERMINATE"; break; case AS_PROGRAM_START: 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; default: @@ -3395,12 +3402,12 @@ if(temp_as->next==NULL){ get_time_string(&t2,end_date_time,sizeof(end_date_time)-1,SHORT_DATE_TIME); get_time_breakdown((time_t)(t2-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); } 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); } if(odd){ @@ -3490,11 +3497,11 @@ total_time=calculate_total_time(t1,t2); 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("\n"); + printf("\n"); for(temp_subject=subject_list;temp_subject!=NULL;temp_subject=temp_subject->next){ @@ -3565,7 +3572,7 @@ odd=1; bgclass="Even"; } - printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); + printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); 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%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); @@ -3652,11 +3659,11 @@ total_time=calculate_total_time(t1,t2); printf("

    \n"); - printf("
    Servicegroup '%s' Host State Breakdowns:
    \n",sg->group_name); + printf("
    ホストグループ '%s' のホスト稼働状況:
    \n",sg->group_name); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); for(temp_subject=subject_list;temp_subject!=NULL;temp_subject=temp_subject->next){ @@ -3727,17 +3734,17 @@ odd=1; bgclass="Even"; } - printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); + printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); 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%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); printf("
    \n"); - printf("
    Servicegroup '%s' Service State Breakdowns:
    \n",sg->group_name); + printf("
    サービスグループ '%s' のサービス稼働状況:
    \n",sg->group_name); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); current_subject=0; average_percent_time_indeterminate=0.0; @@ -3827,7 +3834,7 @@ bgclass="Even"; } - printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); + printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); 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%%)%2.3f%% (%2.3f%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); @@ -3921,7 +3928,7 @@ total_time=calculate_total_time(t1,t2); #ifdef DEBUG - printf("Total time: '%ld' seconds
    \n",total_time); + printf("合計時間: '%ld' 秒
    \n",total_time); #endif /* show data for a specific host */ @@ -3947,45 +3954,45 @@ /* 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){ percent_time_up=(double)(((double)temp_subject->time_up*100.0)/(double)total_time); @@ -4015,48 +4022,48 @@ } } - printf("
    Host State Breakdowns:
    \n"); + printf("
    ホスト稼働状況:
    \n"); #ifdef USE_TRENDS printf("

    \n"); printf("",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("Host State Trends",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("&t1=%lu&t2=%lu&includesoftstates=%s&assumestateretention=%s&assumeinitialstates=%s&assumestatesduringnotrunning=%s&initialassumedhoststate=%d&backtrack=%d' border=1 alt='ホスト状態の傾向' title='Host State Trends' width='500' height='20'>",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"); printf("

    \n"); #endif printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* up times */ - printf(""); - printf("\n",time_up_unscheduled_string,percent_time_up,percent_time_up_known); - printf("\n",time_up_scheduled_string,percent_time_up_scheduled,percent_time_up_scheduled_known); - printf("\n",time_up_string,percent_time_up,percent_time_up_known); + printf(""); + printf("\n",time_up_unscheduled_string,percent_time_up,percent_time_up_known); + printf("\n",time_up_scheduled_string,percent_time_up_scheduled,percent_time_up_scheduled_known); + printf("\n",time_up_string,percent_time_up,percent_time_up_known); /* down times */ - printf(""); - printf("\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_known); - printf("\n",time_down_scheduled_string,percent_time_down_scheduled,percent_time_down_scheduled_known); - printf("\n",time_down_string,percent_time_down,percent_time_down_known); + printf(""); + printf("\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_known); + printf("\n",time_down_scheduled_string,percent_time_down_scheduled,percent_time_down_scheduled_known); + printf("\n",time_down_string,percent_time_down,percent_time_down_known); /* unreachable times */ - printf(""); - printf("\n",time_unreachable_unscheduled_string,percent_time_unreachable,percent_time_unreachable_known); - printf("\n",time_unreachable_scheduled_string,percent_time_unreachable_scheduled,percent_time_unreachable_scheduled_known); - printf("\n",time_unreachable_string,percent_time_unreachable,percent_time_unreachable_known); + printf(""); + printf("\n",time_unreachable_unscheduled_string,percent_time_unreachable,percent_time_unreachable_known); + printf("\n",time_unreachable_scheduled_string,percent_time_unreachable_scheduled,percent_time_unreachable_scheduled_known); + printf("\n",time_unreachable_string,percent_time_unreachable,percent_time_unreachable_known); /* indeterminate times */ - printf(""); - printf("\n",time_indeterminate_notrunning_string,percent_time_indeterminate_notrunning); - printf("\n",time_indeterminate_nodata_string,percent_time_indeterminate_nodata); - printf("\n",time_indeterminate_string,percent_time_indeterminate); + printf(""); + printf("\n",time_indeterminate_notrunning_string,percent_time_indeterminate_notrunning); + printf("\n",time_indeterminate_nodata_string,percent_time_indeterminate_nodata); + printf("\n",time_indeterminate_string,percent_time_indeterminate); printf("\n"); - printf("\n",total_time_string); + printf("\n",total_time_string); printf("
    StateType / ReasonTime%% Total Time%% Known Time
    状態内容時間割合認知率
    UPUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    稼働
    (UP)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    DOWNUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    停止
    (DOWN)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    UNREACHABLEUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    未到達
    (UNREACHABLE)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    UndeterminedNagios Not Running%s%2.3f%%
    Insufficient Data%s%2.3f%%
    Total%s%2.3f%%
    不明
    (UNDETERMINED)
    Nagios非稼働%s%2.3f%%
    データ不足%s%2.3f%%
    合計%s%2.3f%%
    AllTotal%s100.000%%100.000%%
    すべて合計%s100.000%%100.000%%
    \n"); printf("
    \n"); @@ -4065,11 +4072,11 @@ /* display state breakdowns for all services on this host */ 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){ @@ -4148,7 +4155,7 @@ bgclass="Even"; } - printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); + printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); 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%%)%2.3f%% (%2.3f%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); @@ -4166,11 +4173,11 @@ if(output_format==HTML_OUTPUT){ printf("

    \n"); - printf("
    Host State Breakdowns:
    \n"); + printf("
    ホスト稼働状況:
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); } else if(output_format==CSV_OUTPUT){ @@ -4313,7 +4320,7 @@ odd=1; bgclass="Even"; } - printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); + printf("",bgclass,bgclass,average_percent_time_up,average_percent_time_up_known,average_percent_time_down,average_percent_time_down_known,average_percent_time_unreachable,average_percent_time_unreachable_known,bgclass,average_percent_time_indeterminate); printf("
    Host%% Time Up%% Time Down%% Time Unreachable%% Time Undetermined
    ホスト名 稼働率
    (OK)
    停止率
    (DOWN)
    未到達率
    (UNREACHABLE)
    未確定率
    (UNDETERMINED)
    Average%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); @@ -4426,53 +4433,53 @@ /* 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){ percent_time_ok=(double)(((double)temp_subject->time_ok*100.0)/(double)total_time); @@ -4508,57 +4515,57 @@ } } - printf("
    Service State Breakdowns:
    \n"); + printf("
    サービス稼働状況:
    \n"); #ifdef USE_TRENDS printf("

    \n"); printf("",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 State Trends",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&includesoftstates=%s&assumestateretention=%s&assumeinitialstates=%s&assumestatesduringnotrunning=%s&initialassumedservicestate=%d&backtrack=%d' border=1 alt='サービス状態の傾向' title='Service State Trends' width='500' height='20'>",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("
    \n"); printf("

    \n"); #endif printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* ok states */ - printf(""); - printf("\n",time_ok_unscheduled_string,percent_time_ok_unscheduled,percent_time_ok_unscheduled_known); - printf("\n",time_ok_scheduled_string,percent_time_ok_scheduled,percent_time_ok_scheduled_known); - printf("\n",time_ok_string,percent_time_ok,percent_time_ok_known); + printf(""); + printf("\n",time_ok_unscheduled_string,percent_time_ok_unscheduled,percent_time_ok_unscheduled_known); + printf("\n",time_ok_scheduled_string,percent_time_ok_scheduled,percent_time_ok_scheduled_known); + printf("\n",time_ok_string,percent_time_ok,percent_time_ok_known); /* warning states */ - printf(""); - printf("\n",time_warning_unscheduled_string,percent_time_warning_unscheduled,percent_time_warning_unscheduled_known); - printf("\n",time_warning_scheduled_string,percent_time_warning_scheduled,percent_time_warning_scheduled_known); - printf("\n",time_warning_string,percent_time_warning,percent_time_warning_known); + printf(""); + printf("\n",time_warning_unscheduled_string,percent_time_warning_unscheduled,percent_time_warning_unscheduled_known); + printf("\n",time_warning_scheduled_string,percent_time_warning_scheduled,percent_time_warning_scheduled_known); + printf("\n",time_warning_string,percent_time_warning,percent_time_warning_known); /* unknown states */ - printf(""); - printf("\n",time_unknown_unscheduled_string,percent_time_unknown_unscheduled,percent_time_unknown_unscheduled_known); - printf("\n",time_unknown_scheduled_string,percent_time_unknown_scheduled,percent_time_unknown_scheduled_known); - printf("\n",time_unknown_string,percent_time_unknown,percent_time_unknown_known); + printf(""); + printf("\n",time_unknown_unscheduled_string,percent_time_unknown_unscheduled,percent_time_unknown_unscheduled_known); + printf("\n",time_unknown_scheduled_string,percent_time_unknown_scheduled,percent_time_unknown_scheduled_known); + printf("\n",time_unknown_string,percent_time_unknown,percent_time_unknown_known); /* critical states */ - printf(""); - printf("\n",time_critical_unscheduled_string,percent_time_critical_unscheduled,percent_time_critical_unscheduled_known); - printf("\n",time_critical_scheduled_string,percent_time_critical_scheduled,percent_time_critical_scheduled_known); - printf("\n",time_critical_string,percent_time_critical,percent_time_critical_known); + printf(""); + printf("\n",time_critical_unscheduled_string,percent_time_critical_unscheduled,percent_time_critical_unscheduled_known); + printf("\n",time_critical_scheduled_string,percent_time_critical_scheduled,percent_time_critical_scheduled_known); + printf("\n",time_critical_string,percent_time_critical,percent_time_critical_known); - printf(""); + printf(""); /* - printf("\n",time_indeterminate_unscheduled_string,percent_time_indeterminate_unscheduled); - printf("\n",time_indeterminate_scheduled_string,percent_time_indeterminate_scheduled); + printf("\n",time_indeterminate_unscheduled_string,percent_time_indeterminate_unscheduled); + printf("\n",time_indeterminate_scheduled_string,percent_time_indeterminate_scheduled); */ - printf("\n",time_indeterminate_notrunning_string,percent_time_indeterminate_notrunning); - printf("\n",time_indeterminate_nodata_string,percent_time_indeterminate_nodata); - printf("\n",time_indeterminate_string,percent_time_indeterminate); + printf("\n",time_indeterminate_notrunning_string,percent_time_indeterminate_notrunning); + printf("\n",time_indeterminate_nodata_string,percent_time_indeterminate_nodata); + printf("\n",time_indeterminate_string,percent_time_indeterminate); printf("\n"); - printf("\n",total_time_string); + printf("\n",total_time_string); printf("
    StateType / ReasonTime%% Total Time%% Known Time
    状態内容時間 割合 認知率
    OKUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    正常
    (OK)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    WARNINGUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    警告
    (WARNING)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    UNKNOWNUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    不明
    (UNKNOWN)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    CRITICALUnscheduled%s%2.3f%%%2.3f%%
    Scheduled%s%2.3f%%%2.3f%%
    Total%s%2.3f%%%2.3f%%
    異常
    (CRITICAL)
    非計画%s%2.3f%%%2.3f%%
    計画%s%2.3f%%%2.3f%%
    合計%s%2.3f%%%2.3f%%
    Undetermined
    未確定
    (UNDETERMINED)
    Unscheduled%s%2.3f%%
    Scheduled%s%2.3f%%
    非計画%s%2.3f%%
    計画%s%2.3f%%
    Nagios Not Running%s%2.3f%%
    Insufficient Data%s%2.3f%%
    Total%s%2.3f%%
    Nagios未稼働%s%2.3f%%
    データ不足%s%2.3f%%
    合計%s%2.3f%%
    AllTotal%s100.000%%100.000%%
    すべて合計%s100.000%%100.000%%
    \n"); printf("
    \n"); @@ -4572,11 +4579,11 @@ if(output_format==HTML_OUTPUT){ - printf("
    Service State Breakdowns:
    \n"); + printf("
    サービス稼働状況:
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); } else if(output_format==CSV_OUTPUT){ printf("HOST_NAME, SERVICE_DESCRIPTION,"); @@ -4743,7 +4750,7 @@ odd=1; bgclass="Even"; } - printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); + printf("\n",bgclass,bgclass,average_percent_time_ok,average_percent_time_ok_known,average_percent_time_warning,average_percent_time_warning_known,average_percent_time_unknown,average_percent_time_unknown_known,average_percent_time_critical,average_percent_time_critical_known,bgclass,average_percent_time_indeterminate); 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%%)%2.3f%% (%2.3f%%)%2.3f%%
    平均値%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%% (%2.3f%%)%2.3f%%
    \n"); printf("
    \n"); @@ -4852,7 +4859,7 @@ 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 -Nnaur cgi/cgiutils.c.orig cgi/cgiutils.c --- cgi/cgiutils.c.orig Wed Nov 29 16:09:30 2006 +++ cgi/cgiutils.c Wed Nov 29 15:11:16 2006 @@ -139,6 +139,7 @@ #endif #endif +char ttf_file[MAX_FILENAME_LENGTH]; @@ -198,6 +199,8 @@ my_strtok_buffer=NULL; original_my_strtok_buffer=NULL; + strcpy(ttf_file,""); + return; } @@ -459,6 +462,15 @@ ping_syntax=strdup(temp_buffer); } + else if(strstr(input,"ttf_file=")==input){ + temp_buffer=strtok(input,"="); + temp_buffer=strtok(NULL,"\x0"); + if(temp_buffer!=NULL){ + strncpy(ttf_file,temp_buffer,sizeof(ttf_file)); + ttf_file[sizeof(ttf_file)-1]='\x0'; + strip(ttf_file); + } + } } /* free memory and close the file */ @@ -964,8 +976,10 @@ int minute; int second; int year; - char *weekdays[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; - char *months[12]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; + char *weekdays[7]={"日","月","火","水","木","金","土"}; + char *months[12]={"1","2","3","4","5","6","7","8","9","10","11","12"}; +// char *weekdays[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; +// char *months[12]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; char *tzone=""; if(raw_time==NULL) @@ -992,7 +1006,7 @@ /* 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年%s月%d日(%s) %02d:%02d:%02d",year,months[tm_ptr->tm_mon],day,weekdays[tm_ptr->tm_wday],hour,minute,second); /* short style */ else if(type==SHORT_DATE_TIME){ @@ -1027,7 +1041,7 @@ 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; @@ -1570,28 +1584,32 @@ 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("
    \n"); + + printf("最終更新: %s
    \n",date_time); if(refresh==TRUE) - printf("Updated every %d seconds
    \n",refresh_rate); + printf("更新間隔:%d秒毎
    \n",refresh_rate); - printf("Nagios® - www.nagios.org
    \n"); + printf("
    \n"); 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); - 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("
    \n"); + printf("Nagios® - www.nagios.org
    \n"); - if(result==ERROR) - printf("
    Warning: Could not read program status information!
    "); + if(nagios_process_state!=STATE_OK) + printf("
    警告: 監視プロセスが稼働してないようです。
    ここをクリックして確認してください。
    ",EXTINFO_CGI,DISPLAY_PROCESS_INFO); - else{ + if(result==ERROR){ + printf("
    警告: プログラムのステータス情報が読み込めません。
    "); + }else{ if(enable_notifications==FALSE) - printf("
    - Notifications are disabled
    "); + printf("
    - 通知機能は無効になっています。
    "); if(execute_service_checks==FALSE) - printf("
    - Service checks are disabled
    "); - } + printf("
    - サービスチェックは無効になっています。
    "); + } printf("\n"); printf("\n"); @@ -1611,24 +1629,24 @@ printf("\n"); printf("\n"); if(archive==0){ - printf("Latest Archive
    "); - printf("Latest Archive",url,url_images_path,LEFT_ARROW_ICON); + printf("過去ログ
    "); + printf("過去ログ",url,url_images_path,LEFT_ARROW_ICON); } else{ - printf("Earlier Archive
    "); - printf("Earlier Archive",url,archive+1,url_images_path,LEFT_ARROW_ICON); + printf("過去ログ
    "); + printf("過去ログ",url,archive+1,url_images_path,LEFT_ARROW_ICON); } printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); get_time_string(&last_scheduled_log_rotation,date_time,(int)sizeof(date_time),LONG_DATE_TIME); printf("%s",date_time); - printf("
    to
    "); + printf("
    から
    "); if(archive==0) - printf("Present.."); + printf("現在..."); else{ get_time_string(&this_scheduled_log_rotation,date_time,(int)sizeof(date_time),LONG_DATE_TIME); printf("%s",date_time); @@ -1640,12 +1658,12 @@ printf("\n"); if(archive==1){ - printf("Current Log
    "); - printf("Current Log",url,url_images_path,RIGHT_ARROW_ICON); + printf("現在のログ
    "); + printf("現在のログ",url,url_images_path,RIGHT_ARROW_ICON); } else{ - printf("More Recent Archive
    "); - printf("More Recent Archive",url,archive-1,url_images_path,RIGHT_ARROW_ICON); + printf("最近の過去ログ
    "); + printf("最近の過去ログ",url,archive-1,url_images_path,RIGHT_ARROW_ICON); } printf("\n"); } @@ -1666,7 +1684,7 @@ archive_basename=strrchr((char *)&archive_file,'/')+1; /* now it's safe to print the filename */ - printf("
    \n",archive_basename); + printf("
    \n",archive_basename); return; } @@ -1855,10 +1873,10 @@ 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; @@ -1884,25 +1902,25 @@ /* displays an error if CGI config file could not be read */ void cgi_config_file_error(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 http://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttp://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; @@ -1913,25 +1931,25 @@ /* displays an error if main config file could not be read */ void main_config_file_error(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 http://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttp://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; @@ -1941,26 +1959,26 @@ /* 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. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file).\n"); + printf("
    4. 設定内容が正しいかどうかコマンドライン上で-vオプションをつけてコマンドを実行して確認してください。(例:nagios -v nagios.config\n"); + printf("
    5. Nagiosのログファイルを見て何がエラーを起こしてるのかチェックしてください。\n"); + printf("
    6. オブジェクトデータの記録に関するオプション(デフォルトのテキストファイルもしくはテンプレートベースのファイル)が使用できるようにコンパイルされていることを確認してください。\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 http://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttp://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; @@ -1970,30 +1988,30 @@ /* 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. Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.\n"); + printf("
    4. Nagiosのログファイルを見てNagios起動時、もしくはステータスデータ取得時のエラーを確認してください。\n"); + printf("
    5. 起動前にコマンドオプション-v(e.g., nagios -v nagios.cfg)を付けて設定ファイルの記述に誤りがないか確認してください。\n"); + printf("
    6. オブジェクトデータの記録に関するオプション(デフォルトのテキストファイルもしくはデータベース)が使用できるようにコンパイルされていることを確認してください。もし、メインのプログラムがステータスデータをテキストファイルに記録しているのに、CGIがデータベースから取得しようとしている場合は問題があります。\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 http://www.nagios.org.\n"); + printf("作業を続ける前に徹底的にNagiosのドキュメントの\"Installing and configuration\"を読んでください。もし熟読してもわからない場合、メーリングリストを活用してみてください。詳しい情報はhttp://www.nagios.orgへどうぞ。\n"); printf("

    \n"); return; diff -Nnaur cgi/cmd.c.orig cgi/cmd.c --- cgi/cmd.c.orig Tue Sep 26 00:30:47 2006 +++ cgi/cmd.c Wed Nov 01 14:43:36 2006 @@ -123,7 +123,7 @@ 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(); @@ -135,7 +135,7 @@ 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(); @@ -155,7 +155,7 @@ 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(); @@ -175,7 +175,7 @@ /* left column of the first row */ printf("\n"); - display_info_table("External Command Interface",FALSE,¤t_authdata); + display_info_table("外部コマンドインターフェース",FALSE,¤t_authdata); printf("\n"); /* center column of the first row */ @@ -203,7 +203,7 @@ if(content_type==WML_CONTENT) printf("

    Error: No command specified!

    \n"); else - printf("

    Error: No command was specified

    \n"); + printf("

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

    \n"); } /* if this is the first request for a command, present option */ @@ -236,7 +236,7 @@ printf("\n"); - printf("\n"); + printf("\n"); } else{ @@ -246,7 +246,7 @@ printf("\n"); printf("\n"); printf("\n"); - printf("External Command Interface\n"); + printf("外部コマンドインターフェース\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -659,250 +659,250 @@ 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 actice 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_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("指定したサービスのパッシブチェックの結果を登録する"); 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_FAILURE_PREDICTION: case CMD_DISABLE_FAILURE_PREDICTION: - printf("%s failure prediction for hosts and service",(cmd==CMD_ENABLE_FAILURE_PREDICTION)?"enable":"disable"); + printf("ホストとサービスの予測機能を%sにする",(cmd==CMD_ENABLE_FAILURE_PREDICTION)?"有効":"無効"); 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; default: - printf("execute an unknown command. Shame on you!
    "); + printf("不明なコマンドを実行しました。
    "); return; } @@ -915,7 +915,7 @@ printf("\n"); printf("\n"); - printf("
    Command Options
    \n"); + printf("
    コマンドオプション
    \n"); printf("\n"); printf("\n"); if(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM){ - printf("\n"); - printf("\n"); } - printf("\n"); - printf("\n"); - printf("\n"); break; case CMD_ADD_SVC_COMMENT: case CMD_ACKNOWLEDGE_SVC_PROBLEM: - printf("\n"); - printf("\n"); - printf("\n"); } - printf("\n"); - printf("\n"); - printf("\n"); break; case CMD_DEL_HOST_COMMENT: case CMD_DEL_SVC_COMMENT: - printf("\n"); break; case CMD_DELAY_HOST_NOTIFICATION: - printf("\n"); - printf("\n"); break; case CMD_DELAY_SVC_NOTIFICATION: - printf("\n"); - printf("\n"); break; @@ -1006,20 +1006,20 @@ 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"); - printf("\n"); break; @@ -1038,10 +1038,10 @@ case CMD_DISABLE_SVC_FLAP_DETECTION: case CMD_START_OBSESSING_OVER_SVC: case CMD_STOP_OBSESSING_OVER_SVC: - printf("\n"); - printf("\n"); break; @@ -1066,16 +1066,16 @@ case CMD_DISABLE_PASSIVE_HOST_CHECKS: case CMD_START_OBSESSING_OVER_HOST: case CMD_STOP_OBSESSING_OVER_HOST: - printf("\n"); 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"); } @@ -1105,20 +1105,20 @@ case CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS: case CMD_START_OBSESSING_OVER_HOST_CHECKS: case CMD_STOP_OBSESSING_OVER_HOST_CHECKS: - 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; @@ -1144,23 +1144,23 @@ case CMD_SCHEDULE_HOST_DOWNTIME: case CMD_SCHEDULE_SVC_DOWNTIME: - printf("\n"); if(cmd==CMD_SCHEDULE_SVC_DOWNTIME){ - printf("\n"); - printf("\n"); 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"); } @@ -1234,11 +1234,11 @@ 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"); } @@ -1250,11 +1250,11 @@ 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"); } @@ -1262,7 +1262,7 @@ case CMD_DEL_HOST_DOWNTIME: case CMD_DEL_SVC_DOWNTIME: - printf("\n"); break; @@ -1274,39 +1274,39 @@ case CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME: if(cmd==CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME || cmd==CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME){ - printf("\n"); } else{ - printf("\n"); } - printf("\n"); - printf("\n"); 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"); } break; default: - printf("\n"); + printf("\n"); } printf("\n"); - printf("\n"); + printf("\n"); printf("
    \n"); @@ -928,77 +928,77 @@ case CMD_ADD_HOST_COMMENT: case CMD_ACKNOWLEDGE_HOST_PROBLEM: - printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Sticky Acknowledgement:"); + printf("
    継続して承認する:"); printf(""); printf("
    Send Notification:"); + printf("
    警報を通知:"); printf(""); printf("
    Persistent%s:",(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?" Comment":""); + printf("
    再起動後も%s保持させる:",(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?"コメントを":""); printf(""); printf("
    Author (Your Name):"); + printf("
    作成者:"); printf("",comment_author); printf("
    Comment:"); + printf("
    コメント:"); printf("",comment_data); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Service:"); + printf("
    サービス名:"); printf("",service_desc); if(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM){ - printf("
    Sticky Acknowledgement:"); + printf("
    継続して承認する:"); printf(""); printf("
    Send Notification:"); + printf("
    警報を通知:"); printf(""); printf("
    Persistent%s:",(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?" Comment":""); + printf("
    再起動後も%s保持させる:",(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?"コメントを":""); printf(""); printf("
    Author (Your Name):"); + printf("
    作成者:"); printf("",comment_author); printf("
    Comment:"); + printf("
    コメント:"); printf("",comment_data); printf("
    Comment ID:"); + printf("
    コメントID:"); printf("",comment_id); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Notification Delay (minutes from now):"); + printf("
    通知を遅らせる時間(現在からの分数):"); printf("",notification_delay); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Service:"); + printf("
    サービス名:"); printf("",service_desc); - printf("
    Notification Delay (minutes from now):"); + printf("
    通知を遅らせる時間(現在からの分数):"); printf("",notification_delay); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Service:"); + printf("
    サービス名:"); printf("",service_desc); printf("
    Check Time:"); + printf("
    チェック時刻:"); printf("",buffer); printf("
    Force Check:"); + printf("
    強制的にチェック:"); printf(""); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Service:"); + printf("
    サービス名:"); printf("",service_desc); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",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("",host_name); printf("
    Service:"); + printf("
    サービス:"); printf("",service_desc); printf("
    Check Result:"); + printf("
    チェック結果:"); printf("\n"); printf("
    Check Output:"); + printf("
    チェック出力:"); printf(""); printf("
    Performance Data:"); + printf("
    パフォーマンスデータ:"); printf(""); printf("
    Host Name:"); + printf("
    ホスト名:"); printf("",host_name); printf("
    Service:"); + printf("
    サービス:"); printf("",service_desc); } - printf("
    Author (Your Name):"); + printf("
    作成者:"); printf("",comment_author); printf("
    Comment:"); + printf("
    コメント:"); printf("",comment_data); 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("",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("",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("",hostgroup_name); printf("
    Servicegroup Name:"); + printf("
    サービスグループ名:"); printf("",servicegroup_name); printf("
    Author (Your Name):"); + printf("
    作成者:"); printf("",comment_author); printf("
    Comment:"); + printf("
    コメント:"); printf("",comment_data); printf("
    Start Time:"); + printf("
    開始時刻:"); printf("",buffer); printf("
    End Time:"); + printf("
    終了時刻:"); printf("",buffer); printf("
    Type:"); printf("\n"); printf("
    If Flexible, Duration:"); + printf("
    期間(「フレキシブル」を選択した場合のみ)"); printf("\n"); printf("\n"); printf("\n"); @@ -1315,19 +1315,19 @@ printf("
    Hours
    \n"); printf("
    Schedule Downtime For Hosts Too:"); + printf("
    同時にホストもダウンタイムをスケジュールする:"); printf(""); printf("
    This should not be happening... :-(
    何かおかしいです....:-(
    \n"); printf("\n"); @@ -1349,7 +1349,7 @@ 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; } @@ -1743,15 +1743,15 @@ /* 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"); } @@ -1760,11 +1760,11 @@ /* 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"); } } @@ -1775,19 +1775,19 @@ else{ printf("

    %s

    \n", error_string); free(error_string); - printf("

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

    \n"); + 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"); } } @@ -1799,19 +1799,19 @@ if(result==OK){ if(content_type==WML_CONTENT) - printf("

    Your command was submitted sucessfully...

    \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"); } } } @@ -2168,11 +2168,11 @@ 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"); } @@ -2184,11 +2184,11 @@ 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"); } @@ -2226,7 +2226,7 @@ /* display information about a command */ void show_command_help(cmd){ - printf("
    Command Description
    \n"); + printf("
    コマンドの説明
    \n"); printf("\n"); printf("\n"); diff -Nnaur cgi/config.c.orig cgi/config.c --- cgi/config.c.orig Wed Mar 22 06:31:46 2006 +++ cgi/config.c Sun Oct 29 23:24:24 2006 @@ -149,7 +149,7 @@ /* left column of the first row */ printf("\n"); /* right hand column of top row */ @@ -160,27 +160,27 @@ printf("\n",CONFIG_CGI); printf("
    \n"); @@ -2234,443 +2234,425 @@ 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("\"beyone\" 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 be retained between restarts of Nagios, 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("名前とちょっとした説明を入れてください。Nagiosが再起動してもこの作業を保存したければ「保存する」にチェックを入れます。もし、この問題を認知した警報を通知したくなければ「警報を通知」のチェックをはずしてください\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 be retained between restarts of Nagios, 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("名前とちょっとした説明を入れてください。Nagiosが再起動してもこの作業を保存したければ「保存する」にチェックを入れます。もし、この問題を認知した警報を通知したくなければ「警報を通知」のチェックをはずしてください\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. Note: Removing the acknowledgement does not remove the host comment that was originally associated\n"); - printf("with the acknowledgement. You'll have to remove that as well if that's what you want.\n"); + printf("このコマンドは指定したホストの既知マークを削除し、通知を再開します\n"); + printf("注)このコマンドでは既知マークをつけたときのコメントは削除しません。\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. Note: Removing the acknowledgement does not remove the service comment that was originally associated\n"); - printf("with the acknowledgement. You'll have to remove that as well if that's what you want.\n"); + printf("このコマンドは指定したサービスの既知マークを削除し、通知を再開します。\n"); + printf("注)このコマンドでは既知マークをつけたときのコメントは削除しません。\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/yyy 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("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/yyy hh:mm:ss形式で入力してください。\n"); + 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_FAILURE_PREDICTION: - printf("This command is used to enable failure prediction for hosts and services on a program-wide basis. Individual hosts and services may have failure prediction disabled.\n"); + printf("このコマンドはグローバル設定としてホストとサービスの失敗予測機能を有効にします。\n"); break; case CMD_DISABLE_FAILURE_PREDICTION: - printf("This command is used to disable failure prediction for hosts and services on a program-wide basis.\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 dowtime.\n"); + printf("このコマンドは指定したホストグループ上の全ホストのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます。\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyy 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 dowtime.\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/yyy 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 dowtime.\n"); + printf("このコマンドは指定したサービスグループ上の全ホストのダウンタイムをスケジュールします。ダウンタイムを設定するとその間はNagiosはホストに関する通知を行わなくなります。\n"); + printf("ダウンタイムが経過したらNagiosは通常どおり通知を行います。このスケジュール内容はNagiosが再起動した場合でも保存されます\n"); + printf("フィールドにダウンタイム開始時間と終了時間をmm/dd/yyy 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 dowtime.\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/yyy hh:mm:ss形式で入力してください。\n"); + printf("もし「固定」にチェックを入れると入力した開始時間と終了時間きっちりにスケジュールされます。もし「固定」にチェックを入れない場合はNagiosは\"フレキシブル\"なダウンタイムとします。\n"); + printf("フレキシブルなダウンタイムとはホストが停止または未到達になる開始時間から経過時間を指定してダウンタイムを決定することです。「固定」にチェックを入れた場合期間を指定する箇所は入力しても無効になります。\n"); break; default: - printf("Sorry, but no information is available for this command."); + printf("このコマンドの情報はありません。"); } printf("
    \n"); - display_info_table("Configuration",FALSE,¤t_authdata); + display_info_table("各種設定-Configuration-",FALSE,¤t_authdata); printf("
    \n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
    Object Type:
    オブジェクトタイプ:
    "); printf("\n"); printf("
    \n"); printf("\n"); } @@ -316,8 +316,9 @@ printf("\n"); printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Configuration\n"); + printf("設定\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -438,38 +439,38 @@ return; } - printf("

    Hosts

    \n"); + printf("

    ホスト

    \n"); printf("

    \n"); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf(""); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the hosts... */ @@ -514,19 +515,19 @@ printf("%s\n",CONFIG_CGI,url_encode(temp_host->host_check_command),temp_host->host_check_command); printf("\n"); - printf("\n",bg_class,(temp_host->obsess_over_host==TRUE)?"Yes":"No"); + printf("\n",bg_class,(temp_host->obsess_over_host==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_host_checks==TRUE)?"Yes":"No"); + printf("\n",bg_class,(temp_host->accept_passive_host_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":time_string); + printf("\n",bg_class,(temp_host->notification_interval==0)?"再通知無し":time_string); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n",bg_class,(temp_host->failure_prediction_options==NULL)?" ":temp_host->failure_prediction_options); @@ -634,14 +635,14 @@ 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"); @@ -668,16 +669,16 @@ return; } - printf("

    Host Groups

    \n"); + printf("

    ホストグループ

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Host NameAlias/DescriptionAddressParent HostsMax. Check AttemptsCheck IntervalHost Check Commandホスト名エイリアス/説明アドレス親ホスト最大チェック数チェック間隔ホストチェックコマンドObsess OverEnable Active ChecksEnable Passive ChecksCheck FreshnessFreshness ThresholdDefault Contact GroupsNotification IntervalNotification OptionsNotification PeriodEvent HandlerEnable Event HandlerStalking OptionsEnable Flap DetectionLow Flap ThresholdHigh Flap ThresholdProcess Performance DataEnable Failure PredictionFailure Prediction OptionsRetention Optionsアクティブチェックパッシブチェックフレッシュチェックフレッシュ閾値デフォルトの通知先グループ通知間隔通知オプション通知時間帯イベントハンドライベントハンドラの有効化ストーキングオプションフラップ検知設定フラップ低閾値フラップ高閾値パフォーマンスデータ処理予測機能予測機能オプションステータス保存オプション
    %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); @@ -542,28 +543,28 @@ printf("%s%s",bg_class); options=0; if(temp_host->notify_on_down==TRUE){ options=1; - printf("Down"); + printf("停止(DOWN)"); } if(temp_host->notify_on_unreachable==TRUE){ - printf("%sUnreachable",(options)?", ":""); + printf("%s未到達(UNREACHABLE)",(options)?", ":""); options=1; } if(temp_host->notify_on_recovery==TRUE){ - printf("%sRecovery",(options)?", ":""); + printf("%s復旧(RECOVERY)",(options)?", ":""); options=1; } if(temp_host->notify_on_flapping==TRUE){ - printf("%sFlapping",(options)?", ":""); + printf("%sフラッピング(FLAPPING)",(options)?", ":""); options=1; } if(options==0) - printf("None"); + printf("無し"); printf("",bg_class); @@ -581,51 +582,51 @@ 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(temp_host->stalk_on_up==TRUE){ options=1; - printf("Up"); + printf("稼動(UP)"); } if(temp_host->stalk_on_down==TRUE){ - printf("%sDown",(options)?", ":""); + printf("%s停止(DOWN)",(options)?", ":""); options=1; } if(temp_host->stalk_on_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("",bg_class); - printf("%s\n",(temp_host->failure_prediction_enabled==TRUE)?"Yes":"No"); + printf("%s\n",(temp_host->failure_prediction_enabled==TRUE)?"有効":"無効"); printf("%s
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the hostgroups... */ @@ -733,16 +734,16 @@ return; } - printf("

    Service Groups

    \n"); + printf("

    サービスグループ

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Group NameDescriptionHost Membersグループ名説明このグループのメンバー
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the servicegroups... */ @@ -805,7 +806,7 @@ /* read in contact definitions... */ read_all_object_configuration_data(main_config_file,READ_CONTACTS); - printf("

    Contacts

    \n"); + printf("

    通知先

    \n"); printf("

    \n"); printf("

    \n"); @@ -813,16 +814,16 @@ printf("
    Group NameDescriptionService Membersグループ名説明このグループのメンバー
    \n"); printf("\n"); - 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... */ @@ -848,48 +849,48 @@ options=0; if(temp_contact->notify_on_service_unknown==TRUE){ options=1; - printf("Unknown"); + printf("不明(UNKNOWN)"); } if(temp_contact->notify_on_service_warning==TRUE){ - printf("%sWarning",(options)?", ":""); + printf("%s警告(WARNING)",(options)?", ":""); options=1; } if(temp_contact->notify_on_service_critical==TRUE){ - printf("%sCritical",(options)?", ":""); + printf("%s異常(CRITICAL)",(options)?", ":""); options=1; } if(temp_contact->notify_on_service_recovery==TRUE){ - printf("%sRecovery",(options)?", ":""); + printf("%s復旧(RECOVERY)",(options)?", ":""); options=1; } if(temp_contact->notify_on_service_flapping==TRUE){ - printf("%sFlapping",(options)?", ":""); + printf("%sフラッピング(FLAPPING)",(options)?", ":""); options=1; } if(!options) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -961,7 +962,7 @@ } - printf("

    Contact Groups

    \n"); + printf("

    通知先グループ

    \n"); printf("

    \n"); printf("

    \n"); @@ -969,9 +970,9 @@ printf("
    Contact NameAliasEmail AddressPager Address/NumberService Notification OptionsHost Notification OptionsService Notification PeriodHost Notification PeriodService Notification CommandsHost Notification Commands通知先名エイリアスメールアドレス携帯番号/アドレスサービス通知オプションホスト通知オプションサービス通知期間ホスト通知期間サービス通知コマンドホスト通知コマンド
    ",bg_class); options=0; if(temp_contact->notify_on_host_down==TRUE){ options=1; - printf("Down"); + printf("停止(DOWN)"); } if(temp_contact->notify_on_host_unreachable==TRUE){ - printf("%sUnreachable",(options)?", ":""); + printf("%s未到達(UNREACHABLE)",(options)?", ":""); options=1; } if(temp_contact->notify_on_host_recovery==TRUE){ - printf("%sRecovery",(options)?", ":""); + printf("%s復旧(RECOVERY)",(options)?", ":""); options=1; } if(temp_contact->notify_on_host_flapping==TRUE){ - printf("%sFlapping",(options)?", ":""); + printf("%sフラッピング(FLAPPING)",(options)?", ":""); options=1; } if(!options) - printf("None"); + printf("無し"); printf("\n",bg_class); @@ -918,7 +919,7 @@ found=TRUE; } if(found==FALSE) - printf("None"); + printf("無し"); printf("",bg_class); @@ -933,7 +934,7 @@ found=TRUE; } if(found==FALSE) - 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... */ @@ -1034,7 +1035,7 @@ /* read in service definitions... */ read_all_object_configuration_data(main_config_file,READ_SERVICES); - printf("

    Services

    \n"); + printf("

    サービス

    \n"); printf("

    \n"); printf("

    \n"); @@ -1044,35 +1045,35 @@ 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(""); - printf(""); - printf("\n"); - 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(""); + printf(""); + printf("\n"); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the services... */ @@ -1114,23 +1115,23 @@ printf("%s",CONFIG_CGI,url_encode(temp_service->check_period),temp_service->check_period); 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_over_service==TRUE)?"Yes":"No"); + printf("\n",bg_class,(temp_service->obsess_over_service==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_service_checks==TRUE)?"Yes":"No"); + printf("\n",bg_class,(temp_service->accept_passive_service_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)); @@ -1156,26 +1157,26 @@ options=0; if(temp_service->notify_on_unknown==TRUE){ options=1; - printf("Unknown"); + printf("不明(UNKNOWN)"); } if(temp_service->notify_on_warning==TRUE){ - printf("%sWarning",(options)?", ":""); + printf("%s警告(WARNING)",(options)?", ":""); options=1; } if(temp_service->notify_on_critical==TRUE){ - printf("%sCritical",(options)?", ":""); + printf("%s異常(CRITICAL)",(options)?", ":""); options=1; } if(temp_service->notify_on_recovery==TRUE){ - printf("%sRecovery",(options)?", ":""); + printf("%s復旧(RECOVERY)",(options)?", ":""); options=1; } if(temp_service->notify_on_flapping==TRUE){ - printf("%sFlapping",(options)?", ":""); + printf("%sフラッピング(FLAPPING)",(options)?", ":""); options=1; } if(!options) - printf("None"); + printf("無し"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n",bg_class,(temp_service->failure_prediction_options==NULL)?" ":temp_service->failure_prediction_options); @@ -1248,10 +1249,10 @@ 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) @@ -1290,22 +1291,22 @@ /* read in time period definitions... */ read_all_object_configuration_data(main_config_file,READ_TIMEPERIODS); - printf("

    Time Periods

    \n"); + printf("

    時間帯

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Group NameDescriptionContact Membersグループ名説明このグループのメンバー
    Service
    HostDescriptionMax. Check AttemptsNormal Check IntervalRetry Check InteralCheck CommandCheck PeriodParallelizeホスト説明最大チェック数通常のチェック間隔再試行のチェック間隔チェックコマンドチェック時間帯並列処理VolatileObsess OverEnable Active ChecksEnable Passive ChecksCheck FreshnessFreshness ThresholdDefault Contact GroupsEnable NotificationsNotification IntervalNotification OptionsNotification PeriodEvent HandlerEnable Event HandlerStalking OptionsEnable Flap DetectionLow Flap ThresholdHigh Flap ThresholdProcess Performance DataEnable Failure PredictionFailure Prediction OptionsRetention Optionsアクティブチェックパッシブチェックフレッシュチェックフレッシュ閾値デフォルトの通知先グループ通知通知間隔通知オプション通知時間帯イベントハンドライベントハンドラの有効化ストーキングオプションフラップ検知設定フラップ低閾値フラップ高閾値パフォーマンスデータ処理予測機能予測機能オプション状態保存オプション
    %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); @@ -1146,7 +1147,7 @@ printf("",bg_class); - printf("%s\n",(temp_service->notifications_enabled==TRUE)?"Yes":"No"); + printf("%s\n",(temp_service->notifications_enabled==TRUE)?"有効":"無効"); printf("",bg_class); if(temp_service->notification_period==NULL) @@ -1191,25 +1192,25 @@ 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(temp_service->stalk_on_ok==TRUE){ options=1; - printf("Ok"); + printf("正常(OK)"); } if(temp_service->stalk_on_warning==TRUE){ - printf("%sWarning",(options)?", ":""); + printf("%s警告(WARNING)",(options)?", ":""); options=1; } if(temp_service->stalk_on_unknown==TRUE){ - printf("%sUnknown",(options)?", ":""); + printf("%s不明(UNKNOWN)",(options)?", ":""); options=1; } if(temp_service->stalk_on_critical==TRUE){ - printf("%sCritical",(options)?", ":""); + printf("%s異常(CRITICAL)",(options)?", ":""); options=1; } if(options==0) @@ -1217,29 +1218,29 @@ 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("",bg_class); - printf("%s\n",(temp_service->failure_prediction_enabled==TRUE)?"Yes":"No"); + printf("%s\n",(temp_service->failure_prediction_enabled==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"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); + printf("\n"); printf("\n"); /* check all the time periods... */ @@ -1380,11 +1381,11 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_COMMANDS); - printf("

    Commands

    \n"); + printf("

    コマンド

    \n"); printf("

    \n"); printf("
    NameAlias/DescriptionSunday Time RangesMonday Time RangesTuesday Time RangesWednesday Time RangesThursday Time RangesFriday Time RangesSaturday Time Ranges名前エイリアス/説明日曜日時間範囲月曜日時間範囲火曜日時間範囲水曜日時間範囲木曜日時間範囲金曜日時間範囲土曜日時間範囲
    \n"); - printf("\n"); + printf("\n"); /* check all commands */ for(temp_command=command_list;temp_command!=NULL;temp_command=temp_command->next){ @@ -1429,23 +1430,23 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_SERVICEDEPENDENCIES); - printf("

    Service Dependencies

    \n"); + printf("

    サービス依存関係

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Command NameCommand Line
    コマンド名コマンドライン
    \n"); printf("\n"); - printf(""); - printf(""); + printf(""); + printf(""); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the service dependencies... */ @@ -1472,28 +1473,28 @@ printf("\n",url_encode(temp_sd->service_description),temp_sd->service_description); - printf("",bg_class,(temp_sd->dependency_type==NOTIFICATION_DEPENDENCY)?"Notification":"Check Execution"); + printf("",bg_class,(temp_sd->dependency_type==NOTIFICATION_DEPENDENCY)?"通知":"チェック実行"); printf("\n"); @@ -1526,24 +1527,24 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_SERVICEESCALATIONS); - printf("

    Service Escalations

    \n"); + printf("

    サービスエスカレーション(上流方向への情報伝達)

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Dependent ServiceMaster Service依存サービス親サービス
    HostServiceHostServiceDependency TypeDependency Failure Optionsホストサービスホストサービス依存タイプ依存失敗オプション
    %s%s%s",bg_class); options=FALSE; if(temp_sd->fail_on_ok==TRUE){ - printf("Ok"); + printf("正常(OK)"); options=TRUE; } if(temp_sd->fail_on_warning==TRUE){ - printf("%sWarning",(options==TRUE)?", ":""); + printf("%s警告(WARNING)",(options==TRUE)?", ":""); options=TRUE; } if(temp_sd->fail_on_unknown==TRUE){ - printf("%sUnknown",(options==TRUE)?", ":""); + printf("%s不明(UNKNOWN)",(options==TRUE)?", ":""); options=TRUE; } if(temp_sd->fail_on_critical==TRUE){ - printf("%sCritical",(options==TRUE)?", ":""); + printf("%s異常(CRITICAL)",(options==TRUE)?", ":""); options=TRUE; } if(temp_sd->fail_on_pending==TRUE){ - printf("%sPending",(options==TRUE)?", ":""); + printf("%s未解決(PENDING)",(options==TRUE)?", ":""); options=TRUE; } printf("
    \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"); /* check all the service escalations... */ @@ -1579,14 +1580,14 @@ printf("\n"); printf("\n"); @@ -1601,23 +1602,23 @@ printf("\n"); printf("\n"); @@ -1647,17 +1648,17 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_HOSTDEPENDENCIES); - printf("

    Host Dependencies

    \n"); + printf("

    ホスト依存関係

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Serviceサービス
    HostDescriptionContact 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) - printf("Notify Only Once (No Re-notification)"); + printf("1回のみ(再通知無し)"); else printf("%d",temp_se->notification_interval); printf("",bg_class); options=FALSE; if(temp_se->escalate_on_warning==TRUE){ - printf("%sWarning",(options==TRUE)?", ":""); + printf("%s警告(WARNING)",(options==TRUE)?", ":""); options=TRUE; } if(temp_se->escalate_on_unknown==TRUE){ - printf("%sUnknown",(options==TRUE)?", ":""); + printf("%s不明(UNKNOWN)",(options==TRUE)?", ":""); options=TRUE; } if(temp_se->escalate_on_critical==TRUE){ - printf("%sCritical",(options==TRUE)?", ":""); + printf("%s異常(CRITICAL)",(options==TRUE)?", ":""); options=TRUE; } if(temp_se->escalate_on_recovery==TRUE){ - printf("%sRecovery",(options==TRUE)?", ":""); + printf("%s復旧(RECOVERY)",(options==TRUE)?", ":""); options=TRUE; } if(options==FALSE) - printf("None"); + printf("無し"); printf("
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the host dependencies... */ @@ -1683,19 +1684,19 @@ printf("\n"); @@ -1728,20 +1729,20 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_HOSTESCALATIONS); - printf("

    Host Escalations

    \n"); + printf("

    ホストエスカレーション(上流方向への情報伝達)

    \n"); printf("

    \n"); printf("

    \n"); printf("
    Dependent HostMaster HostDependency TypeDependency Failure Options依存ホスト親ホスト依存タイプ依存失敗オプション
    ",bg_class); options=FALSE; if(temp_hd->fail_on_up==TRUE){ - printf("Up"); + printf("稼動(UP)"); options=TRUE; } if(temp_hd->fail_on_down==TRUE){ - printf("%sDown",(options==TRUE)?", ":""); + printf("%s停止(DOWN)",(options==TRUE)?", ":""); options=TRUE; } if(temp_hd->fail_on_unreachable==TRUE){ - printf("%sUnreachable",(options==TRUE)?", ":""); + printf("%s未到達(UNREACHABLE)",(options==TRUE)?", ":""); options=TRUE; } if(temp_hd->fail_on_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(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the host escalations... */ @@ -1774,14 +1775,14 @@ printf("\n"); printf("\n"); @@ -1796,19 +1797,19 @@ printf("\n"); printf("\n"); @@ -1836,21 +1837,21 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_HOSTEXTINFO); - printf("

    Extended Host Information

    \n"); + printf("

    ホスト情報

    \n"); printf("

    \n"); printf("

    \n"); printf("
    HostContact 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) - printf("Notify Only Once (No Re-notification)"); + printf("1回のみ(再通知無し)"); else printf("%d",temp_he->notification_interval); printf("",bg_class); options=FALSE; if(temp_he->escalate_on_down==TRUE){ - printf("%sDown",(options==TRUE)?", ":""); + printf("%s停止(DOWN)",(options==TRUE)?", ":""); options=TRUE; } if(temp_he->escalate_on_unreachable==TRUE){ - printf("%sUnreachable",(options==TRUE)?", ":""); + printf("%s未到達(UNREACHABLE)",(options==TRUE)?", ":""); options=TRUE; } if(temp_he->escalate_on_recovery==TRUE){ - printf("%sRecovery",(options==TRUE)?", ":""); + printf("%s復旧(RECOVERY)",(options==TRUE)?", ":""); options=TRUE; } if(options==FALSE) - printf("None"); + printf("無し"); printf("
    \n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the definitions... */ @@ -1923,7 +1924,7 @@ /* read in command definitions... */ read_all_object_configuration_data(main_config_file,READ_HOSTEXTINFO); - printf("

    Extended Service Information

    \n"); + printf("

    サービス情報

    \n"); printf("

    \n"); printf("

    \n"); @@ -1933,11 +1934,11 @@ printf("
    "); printf("\n"); printf("\n"); - printf(""); - printf(""); - printf(""); - printf(""); - printf(""); + printf(""); + printf(""); + printf(""); + printf(""); + printf(""); printf("\n"); /* check all the definitions... */ @@ -1982,9 +1983,8 @@ 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; } @@ -1996,7 +1996,7 @@ printf("

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

    \n"); @@ -2005,27 +2005,27 @@ printf("
    \n"); printf("
    HostNotes URL2-D Coords3-D CoordsStatusmap ImageVRML ImageLogo ImageImage Altホスト参考URL2-Dマップ3-Dマップステータスマップ画像VRML画像ロゴ画像画像の説明(ALT属性)
    Service
    HostDescriptionNotes URLLogo ImageImage Altホスト説明参考URLロゴ画像画像の説明(ALT属性)
    \n"); - printf("\n"); + printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("
    Object Type:
    オブジェクトタイプ:
    "); printf("\n"); printf("
    \n"); printf("
    \n"); diff -Nnaur cgi/extinfo.c.orig cgi/extinfo.c --- cgi/extinfo.c.orig Wed Nov 29 16:10:12 2006 +++ cgi/extinfo.c Wed Nov 29 15:16:02 2006 @@ -192,23 +192,23 @@ 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); @@ -249,47 +249,47 @@ printf("\n"); printf("\n"); printf("\n"); @@ -303,10 +303,10 @@ if(((display_type==DISPLAY_HOST_INFO || display_type==DISPLAY_SERVICE_INFO) && temp_host!=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); - 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) @@ -322,10 +322,10 @@ 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) @@ -336,18 +336,18 @@ } 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(display_type==DISPLAY_SERVICEGROUP_INFO){ - printf("
    Servicegroup
    \n"); + printf("
    【サービスグループ】
    \n"); printf("
    %s
    \n",temp_servicegroup->alias); printf("
    (%s)
    \n",temp_servicegroup->group_name); } @@ -395,16 +395,16 @@ printf("\n"); printf("Perform Additional Actions On This Host\n",url_images_path,ACTION_ICON); - printf("
    Extra Host Actions

    \n"); + printf("' TARGET='_blank'>このホストの追加アクションを見る\n",url_images_path,ACTION_ICON); + printf("
    追加アクション

    \n"); printf("\n"); } if(temp_hostextinfo->notes_url!=NULL && strcmp(temp_hostextinfo->notes_url,"")){ printf("\n"); printf("View Additional Notes For This Host\n",url_images_path,NOTES_ICON); - printf("
    Extra Host Notes

    \n"); + printf("' TARGET='_blank'>このホストの追加情報を見る\n",url_images_path,NOTES_ICON); + printf("
    追加情報

    \n"); printf("\n"); } printf("\n"); @@ -417,14 +417,14 @@ if(temp_serviceextinfo->action_url!=NULL && strcmp(temp_serviceextinfo->action_url,"")){ printf("Perform Additional Actions On This Service\n",url_images_path,ACTION_ICON); - printf("
    Extra Service Actions

    \n"); + printf("' TARGET='_blank'>このサービスの追加アクションを見る\n",url_images_path,ACTION_ICON); + printf("
    追加アクション

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

    \n"); + printf("' TARGET='_blank'>このサービスの情報を見る\n",url_images_path,NOTES_ICON); + printf("
    追加情報

    \n"); } printf("\n"); } @@ -516,7 +516,7 @@ printf("\n"); printf("\n"); printf("\n"); - printf("Extended Information\n"); + printf("情報\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -697,9 +697,8 @@ /* make sure the user has rights to view system information */ if(is_authorized_for_system_information(¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view process information...

    \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; } @@ -710,7 +709,7 @@ printf("\n"); printf("\n"); @@ -1574,16 +1571,15 @@ /* make sure the user has rights to view hostgroup information */ if(is_authorized_for_hostgroup(temp_hostgroup,¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view information for this hostgroup...

    \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; } /* make sure hostgroup information exists */ if(temp_hostgroup==NULL){ - printf("

    Error: Hostgroup Not Found!

    "); + printf("

    エラー: このホストグループは存在しません。

    "); return; } @@ -1599,7 +1595,7 @@ /* right top panel */ printf("
    \n"); - printf("
    Process Information
    \n"); + printf("
    プロセス情報
    \n"); printf("\n"); printf("\n",date_time); + printf("\n",date_time); /* total running time */ time(¤t_time); run_time=(unsigned long)(current_time-program_start); get_time_breakdown(run_time,&days,&hours,&minutes,&seconds); - sprintf(run_time_string,"%dd %dh %dm %ds",days,hours,minutes,seconds); - printf("\n",run_time_string); + sprintf(run_time_string,"%d日間と %d時間 %d分 %d秒",days,hours,minutes,seconds); + printf("\n",run_time_string); /* last external check */ get_time_string(&last_command_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(last_command_check==(time_t)0)?"N/A":date_time); + printf("\n",(last_command_check==(time_t)0)?"N/A":date_time); /* last log file rotation */ get_time_string(&last_log_rotation,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(last_log_rotation==(time_t)0)?"N/A":date_time); + printf("\n",(last_log_rotation==(time_t)0)?"N/A":date_time); /* PID */ - printf("\n",nagios_pid); + printf("\n",nagios_pid); /* notifications enabled */ - printf("\n",(enable_notifications==TRUE)?"ENABLED":"DISABLED",(enable_notifications==TRUE)?"YES":"NO"); + printf("\n",(enable_notifications==TRUE)?"ENABLED":"DISABLED",(enable_notifications==TRUE)?"有効":"無効"); /* service check execution enabled */ - printf("\n",(execute_service_checks==TRUE)?"ENABLED":"DISABLED",(execute_service_checks==TRUE)?"YES":"NO"); + printf("\n",(execute_service_checks==TRUE)?"ENABLED":"DISABLED",(execute_service_checks==TRUE)?"はい":"いいえ"); /* passive service check acceptance */ - printf("\n",(accept_passive_service_checks==TRUE)?"ENABLED":"DISABLED",(accept_passive_service_checks==TRUE)?"YES":"NO"); + printf("\n",(accept_passive_service_checks==TRUE)?"ENABLED":"DISABLED",(accept_passive_service_checks==TRUE)?"はい":"いいえ"); /* host check execution enabled */ - printf("\n",(execute_host_checks==TRUE)?"ENABLED":"DISABLED",(execute_host_checks==TRUE)?"YES":"NO"); + printf("\n",(execute_host_checks==TRUE)?"ENABLED":"DISABLED",(execute_host_checks==TRUE)?"はい":"いいえ"); /* passive host check acceptance */ - printf("\n",(accept_passive_host_checks==TRUE)?"ENABLED":"DISABLED",(accept_passive_host_checks==TRUE)?"YES":"NO"); + printf("\n",(accept_passive_host_checks==TRUE)?"ENABLED":"DISABLED",(accept_passive_host_checks==TRUE)?"はい":"いいえ"); /* event handlers enabled */ - printf("\n",(enable_event_handlers==TRUE)?"Yes":"No"); + printf("\n",(enable_event_handlers==TRUE)?"有効":"無効"); /* obsessing over services */ - printf("\n",(obsess_over_services==TRUE)?"Yes":"No"); + printf("\n",(obsess_over_services==TRUE)?"はい":"いいえ"); /* obsessing over hosts */ - printf("\n",(obsess_over_hosts==TRUE)?"Yes":"No"); + printf("\n",(obsess_over_hosts==TRUE)?"はい":"いいえ"); /* flap detection enabled */ - printf("\n",(enable_flap_detection==TRUE)?"Yes":"No"); + printf("\n",(enable_flap_detection==TRUE)?"有効":"無効"); #ifdef PREDICT_FAILURES /* failure prediction enabled */ - printf("\n",(enable_failure_prediction==TRUE)?"Yes":"No"); + printf("\n",(enable_failure_prediction==TRUE)?"有効":"無効"); #endif /* process performance data */ - printf("\n",(process_performance_data==TRUE)?"Yes":"No"); + printf("\n",(process_performance_data==TRUE)?"はい":"いいえ"); #ifdef USE_OLDCRUD /* daemon mode */ - printf("\n",(daemon_mode==TRUE)?"Yes":"No"); + printf("\n",(daemon_mode==TRUE)?"はい":"いいえ"); #endif printf("
    \n"); @@ -718,64 +717,64 @@ /* program start time */ get_time_string(&program_start,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("
    Program Start Time:%s
    プログラム起動時刻:%s
    Total Running Time:%s
    稼動時間:%s
    Last External Command Check:%s
    最終外部コマンドチェック:%s
    Last Log File Rotation:%s
    最終ログファイルローテーション:%s
    Nagios PID%d
    NagiosプロセスID(PID)%d
    Notifications Enabled?
      %s  
    通知の有効状態
      %s  
    Service Checks Being Executed?
      %s  
    サービスチェックの実行状態
      %s  
    Passive Service Checks Being Accepted?
      %s  
    パッシブサービスチェックの実行状態
      %s  
    Host Checks Being Executed?
      %s  
    ホストチェックの実行状態
      %s  
    Passive Host Checks Being Accepted?
      %s  
    パッシブホストチェックの実行状態
      %s  
    Event Handlers Enabled?%s
    イベントハンドラの有効状態%s
    Obsessing Over Services?%s
    Obsessing Overサービス%s
    Obsessing Over Hosts?%s
    Obsessing Overホスト%s
    Flap Detection Enabled?%s
    フラップ検知の有効状態%s
    Failure Prediction Enabled?%s
    予測機能の有効状態%s
    Performance Data Being Processed?%s
    パフォーマンスデータ処理の実行状態%s
    Running As A Daemon?%s
    デーモンの実行状態%s
    \n"); @@ -785,7 +784,7 @@ printf("
    \n"); - printf("
    Process Commands
    \n"); + printf("
    プロセスコマンド
    \n"); printf("\n"); printf("\n"); @@ -1097,17 +1095,17 @@ printf("\n"); @@ -1124,7 +1122,7 @@ printf("\n",bg_class,state_string,(temp_svcstatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":""); + printf("\n",bg_class,state_string,(temp_svcstatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":""); - printf("\n",(temp_svcstatus->plugin_output==NULL)?"":temp_svcstatus->plugin_output); + printf("\n",(temp_svcstatus->plugin_output==NULL)?"":temp_svcstatus->plugin_output); - printf("\n",(temp_svcstatus->perf_data==NULL)?"":temp_svcstatus->perf_data); + printf("\n",(temp_svcstatus->perf_data==NULL)?"":temp_svcstatus->perf_data); - printf("\n",temp_svcstatus->current_attempt,temp_svcstatus->max_attempts); + printf("\n",temp_svcstatus->current_attempt,temp_svcstatus->max_attempts); - printf("\n",(temp_svcstatus->state_type==HARD_STATE)?"HARD":"SOFT"); + printf("\n",(temp_svcstatus->state_type==HARD_STATE)?"ハード":"ソフト"); - printf("\n",(temp_svcstatus->check_type==SERVICE_CHECK_ACTIVE)?"ACTIVE":"PASSIVE"); + printf("\n",(temp_svcstatus->check_type==SERVICE_CHECK_ACTIVE)?"アクティブ":"パッシブ"); get_time_string(&temp_svcstatus->last_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",date_time); + printf("\n",date_time); current_time=time(NULL); t=0; @@ -1331,24 +1328,24 @@ else if(temp_svcstatus->last_check==(time_t)0) snprintf(status_age,sizeof(status_age)-1,"N/A"); else - snprintf(status_age,sizeof(status_age)-1,"%2dd %2dh %2dm %2ds",days,hours,minutes,seconds); + snprintf(status_age,sizeof(status_age)-1,"%2d日と%2d時間 %2d分 %2d秒",days,hours,minutes,seconds); status_age[sizeof(status_age)-1]='\x0'; - printf("\n",status_age); + printf("\n",status_age); get_time_string(&temp_svcstatus->next_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_svcstatus->checks_enabled && temp_svcstatus->next_check!=(time_t)0 && temp_svcstatus->should_be_scheduled==TRUE)?date_time:"N/A"); + printf("\n",(temp_svcstatus->checks_enabled && temp_svcstatus->next_check!=(time_t)0 && temp_svcstatus->should_be_scheduled==TRUE)?date_time:"N/A"); - printf("\n"); - printf("\n",temp_svcstatus->execution_time); + printf("\n",temp_svcstatus->execution_time); get_time_string(&temp_svcstatus->last_state_change,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_svcstatus->last_state_change==(time_t)0)?"N/A":date_time); + printf("\n",(temp_svcstatus->last_state_change==(time_t)0)?"N/A":date_time); t=0; duration_error=FALSE; @@ -1368,34 +1365,34 @@ if(duration_error==TRUE) snprintf(state_duration,sizeof(state_duration)-1,"???"); else - snprintf(state_duration,sizeof(state_duration)-1,"%2dd %2dh %2dm %2ds%s",days,hours,minutes,seconds,(temp_svcstatus->last_state_change==(time_t)0)?"+":""); + snprintf(state_duration,sizeof(state_duration)-1,"%2d日と%2d時間 %2d分 %2d秒%s",days,hours,minutes,seconds,(temp_svcstatus->last_state_change==(time_t)0)?"+":""); state_duration[sizeof(state_duration)-1]='\x0'; - printf("\n",state_duration); + printf("\n",state_duration); get_time_string(&temp_svcstatus->last_notification,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_svcstatus->last_notification==(time_t)0)?"N/A":date_time); + printf("\n",(temp_svcstatus->last_notification==(time_t)0)?"N/A":date_time); get_time_string(&temp_svcstatus->last_notification,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",temp_svcstatus->current_notification_number); + printf("\n",temp_svcstatus->current_notification_number); - printf("\n"); - printf("\n"); - printf("\n",(temp_svcstatus->scheduled_downtime_depth>0)?"ACTIVE":"INACTIVE",(temp_svcstatus->scheduled_downtime_depth>0)?"YES":"NO"); + printf("\n",(temp_svcstatus->scheduled_downtime_depth>0)?"ACTIVE":"INACTIVE",(temp_svcstatus->scheduled_downtime_depth>0)?"はい":"いいえ"); get_time_string(&temp_svcstatus->last_update,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_svcstatus->last_update==(time_t)0)?"N/A":date_time); + printf("\n",(temp_svcstatus->last_update==(time_t)0)?"N/A":date_time); printf("
    \n"); @@ -794,74 +793,74 @@ printf("\n"); #ifndef DUMMY_INSTALL - printf("\n",url_images_path,STOP_ICON,COMMAND_CGI,CMD_SHUTDOWN_PROCESS); - printf("\n",url_images_path,RESTART_ICON,COMMAND_CGI,CMD_RESTART_PROCESS); + printf("\n",url_images_path,STOP_ICON,COMMAND_CGI,CMD_SHUTDOWN_PROCESS); + printf("\n",url_images_path,RESTART_ICON,COMMAND_CGI,CMD_RESTART_PROCESS); #endif if(enable_notifications==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_NOTIFICATIONS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_NOTIFICATIONS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_NOTIFICATIONS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_NOTIFICATIONS); if(execute_service_checks==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_EXECUTING_SVC_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_EXECUTING_SVC_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_EXECUTING_SVC_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_EXECUTING_SVC_CHECKS); if(accept_passive_service_checks==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_ACCEPTING_PASSIVE_SVC_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_ACCEPTING_PASSIVE_SVC_CHECKS); if(execute_host_checks==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_EXECUTING_HOST_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_EXECUTING_HOST_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_EXECUTING_HOST_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_EXECUTING_HOST_CHECKS); if(accept_passive_host_checks==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_ACCEPTING_PASSIVE_HOST_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_ACCEPTING_PASSIVE_HOST_CHECKS); if(enable_event_handlers==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_EVENT_HANDLERS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_EVENT_HANDLERS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_EVENT_HANDLERS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_EVENT_HANDLERS); if(obsess_over_services==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_SVC_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_SVC_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_SVC_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_SVC_CHECKS); if(obsess_over_hosts==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_HOST_CHECKS); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_HOST_CHECKS); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_HOST_CHECKS); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_HOST_CHECKS); if(enable_flap_detection==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_FLAP_DETECTION); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_FLAP_DETECTION); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_FLAP_DETECTION); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_FLAP_DETECTION); #ifdef PREDICT_FAILURES if(enable_failure_prediction==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_FAILURE_PREDICTION); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_FAILURE_PREDICTION); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_FAILURE_PREDICTION); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_FAILURE_PREDICTION); #endif if(process_performance_data==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_PERFORMANCE_DATA); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_PERFORMANCE_DATA); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_PERFORMANCE_DATA); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_PERFORMANCE_DATA); printf("
    Shutdown the Nagios ProcessShutdown the Nagios process
    Restart the Nagios ProcessRestart the Nagios process
    Nagiosプロセスを停止Nagiosプロセスを停止
    Nagiosプロセスを再起動Nagiosプロセスを再起動
    Disable NotificationsDisable notifications
    通知を無効通知を無効
    Enable NotificationsEnable notifications
    通知を有効通知を有効
    Stop Executing Service ChecksStop executing service checks
    サービスチェックを停止サービスチェックを停止
    Start Executing Service ChecksStart executing service checks
    サービスチェックを開始サービスチェックを開始
    Stop Accepting Passive Service ChecksStop accepting passive service checks
    パッシブサービスチェックを停止パッシブサービスチェックを停止
    Start Accepting Passive Service ChecksStart accepting passive service checks
    パッシブサービスチェックを開始パッシブサービスチェックを開始
    Stop Executing Host ChecksStop executing host checks
    ホストチェックを停止ホストチェックを停止
    Start Executing Host ChecksStart executing host checks
    ホストチェックを開始ホストチェックを開始
    Stop Accepting Passive Host ChecksStop accepting passive host checks
    パッシブホストチェックを停止パッシブホストチェックを停止
    Start Accepting Passive Host ChecksStart accepting passive host checks
    パッシブホストチェックを開始パッシブホストチェックを開始
    Disable Event HandlersDisable event handlers
    イベントハンドラを無効イベントハンドラを無効
    Enable Event HandlersEnable event handlers
    イベントハンドラを有効イベントハンドラを有効
    Stop Obsessing Over ServicesStop obsessing over services
    Obsessing Overサービスを停止Obsessing Overサービスを停止
    Start Obsessing Over ServicesStart obsessing over services
    Obsessing Overサービスを開始Obsessing Overサービスを開始
    Stop Obsessing Over HostsStop obsessing over hosts
    Obsessing Overホストを停止Obsessing Overホストを停止
    Start Obsessing Over HostsStart obsessing over hosts
    Obsessing Overホストを開始Obsessing Overホストを開始
    Disable Flap DetectionDisable flap detection
    フラップ検知を無効フラップ検知を無効
    Enable Flap DetectionEnable flap detection
    フラップ検知を有効フラップ検知を有効
    Disable Failure PredictionDisable failure prediction
    予測機能を無効予測機能を無効
    Enable Failure PredictionEnable failure prediction
    予測機能を有効予測機能を有効
    Disable Performance DataDisable performance data
    パフォーマンスデータを無効パフォーマンスデータを無効
    Enable Performance DataEnable performance data
    パフォーマンスデータを有効パフォーマンスデータを有効
    \n"); } else{ - printf("
    It appears as though Nagios is not running, so commands are temporarily unavailable...\n"); + printf("
    Nagiosが動作していないため、コマンドは使えません。\n"); if(!strcmp(nagios_check_command,"")){ printf("

    \n"); - printf("Hint: It looks as though you have not defined a command for checking the process state by supplying a value for the nagios_check_command option in the CGI configuration file.
    \n"); - printf("Read the documentation for more information on checking the status of the Nagios process in the CGIs.\n"); + printf("ヒント:プロセス情報をチェックするコマンドが設定されてない可能性があります。CGI設定ファイル中のnagios_check_commandをチェックしてください。
    \n"); + printf("より詳しい情報はドキュメントを参照してください。
    \n"); } printf("
    \n"); } @@ -875,34 +874,34 @@ printf("

    "); printf("

    \n"); - printf("
    Process Status Information
    \n"); + printf("
    プロセスステータス情報<
    \n"); printf("\n"); printf("\n"); @@ -939,9 +938,8 @@ /* make sure the user has rights to view host information */ if(is_authorized_for_host(temp_host,¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view information for this host...

    \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; } @@ -951,11 +949,11 @@ /* make sure host information exists */ if(temp_host==NULL){ - printf("

    Error: Host Not Found!

    >"); + printf("

    エラー: ホストが見つかりません。

    >"); return; } if(temp_hoststatus==NULL){ - printf("

    Error: Host Status Information Not Found!
    エラー: ホスト情報が見つかりません。
    \n"); - printf("
    Host State Information
    \n"); + printf("
    ホスト情報
    \n"); if(temp_hoststatus->has_been_checked==FALSE) - printf("

    This host has not yet been checked, so status information is not available.

    \n"); + printf("

    このホストはまだチェックされてないため情報がありません。

    \n"); else{ @@ -981,32 +979,32 @@ printf("
    \n"); printf("\n"); if(nagios_process_state==STATE_OK){ - strcpy(state_string,"OK"); + strcpy(state_string,"正常(OK)"); state_class="processOK"; } else if(nagios_process_state==STATE_WARNING){ - strcpy(state_string,"WARNING"); + strcpy(state_string,"警告(WARNING)"); state_class="processWARNING"; } else if(nagios_process_state==STATE_CRITICAL){ - strcpy(state_string,"CRITICAL"); + strcpy(state_string,"異常(CRITICAL)"); state_class="processCRITICAL"; } else{ - strcpy(state_string,"UNKNOWN"); + strcpy(state_string,"不明(UNKNOWN)"); state_class="processUNKNOWN"; } /* process state */ - printf("\n",state_class,state_string); + printf("\n",state_class,state_string); /* process check command result */ - printf("\n",nagios_process_info); + printf("\n",nagios_process_info); printf("
    Process Status:
      %s  
    プロセスステータス:
      %s  
    Check Command Output: %s 
    チェックコマンド出力: %s 
    \n"); printf("
    \n"); if(temp_hoststatus->status==HOST_UP){ - strcpy(state_string,"UP"); + strcpy(state_string,"稼働(UP)"); bg_class="hostUP"; } else if(temp_hoststatus->status==HOST_DOWN){ - strcpy(state_string,"DOWN"); + strcpy(state_string,"停止(DOWN)"); bg_class="hostDOWN"; } else if(temp_hoststatus->status==HOST_UNREACHABLE){ - strcpy(state_string,"UNREACHABLE"); + strcpy(state_string,"未到達(UNREACHABLE)"); bg_class="hostUNREACHABLE"; } - printf("\n",bg_class,state_string,(temp_hoststatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":""); + printf("\n",bg_class,state_string,(temp_hoststatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":""); - printf("\n",(temp_hoststatus->plugin_output==NULL)?"":temp_hoststatus->plugin_output); + printf("\n",(temp_hoststatus->plugin_output==NULL)?"":temp_hoststatus->plugin_output); - printf("\n",(temp_hoststatus->perf_data==NULL)?"":temp_hoststatus->perf_data); + printf("\n",(temp_hoststatus->perf_data==NULL)?"":temp_hoststatus->perf_data); - printf("\n",temp_hoststatus->current_attempt,temp_hoststatus->max_attempts); + printf("\n",temp_hoststatus->current_attempt,temp_hoststatus->max_attempts); - printf("\n",(temp_hoststatus->state_type==HARD_STATE)?"HARD":"SOFT"); + printf("\n",(temp_hoststatus->state_type==HARD_STATE)?"ハード":"ソフト"); - printf("\n",(temp_hoststatus->check_type==HOST_CHECK_ACTIVE)?"ACTIVE":"PASSIVE"); + printf("\n",(temp_hoststatus->check_type==HOST_CHECK_ACTIVE)?"アクティブ":"パッシブ"); get_time_string(&temp_hoststatus->last_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",date_time); + printf("\n",date_time); current_time=time(NULL); t=0; @@ -1021,24 +1019,24 @@ else if(temp_hoststatus->last_check==(time_t)0) snprintf(status_age,sizeof(status_age)-1,"N/A"); else - snprintf(status_age,sizeof(status_age)-1,"%2dd %2dh %2dm %2ds",days,hours,minutes,seconds); + snprintf(status_age,sizeof(status_age)-1,"%2d日間 と%2d時間 %2d分 %2d秒",days,hours,minutes,seconds); status_age[sizeof(status_age)-1]='\x0'; - printf("\n",status_age); + printf("\n",status_age); get_time_string(&temp_hoststatus->next_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_hoststatus->checks_enabled && temp_hoststatus->next_check!=(time_t)0 && temp_hoststatus->should_be_scheduled==TRUE)?date_time:"N/A"); + printf("\n",(temp_hoststatus->checks_enabled && temp_hoststatus->next_check!=(time_t)0 && temp_hoststatus->should_be_scheduled==TRUE)?date_time:"N/A"); - printf("\n"); - printf("\n",temp_hoststatus->execution_time); + printf("\n",temp_hoststatus->execution_time); get_time_string(&temp_hoststatus->last_state_change,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_hoststatus->last_state_change==(time_t)0)?"N/A":date_time); + printf("\n",(temp_hoststatus->last_state_change==(time_t)0)?"N/A":date_time); t=0; duration_error=FALSE; @@ -1058,33 +1056,33 @@ if(duration_error==TRUE) snprintf(state_duration,sizeof(state_duration)-1,"???"); else - snprintf(state_duration,sizeof(state_duration)-1,"%2dd %2dh %2dm %2ds%s",days,hours,minutes,seconds,(temp_hoststatus->last_state_change==(time_t)0)?"+":""); + snprintf(state_duration,sizeof(state_duration)-1,"%2d日と%2d時間 %2d分 %2d秒%s",days,hours,minutes,seconds,(temp_hoststatus->last_state_change==(time_t)0)?"+":""); state_duration[sizeof(state_duration)-1]='\x0'; - printf("\n",state_duration); + printf("\n",state_duration); get_time_string(&temp_hoststatus->last_notification,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_hoststatus->last_notification==(time_t)0)?"N/A":date_time); + printf("\n",(temp_hoststatus->last_notification==(time_t)0)?"N/A":date_time); - printf("\n",temp_hoststatus->current_notification_number); + printf("\n",temp_hoststatus->current_notification_number); - printf("\n"); - printf("\n"); - printf("\n",(temp_hoststatus->scheduled_downtime_depth>0)?"ACTIVE":"INACTIVE",(temp_hoststatus->scheduled_downtime_depth>0)?"YES":"NO"); + printf("\n",(temp_hoststatus->scheduled_downtime_depth>0)?"ACTIVE":"INACTIVE",(temp_hoststatus->scheduled_downtime_depth>0)?"はい":"いいえ"); get_time_string(&temp_hoststatus->last_update,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); - printf("\n",(temp_hoststatus->last_update==(time_t)0)?"N/A":date_time); + printf("\n",(temp_hoststatus->last_update==(time_t)0)?"N/A":date_time); printf("
    Host Status:
      %s  %s  
    現在の状態:
      %s  %s  
    Status Information:%s
    ステータス情報:%s
    Performance Data:%s
    パフォーマンスデータ:%s
    Current Attempt:%d/%d
    現在の試行数:%d/%d
    State Type:%s
    ステータスタイプ:%s
    Last Check Type:%s
    最終チェックタイプ:%s
    Last Check Time:%s
    最終チェック時刻:%s
    Status Data Age:%s
    監視の経過時間:%s
    Next Scheduled Active Check:  %s
    次の生存チェック予定時刻:  %s
    Latency:"); + printf("
    遅延時間:"); if(temp_hoststatus->check_type==HOST_CHECK_ACTIVE) printf("%.3f seconds",temp_hoststatus->latency); else printf("N/A"); printf("
    Check Duration:%.3f seconds
    チェック経過時間:%.3f 秒
    Last State Change:%s
    最終ステータス変化時刻:%s
    Current State Duration:%s
    現状態の持続時間:%s
    Last Host Notification:%s
    最終ホスト通知時刻:%s
    Current Notification Number:  %d  
    現在の通知番号:  %d  
    Is This Host Flapping?"); + printf("
    フラッピングの実行状態"); if(temp_hoststatus->flap_detection_enabled==FALSE || enable_flap_detection==FALSE) printf("N/A"); else - printf("
      %s  
    ",(temp_hoststatus->is_flapping==TRUE)?"":"not",(temp_hoststatus->is_flapping==TRUE)?"YES":"NO"); + printf("
      %s  
    ",(temp_hoststatus->is_flapping==TRUE)?"":"not",(temp_hoststatus->is_flapping==TRUE)?"はい":"いいえ"); printf("
    Percent State Change:"); + printf("状態変化率:"); if(temp_hoststatus->flap_detection_enabled==FALSE || enable_flap_detection==FALSE) printf("N/A"); else printf("%3.2f%%",temp_hoststatus->percent_state_change); printf("
    In Scheduled Downtime?
      %s  
    ダウンタイムのスケジュール
      %s  
    Last Update:%s
    最終更新時刻:%s
    \n"); printf("
    \n"); printf("\n"); - printf("\n",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->checks_enabled==TRUE)?"有効":"無効"); - printf("\n",(temp_hoststatus->accept_passive_host_checks==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->accept_passive_host_checks)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->accept_passive_host_checks==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->accept_passive_host_checks)?"有効":"無効"); - printf("\n",(temp_hoststatus->obsess_over_host==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->obsess_over_host)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->obsess_over_host==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->obsess_over_host)?"有効":"無効"); - printf("\n",(temp_hoststatus->notifications_enabled)?"ENABLED":"DISABLED",(temp_hoststatus->notifications_enabled)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->notifications_enabled)?"ENABLED":"DISABLED",(temp_hoststatus->notifications_enabled)?"有効":"無効"); - printf("\n",(temp_hoststatus->event_handler_enabled)?"ENABLED":"DISABLED",(temp_hoststatus->event_handler_enabled)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->event_handler_enabled)?"ENABLED":"DISABLED",(temp_hoststatus->event_handler_enabled)?"有効":"無効"); - printf("\n",(temp_hoststatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED"); + printf("\n",(temp_hoststatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->flap_detection_enabled==TRUE)?"有効":"無効"); printf("
    Active Checks:
      %s  
    アクティブチェック:
      %s  
    Passive Checks:
      %s  
    パッシブチェック:
      %s  
    Obsessing:
      %s  
    Obsessing:
      %s  
    Notifications:
      %s  
    通知:
      %s  
    Event Handler:
      %s  
    イベントハンドラ:
      %s  
    Flap Detection:
      %s  
    フラップ検知:
      %s  
    \n"); printf("
    \n"); - printf("
    Host Commands
    \n"); + printf("
    ホストコマンド
    \n"); printf("
    \n"); @@ -1132,71 +1130,71 @@ printf("\n"); #ifdef USE_STATUSMAP - printf("\n",url_images_path,STATUSMAP_ICON,STATUSMAP_CGI,url_encode(host_name)); + printf("\n",url_images_path,STATUSMAP_ICON,STATUSMAP_CGI,url_encode(host_name)); #endif if(temp_hoststatus->checks_enabled==TRUE){ - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_CHECK,url_encode(host_name)); - printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_CHECK,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_CHECK,url_encode(host_name)); + printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_CHECK,url_encode(host_name)); } else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_CHECK,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_CHECK,url_encode(host_name)); if(temp_hoststatus->accept_passive_host_checks==TRUE){ - printf("\n",url_images_path,PASSIVE_ICON,COMMAND_CGI,CMD_PROCESS_HOST_CHECK_RESULT,url_encode(host_name)); - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_PASSIVE_HOST_CHECKS,url_encode(host_name)); + printf("\n",url_images_path,PASSIVE_ICON,COMMAND_CGI,CMD_PROCESS_HOST_CHECK_RESULT,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_PASSIVE_HOST_CHECKS,url_encode(host_name)); } else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_PASSIVE_HOST_CHECKS,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_PASSIVE_HOST_CHECKS,url_encode(host_name)); if(temp_hoststatus->obsess_over_host==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_HOST,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_STOP_OBSESSING_OVER_HOST,url_encode(host_name)); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_HOST,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_START_OBSESSING_OVER_HOST,url_encode(host_name)); if(temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE){ if(temp_hoststatus->problem_has_been_acknowledged==FALSE) - printf("\n",url_images_path,ACKNOWLEDGEMENT_ICON,COMMAND_CGI,CMD_ACKNOWLEDGE_HOST_PROBLEM,url_encode(host_name)); + printf("\n",url_images_path,ACKNOWLEDGEMENT_ICON,COMMAND_CGI,CMD_ACKNOWLEDGE_HOST_PROBLEM,url_encode(host_name)); else - printf("\n",url_images_path,REMOVE_ACKNOWLEDGEMENT_ICON,COMMAND_CGI,CMD_REMOVE_HOST_ACKNOWLEDGEMENT,url_encode(host_name)); + printf("\n",url_images_path,REMOVE_ACKNOWLEDGEMENT_ICON,COMMAND_CGI,CMD_REMOVE_HOST_ACKNOWLEDGEMENT,url_encode(host_name)); } if(temp_hoststatus->notifications_enabled==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_NOTIFICATIONS,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_NOTIFICATIONS,url_encode(host_name)); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_NOTIFICATIONS,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_NOTIFICATIONS,url_encode(host_name)); if(temp_hoststatus->status!=HOST_UP) - printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_DELAY_HOST_NOTIFICATION,url_encode(host_name)); + printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_DELAY_HOST_NOTIFICATION,url_encode(host_name)); - printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_DOWNTIME,url_encode(host_name)); + printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_DOWNTIME,url_encode(host_name)); /* printf("\n",url_images_path,SCHEDULED_DOWNTIME_ICON,COMMAND_CGI,CMD_CANCEL_HOST_DOWNTIME,url_encode(host_name)); */ - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_SVC_NOTIFICATIONS,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_SVC_NOTIFICATIONS,url_encode(host_name)); - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_SVC_NOTIFICATIONS,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_SVC_NOTIFICATIONS,url_encode(host_name)); - printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_SVC_CHECKS,url_encode(host_name)); + printf("\n",url_images_path,DELAY_ICON,COMMAND_CGI,CMD_SCHEDULE_HOST_SVC_CHECKS,url_encode(host_name)); - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_SVC_CHECKS,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_SVC_CHECKS,url_encode(host_name)); - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_SVC_CHECKS,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_SVC_CHECKS,url_encode(host_name)); if(temp_hoststatus->event_handler_enabled==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_EVENT_HANDLER,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_EVENT_HANDLER,url_encode(host_name)); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_EVENT_HANDLER,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_EVENT_HANDLER,url_encode(host_name)); if(temp_hoststatus->flap_detection_enabled==TRUE) - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_FLAP_DETECTION,url_encode(host_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOST_FLAP_DETECTION,url_encode(host_name)); else - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_FLAP_DETECTION,url_encode(host_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOST_FLAP_DETECTION,url_encode(host_name)); printf("
    Locate Host On MapLocate host on map
    マップ上のホストの位置を確認マップ上のホストの位置を確認
    Disable Active Checks Of This HostDisable active checks of this host
    Re-schedule Next Host CheckRe-schedule the next check of this host
    このホストの動作チェックを無効このホストの動作チェックを無効
    このホストを次回スケジュールに追加このホストを次回スケジュールに追加
    Enable Active Checks Of This HostEnable active checks of this host
    このホストの動作チェックを有効このホストの動作チェックを有効
    Submit Passive Check Result For This HostSubmit passive check result for this host
    Stop Accepting Passive Checks For This HostStop accepting passive checks for this host
    このホストのパッシブチェックの結果を送信このホストのパッシブチェックの結果を送信
    このホストのパッシブチェックを停止このホストのパッシブチェックを停止
    Start Accepting Passive Checks For This HostStart accepting passive checks for this host
    このホストのパッシブチェックを開始このホストのパッシブチェックを開始
    Stop Obsessing Over This HostStop obsessing over this host
    このホストのObsessing Overを停止このホストのObsessing Overを停止
    Start Obsessing Over This HostStart obsessing over this host
    このホストのObsessing Overを開始このホストのObsessing Overを開始
    Acknowledge This Host ProblemAcknowledge this host problem
    認知済認知済
    Remove Problem AcknowledgementRemove problem acknowledgement
    認知済を解除認知済を解除
    Disable Notifications For This HostDisable notifications for this host
    このホストの通知を無効このホストの通知を無効
    Enable Notifications For This HostEnable notifications for this host
    このホストの通知を有効このホストの通知を有効
    Delay Next Host NotificationDelay next host notification
    次のホスト通知を遅らせる次のホスト通知を遅らせる
    Schedule Downtime For This HostSchedule downtime for this host
    このホストのダウンタイムをスケジュールこのホストのダウンタイムをスケジュール
    Cancel Scheduled Downtime For This HostCancel scheduled downtime for this host
    Disable Notifications For All Services On This HostDisable notifications for all services on this host
    このホストの全サービスの通知を無効このホストの全サービスの通知を無効
    Enable Notifications For All Services On This HostEnable notifications for all services on this host
    このホストの全サービスの通知を有効このホストの全サービスの通知を有効
    Schedule A Check Of All Services On This HostSchedule a check of all services on this host
    このホストの全サービスのチェックをスケジュールこのホストの全サービスのチェックをスケジュール
    Disable Checks Of All Services On This HostDisable checks of all services on this host
    このホストの全サービスのチェックを無効このホストの全サービスのチェックを無効
    Enable Checks Of All Services On This HostEnable checks of all services on this host
    このホストの全サービスのチェックを有効このホストの全サービスのチェックを有効
    Disable Event Handler For This HostDisable event handler for this host
    このホストのイベントハンドラを無効このホストのイベントハンドラを無効
    Enable Event Handler For This HostEnable event handler for this host
    このホストのイベントハンドラを有効このホストのイベントハンドラを有効
    Disable Flap Detection For This HostDisable flap detection for this host
    このホストのフラップ検知を無効このホストのフラップ検知を無効
    Enable Flap Detection For This HostEnable flap detection for this host
    このホストのフラップ検知を有効このホストのフラップ検知を有効
    \n"); } else{ - printf("
    It appears as though Nagios is not running, so commands are temporarily unavailable...
    \n"); - printf("Click here to view Nagios process information
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); + printf("
    Nagiosが動作していないため、コマンドは使えません。
    \n"); + printf("ここをクリックしてNagiosプロセス情報を確認してください。
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); } printf("
    \n"); @@ -1244,9 +1242,8 @@ /* make sure the user has rights to view service information */ if(is_authorized_for_service(temp_service,¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view information for this service...

    \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; } @@ -1256,11 +1253,11 @@ /* make sure service information exists */ if(temp_service==NULL){ - printf("

    Error: Service Not Found!

    "); + printf("

    エラー: サービスが見つかりません。

    "); return; } if(temp_svcstatus==NULL){ - printf("

    Error: Service Status Not Found!

    "); + printf("

    エラー: サービスステータスが見つかりません。

    "); return; } @@ -1274,7 +1271,7 @@ printf("
    Service State Information
    \n"); if(temp_svcstatus->has_been_checked==FALSE) - printf("

    This service has not yet been checked, so status information is not available.

    \n"); + printf("

    このサービスはまだチェックされていないのでステータス情報と統計結果はまだありません。

    \n"); else{ @@ -1288,35 +1285,35 @@ if(temp_svcstatus->status==SERVICE_OK){ - strcpy(state_string,"OK"); + strcpy(state_string,"正常(OK)"); bg_class="serviceOK"; } else if(temp_svcstatus->status==SERVICE_WARNING){ - strcpy(state_string,"WARNING"); + strcpy(state_string,"警告(WARNING)"); bg_class="serviceWARNING"; } else if(temp_svcstatus->status==SERVICE_CRITICAL){ - strcpy(state_string,"CRITICAL"); + strcpy(state_string,"異常(CRITICAL)"); bg_class="serviceCRITICAL"; } else{ - strcpy(state_string,"UNKNOWN"); + strcpy(state_string,"不明(UNKNOWN)"); bg_class="serviceUNKNOWN"; } - printf("
    Current Status:
      %s  %s  
    現在の状態:
      %s  %s  
    Status Information:%s
    ステータス情報:%s
    Performance Data:%s
    パフォーマンスデータ:%s
    Current Attempt:%d/%d
    現在の試行数:%d/%d
    State Type:%s
    ステータスタイプ:%s
    Last Check Type:%s
    最終チェックタイプ:%s
    Last Check Time:%s
    最終チェック時刻:%s
    Status Data Age:%s
    監視の経過時間:%s
    Next Scheduled Active Check:  %s
    次の生存チェック予定時刻:  %s
    Latency:"); + printf("
    遅延時間:"); if(temp_svcstatus->check_type==SERVICE_CHECK_ACTIVE) printf("%.3f seconds",temp_svcstatus->latency); else printf("N/A"); printf("
    Check Duration:%.3f seconds
    チェック経過時間:%.3f seconds
    Last State Change:%s
    最終ステータス変化時刻:%s
    Current State Duration:%s
    現状態の持続時間:%s
    Last Service Notification:%s
    最終サービス通知時刻:%s
    Current Notification Number:%d
    現在の通知番号:%d
    Is This Service Flapping?"); + printf("
    フラッピングの実行状態:"); if(temp_svcstatus->flap_detection_enabled==FALSE || enable_flap_detection==FALSE) printf("N/A"); else - printf("
      %s  
    ",(temp_svcstatus->is_flapping==TRUE)?"":"not",(temp_svcstatus->is_flapping==TRUE)?"YES":"NO"); + printf("
      %s  
    ",(temp_svcstatus->is_flapping==TRUE)?"":"not",(temp_svcstatus->is_flapping==TRUE)?"はい":"いいえ"); printf("
    Percent State Change:"); + printf("
    状態変化率:"); if(temp_svcstatus->flap_detection_enabled==FALSE || enable_flap_detection==FALSE) printf("N/A"); else printf("%3.2f%%",temp_svcstatus->percent_state_change); printf("
    In Scheduled Downtime?
      %s  
    ダウンタイムのスケジュール
      %s  
    Last Update:%s
    最終更新時刻:%s
    \n"); @@ -1409,17 +1406,17 @@ printf("
    \n"); printf("\n"); - printf("\n",(temp_svcstatus->checks_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->checks_enabled)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->checks_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->checks_enabled)?"有効":"無効"); - printf("\n",(temp_svcstatus->accept_passive_service_checks==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->accept_passive_service_checks)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->accept_passive_service_checks==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->accept_passive_service_checks)?"有効":"無効"); - printf("\n",(temp_svcstatus->obsess_over_service==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->obsess_over_service)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->obsess_over_service==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->obsess_over_service)?"有効":"無効"); - printf("\n",(temp_svcstatus->notifications_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->notifications_enabled)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->notifications_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->notifications_enabled)?"有効":"無効"); - printf("\n",(temp_svcstatus->event_handler_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->event_handler_enabled)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->event_handler_enabled)?"ENABLED":"DISABLED",(temp_svcstatus->event_handler_enabled)?"有効":"無効"); - printf("\n",(temp_svcstatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED"); + printf("\n",(temp_svcstatus->flap_detection_enabled==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->flap_detection_enabled==TRUE)?"有効":"無効"); printf("
    Active Checks:
      %s  
    アクティブチェック:
      %s  
    Passive Checks:
      %s  
    パッシブチェック:
      %s  
    Obsessing:
      %s  
    Obsessing:
      %s  
    Notifications:
      %s  
    通知:
      %s  
    Event Handler:
      %s  
    イベントハンドラ:
      %s  
    Flap Detection:
      %s  
    フラップ検知:
      %s  
    \n"); @@ -1438,7 +1435,7 @@ printf("
    \n"); - printf("
    Service Commands
    \n"); + printf("
    サービスコマンド
    \n"); printf("\n"); printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } if(temp_svcstatus->accept_passive_service_checks==TRUE){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } if(temp_svcstatus->obsess_over_service==TRUE){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } if((temp_svcstatus->status==SERVICE_WARNING || temp_svcstatus->status==SERVICE_UNKNOWN || temp_svcstatus->status==SERVICE_CRITICAL) && temp_svcstatus->state_type==HARD_STATE){ if(temp_svcstatus->problem_has_been_acknowledged==FALSE){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } } if(temp_svcstatus->notifications_enabled==TRUE){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); if(temp_svcstatus->status!=SERVICE_OK){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); /* printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } if(temp_svcstatus->flap_detection_enabled==TRUE){ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } else{ - printf("\n",url_encode(service_desc)); + printf("\n",url_encode(service_desc)); } printf("
    \n"); @@ -1448,63 +1445,63 @@ if(temp_svcstatus->checks_enabled){ - printf("
    Disable Active Checks Of This ServiceDisable active checks of this service
    このサービスの動作チェックを無効このサービスの動作チェックを無効
    Re-schedule Next Service CheckRe-schedule the next check of this service
    このサービスの動作チェックを次回スケジュールに追加このサービスの動作チェックを次回スケジュールに追加
    Enable Active Checks Of This ServiceEnable active checks of this service
    このサービスの動作チェックを有効このサービスの動作チェックを有効
    Submit Passive Check Result For This ServiceSubmit passive check result for this service
    このサービスのパッシブチェックの結果を送信このサービスのパッシブチェックの結果を送信
    Stop Accepting Passive Checks For This ServiceStop accepting passive checks for this service
    このサービスのパッシブチェックを停止このサービスのパッシブチェックを停止
    Start Accepting Passive Checks For This ServiceStart accepting passive checks for this service
    このサービスのパッシブチェックを開始このサービスのパッシブチェックを開始
    Stop Obsessing Over This ServiceStop obsessing over this service
    このサービスのObsessing Overを停止このサービスのObsessing Overを停止
    Start Obsessing Over This ServiceStart obsessing over this service
    このサービスのObsessing Overを開始このサービスのObsessing Overを開始
    Acknowledge This Service ProblemAcknowledge this service problem
    認知済この問題を認知済にする
    Remove Problem AcknowledgementRemove problem acknowledgement
    認知済を解除認知済を解除
    Disable Notifications For This ServiceDisable notifications for this service
    このサービスの通知を無効このサービスの通知を無効
    Delay Next Service NotificationDelay next service notification
    次のサービス通知を遅らせる次のサービス通知を遅らせる
    Enable Notifications For This ServiceEnable notifications for this service
    このサービスの通知を有効このサービスの通知を有効
    Schedule Downtime For This ServiceSchedule downtime for this service
    このサービスのダウンタイムをスケジュールこのサービスのダウンタイムをスケジュール
    Cancel Scheduled Downtime For This ServiceDisable Event Handler For This ServiceDisable event handler for this service
    このサービスのイベントハンドラを無効このサービスのイベントハンドラを無効
    Enable Event Handler For This ServiceEnable event handler for this service
    このホストのイベントハンドラを有効このホストのイベントハンドラを有効
    Disable Flap Detection For This ServiceDisable flap detection for this service
    このホストのフラップ検知を無効このホストのフラップ検知を無効
    Enable Flap Detection For This ServiceEnable flap detection for this service
    このホストのフラップ検知を有効このホストのフラップ検知を有効
    \n"); } else{ - printf("
    It appears as though Nagios is not running, so commands are temporarily unavailable...
    \n"); - printf("Click here to view Nagios process information
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); + printf("
    Nagiosが動作していないため、コマンドは使えません。
    \n"); + printf("ここをクリックしてNagiosプロセス情報を確認してください。
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); } printf("
    \n"); - printf("
    Hostgroup Commands
    \n"); + printf("
    ホストグループコマンド
    \n"); if(nagios_process_state==STATE_OK){ @@ -1608,21 +1604,21 @@ printf("\n"); - printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME,url_encode(hostgroup_name)); + printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOSTGROUP_HOST_DOWNTIME,url_encode(hostgroup_name)); - printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME,url_encode(hostgroup_name)); + printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_HOSTGROUP_SVC_DOWNTIME,url_encode(hostgroup_name)); - printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS,url_encode(hostgroup_name)); + printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_HOST_NOTIFICATIONS,url_encode(hostgroup_name)); - printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS,url_encode(hostgroup_name)); + printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_HOST_NOTIFICATIONS,url_encode(hostgroup_name)); - printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS,url_encode(hostgroup_name)); + printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_SVC_NOTIFICATIONS,url_encode(hostgroup_name)); - printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS,url_encode(hostgroup_name)); + printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_SVC_NOTIFICATIONS,url_encode(hostgroup_name)); - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_SVC_CHECKS,url_encode(hostgroup_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_HOSTGROUP_SVC_CHECKS,url_encode(hostgroup_name)); - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_SVC_CHECKS,url_encode(hostgroup_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_HOSTGROUP_SVC_CHECKS,url_encode(hostgroup_name)); printf("
    Schedule Downtime For All Hosts In This HostgroupSchedule downtime for all hosts in this hostgroup
    このホストグループ上全ホストのダウンタイムをスケジュールこのホストグループ上全ホストのダウンタイムをスケジュール
    Schedule Downtime For All Services In This HostgroupSchedule downtime for all services in this hostgroup
    このホストグループ上全サービスのダウンタイムをスケジュールこのホストグループ上全サービスのダウンタイムをスケジュール
    Enable Notifications For All Hosts In This HostgroupEnable notifications for all hosts in this hostgroup
    このホストグループ上の全ホストの通知を有効このホストグループ上の全ホストの通知を有効
    Disable Notifications For All Hosts In This HostgroupDisable notifications for all hosts in this hostgroup
    このホストグループ上の全ホストの通知を無効このホストグループ上の全ホストの通知を無効
    Enable Notifications For All Services In This HostgroupEnable notifications for all services in this hostgroup
    このホストグループ上の全サービスの通知を有効このホストグループ上の全サービスの通知を有効
    Disable Notifications For All Services In This HostgroupDisable notifications for all services in this hostgroup
    このホストグループ上の全サービスの通知を無効このホストグループ上の全サービスの通知を無効
    Enable Active Checks Of All Services In This HostgroupEnable active checks of all services in this hostgroup
    このホストグループ上の全サービスのチェックを有効このホストグループ上の全サービスのチェックを有効
    Disable Active Checks Of All Services In This HostgroupDisable active checks of all services in this hostgroup
    このホストグループ上の全サービスのチェックを無効このホストグループ上の全サービスのチェックを無効
    \n"); @@ -1630,8 +1626,8 @@ printf("
    \n"); } else{ - printf("
    It appears as though Nagios is not running, so commands are temporarily unavailable...
    \n"); - printf("Click here to view Nagios process information
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); + printf("
    Nagiosが動作していないため、コマンドは使えません。
    \n"); + printf("ここをクリックしてNagiosプロセス情報を確認してください。
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); } printf("\n"); @@ -1667,16 +1663,15 @@ /* make sure the user has rights to view servicegroup information */ if(is_authorized_for_servicegroup(temp_servicegroup,¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view information for this servicegroup...

    \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; } /* make sure servicegroup information exists */ if(temp_servicegroup==NULL){ - printf("

    Error: Servicegroup Not Found!

    "); + printf("

    エラー: このサービスグループは存在しません。

    "); return; } @@ -1692,7 +1687,7 @@ /* right top panel */ printf("\n"); - printf("
    Servicegroup Commands
    \n"); + printf("
    サービスグループコマンド
    \n"); if(nagios_process_state==STATE_OK){ @@ -1701,21 +1696,21 @@ printf("\n"); - printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME,url_encode(servicegroup_name)); + printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_SERVICEGROUP_HOST_DOWNTIME,url_encode(servicegroup_name)); - printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME,url_encode(servicegroup_name)); + printf("\n",url_images_path,DOWNTIME_ICON,COMMAND_CGI,CMD_SCHEDULE_SERVICEGROUP_SVC_DOWNTIME,url_encode(servicegroup_name)); - printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS,url_encode(servicegroup_name)); + printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS,url_encode(servicegroup_name)); - printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS,url_encode(servicegroup_name)); + printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS,url_encode(servicegroup_name)); - printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS,url_encode(servicegroup_name)); + printf("\n",url_images_path,NOTIFICATION_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS,url_encode(servicegroup_name)); - printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS,url_encode(servicegroup_name)); + printf("\n",url_images_path,NOTIFICATIONS_DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS,url_encode(servicegroup_name)); - printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_SVC_CHECKS,url_encode(servicegroup_name)); + printf("\n",url_images_path,ENABLED_ICON,COMMAND_CGI,CMD_ENABLE_SERVICEGROUP_SVC_CHECKS,url_encode(servicegroup_name)); - printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_SVC_CHECKS,url_encode(servicegroup_name)); + printf("\n",url_images_path,DISABLED_ICON,COMMAND_CGI,CMD_DISABLE_SERVICEGROUP_SVC_CHECKS,url_encode(servicegroup_name)); printf("
    Schedule Downtime For All Hosts In This ServicegroupSchedule downtime for all hosts in this servicegroup
    このサービスグループ上全ホストのダウンタイムをスケジュールこのサービスグループ上全ホストのダウンタイムをスケジュール
    Schedule Downtime For All Services In This ServicegroupSchedule downtime for all services in this servicegroup
    このサービスグループ上全サービスのダウンタイムをスケジュールこのサービスグループ上全サービスのダウンタイムをスケジュール
    Enable Notifications For All Hosts In This ServicegroupEnable notifications for all hosts in this servicegroup
    このサービスグループ上の全ホストの通知を有効このサービスグループ上の全ホストの通知を有効
    Disable Notifications For All Hosts In This ServicegroupDisable notifications for all hosts in this servicegroup
    このサービスグループ上の全ホストの通知を無効このサービスグループ上の全ホストの通知を無効
    Enable Notifications For All Services In This ServicegroupEnable notifications for all services in this servicegroup
    このサービスグループ上の全サービスの通知を有効このサービスグループ上の全サービスの通知を有効
    Disable Notifications For All Services In This ServicegroupDisable notifications for all services in this servicegroup
    このサービスグループ上の全サービスの通知を無効このサービスグループ上の全サービスの通知を無効
    Enable Active Checks Of All Services In This ServicegroupEnable active checks of all services in this servicegroup
    このサービスグループ上の全サービスのチェックを有効このサービスグループ上の全サービスのチェックを有効
    Disable Active Checks Of All Services In This ServicegroupDisable active checks of all services in this servicegroup
    このサービスグループ上の全サービスのチェックを無効このサービスグループ上の全サービスのチェックを無効
    \n"); @@ -1723,8 +1718,8 @@ printf("\n"); } else{ - printf("
    It appears as though Nagios is not running, so commands are temporarily unavailable...
    \n"); - printf("Click here to view Nagios process information
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); + printf("
    Nagiosが動作していないため、コマンドは使えません。
    \n"); + printf("ここをクリックしてNagiosプロセス情報を確認してください。
    \n",EXTINFO_CGI,DISPLAY_PROCESS_INFO); } printf("\n"); @@ -1769,16 +1764,16 @@ printf("

    \n"); printf("\n"); - printf("
    Host Comments
    \n"); + printf("
    ホストコメント
    \n"); printf("\n"); + printf("新規コメント追加
    \n"); printf("

    \n"); printf("

    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* display all the host comments */ for(temp_comment=comment_list,total_comments=0;temp_comment!=NULL;temp_comment=temp_comment->next){ @@ -1824,13 +1819,13 @@ get_time_string(&temp_comment->expire_time,expire_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("",bg_class); printf("",bg_class,EXTINFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_comment->host_name),temp_comment->host_name); - printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"Yes":"No",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); - printf("",COMMAND_CGI,CMD_DEL_HOST_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); + printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"はい":"いいえ",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); + printf("",COMMAND_CGI,CMD_DEL_HOST_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); printf("\n"); } if(total_comments==0) - printf(""); + printf(""); printf("\n"); printf("
    Host NameEntry TimeAuthorCommentComment IDPersistentTypeExpiresActions
    ホスト名記入日記入者コメントコメントID保持設定種類期限アクション
    %s%s%s%s%ld%s%s%sDelete This Comment%s%s%s%ld%s%s%sこのコメントを削除する
    There are no host comments
    ホストのコメントはありません。
    \n"); @@ -1839,16 +1834,16 @@ printf("\n"); - printf("
    Service Comments
    \n"); + printf("
    サービスコメント
    \n"); printf("\n"); + printf("新規コメント追加
    \n"); printf("

    \n"); printf("

    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* display all the service comments */ for(temp_comment=comment_list,total_comments=0;temp_comment!=NULL;temp_comment=temp_comment->next){ @@ -1896,13 +1891,13 @@ printf("",bg_class,EXTINFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_comment->host_name),temp_comment->host_name); printf("",url_encode(temp_comment->service_description),temp_comment->service_description); - printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"Yes":"No",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); - printf("",COMMAND_CGI,CMD_DEL_SVC_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); + printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"はい":"いいえ",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); + printf("",COMMAND_CGI,CMD_DEL_SVC_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); printf("\n"); } if(total_comments==0) - printf(""); + printf(""); printf("\n"); printf("
    Host NameServiceEntry TimeAuthorCommentComment IDPersistentTypeExpiresActions
    ホスト名サービス名記入日記入者コメントコメントID保持設定種類期限アクション
    %s%s%s%s%s%ld%s%s%sDelete This Comment%s%s%s%ld%s%s%sこのコメントを削除する
    There are no service comments
    サービスのコメントはありません。
    \n"); @@ -2168,7 +2163,7 @@ printf("
    \n"); - printf("
    Program-Wide Performance Information
    \n"); + printf("
    監視のパフォーマンス情報
    \n"); printf("\n"); @@ -2176,7 +2171,7 @@ /***** ACTIVE SERVICE CHECKS *****/ printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); @@ -2204,13 +2199,13 @@ printf("\n"); @@ -2224,7 +2219,7 @@ /***** PASSIVE SERVICE CHECKS *****/ printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); @@ -2253,8 +2248,8 @@ printf("\n"); @@ -2267,7 +2262,7 @@ /***** ACTIVE HOST CHECKS *****/ printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); @@ -2295,13 +2290,13 @@ printf("\n"); @@ -2315,7 +2310,7 @@ /***** PASSIVE HOST CHECKS *****/ printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); @@ -2344,8 +2339,8 @@ printf("\n"); @@ -2392,7 +2387,7 @@ printf("\n"); - printf("
    %s Comments
    \n",(type==HOST_COMMENT)?"Host":"Service"); + printf("
    %sコメント
    \n",(type==HOST_COMMENT)?"ホスト":"サービス"); printf("
    Active Service Checks:
    アクティブチェック:
    \n"); /* fake this so we don't divide by zero for just showing the table */ @@ -2187,12 +2182,12 @@ printf("
    \n"); printf("\n"); - printf("\n"); - printf("",active_service_checks_1min,(double)(((double)active_service_checks_1min*100.0)/(double)total_active_service_checks)); - printf("",active_service_checks_5min,(double)(((double)active_service_checks_5min*100.0)/(double)total_active_service_checks)); - printf("",active_service_checks_15min,(double)(((double)active_service_checks_15min*100.0)/(double)total_active_service_checks)); - printf("",active_service_checks_1hour,(double)(((double)active_service_checks_1hour*100.0)/(double)total_active_service_checks)); - printf("",active_service_checks_start,(double)(((double)active_service_checks_start*100.0)/(double)total_active_service_checks)); + printf("\n"); + printf("",active_service_checks_1min,(double)(((double)active_service_checks_1min*100.0)/(double)total_active_service_checks)); + printf("",active_service_checks_5min,(double)(((double)active_service_checks_5min*100.0)/(double)total_active_service_checks)); + printf("",active_service_checks_15min,(double)(((double)active_service_checks_15min*100.0)/(double)total_active_service_checks)); + printf("",active_service_checks_1hour,(double)(((double)active_service_checks_1hour*100.0)/(double)total_active_service_checks)); + printf("",active_service_checks_start,(double)(((double)active_service_checks_start*100.0)/(double)total_active_service_checks)); printf("
    Time FrameChecks Completed
    <= 1 minute:%d (%.1f%%)
    <= 5 minutes:%d (%.1f%%)
    <= 15 minutes:%d (%.1f%%)
    <= 1 hour:%d (%.1f%%)
    Since program start:  %d (%.1f%%)
    時間枠完了したチェック
    <= 1分(以前):%d (%.1f%%)
    <= 5分(以前):%d (%.1f%%)
    <= 15分(以前):%d (%.1f%%)
    <= 1時間(以前):%d (%.1f%%)
    プログラム開始以来:  %d (%.1f%%)
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); - printf("\n",min_service_execution_time,max_service_execution_time,(double)((double)total_service_execution_time/(double)total_active_service_checks)); + printf("\n",min_service_execution_time,max_service_execution_time,(double)((double)total_service_execution_time/(double)total_active_service_checks)); - printf("\n",min_service_latency,max_service_latency,(double)((double)total_service_latency/(double)total_active_service_checks)); + printf("\n",min_service_latency,max_service_latency,(double)((double)total_service_latency/(double)total_active_service_checks)); - printf("\n",min_service_percent_change_a,max_service_percent_change_a,(double)((double)total_service_percent_change_a/(double)total_active_service_checks)); + printf("\n",min_service_percent_change_a,max_service_percent_change_a,(double)((double)total_service_percent_change_a/(double)total_active_service_checks)); printf("
    MetricMin.Max.Average
    メトリック最小最大平均
    Check Execution Time:  %.2f sec%.2f sec%.3f sec
    チェック実行時間:  %.2f 秒%.2f 秒%.3f 秒
    Check Latency:%.2f sec%.2f sec%.3f sec
    チェック遅延:%.2f 秒%.2f 秒%.3f 秒
    Percent State Change:%.2f%%%.2f%%%.2f%%
    状態変化率:%.2f%%%.2f%%%.2f%%
    \n"); printf("
    Passive Service Checks:
    パッシブチェック:
    \n"); @@ -2236,12 +2231,12 @@ printf("
    \n"); printf("\n"); - printf("\n"); - printf("",passive_service_checks_1min,(double)(((double)passive_service_checks_1min*100.0)/(double)total_passive_service_checks)); - printf("",passive_service_checks_5min,(double)(((double)passive_service_checks_5min*100.0)/(double)total_passive_service_checks)); - printf("",passive_service_checks_15min,(double)(((double)passive_service_checks_15min*100.0)/(double)total_passive_service_checks)); - printf("",passive_service_checks_1hour,(double)(((double)passive_service_checks_1hour*100.0)/(double)total_passive_service_checks)); - printf("",passive_service_checks_start,(double)(((double)passive_service_checks_start*100.0)/(double)total_passive_service_checks)); + printf("\n"); + printf("",passive_service_checks_1min,(double)(((double)passive_service_checks_1min*100.0)/(double)total_passive_service_checks)); + printf("",passive_service_checks_5min,(double)(((double)passive_service_checks_5min*100.0)/(double)total_passive_service_checks)); + printf("",passive_service_checks_15min,(double)(((double)passive_service_checks_15min*100.0)/(double)total_passive_service_checks)); + printf("",passive_service_checks_1hour,(double)(((double)passive_service_checks_1hour*100.0)/(double)total_passive_service_checks)); + printf("",passive_service_checks_start,(double)(((double)passive_service_checks_start*100.0)/(double)total_passive_service_checks)); printf("
    Time FrameChecks Completed
    <= 1 minute:%d (%.1f%%)
    <= 5 minutes:%d (%.1f%%)
    <= 15 minutes:%d (%.1f%%)
    <= 1 hour:%d (%.1f%%)
    Since program start:  %d (%.1f%%)
    時間枠完了したチェック
    <= 1分(以前):%d (%.1f%%)
    <= 5分(以前):%d (%.1f%%)
    <= 15分(以前):%d (%.1f%%)
    <= 1時間(以前):%d (%.1f%%)
    プログラム開始以来:  %d (%.1f%%)
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); - printf("\n",min_service_percent_change_b,max_service_percent_change_b,(double)((double)total_service_percent_change_b/(double)total_passive_service_checks)); + printf("\n"); + printf("\n",min_service_percent_change_b,max_service_percent_change_b,(double)((double)total_service_percent_change_b/(double)total_passive_service_checks)); printf("
    MetricMin.Max.Average
    Percent State Change:  %.2f%%%.2f%%%.2f%%
    メトリック最小最大平均
    状態変化率:  %.2f%%%.2f%%%.2f%%
    \n"); printf("
    Active Host Checks:
    動作ホストチェック:
    \n"); /* fake this so we don't divide by zero for just showing the table */ @@ -2278,12 +2273,12 @@ printf("
    \n"); printf("\n"); - printf("\n"); - printf("",active_host_checks_1min,(double)(((double)active_host_checks_1min*100.0)/(double)total_active_host_checks)); - printf("",active_host_checks_5min,(double)(((double)active_host_checks_5min*100.0)/(double)total_active_host_checks)); - printf("",active_host_checks_15min,(double)(((double)active_host_checks_15min*100.0)/(double)total_active_host_checks)); - printf("",active_host_checks_1hour,(double)(((double)active_host_checks_1hour*100.0)/(double)total_active_host_checks)); - printf("",active_host_checks_start,(double)(((double)active_host_checks_start*100.0)/(double)total_active_host_checks)); + printf("\n"); + printf("",active_host_checks_1min,(double)(((double)active_host_checks_1min*100.0)/(double)total_active_host_checks)); + printf("",active_host_checks_5min,(double)(((double)active_host_checks_5min*100.0)/(double)total_active_host_checks)); + printf("",active_host_checks_15min,(double)(((double)active_host_checks_15min*100.0)/(double)total_active_host_checks)); + printf("",active_host_checks_1hour,(double)(((double)active_host_checks_1hour*100.0)/(double)total_active_host_checks)); + printf("",active_host_checks_start,(double)(((double)active_host_checks_start*100.0)/(double)total_active_host_checks)); printf("
    Time FrameChecks Completed
    <= 1 minute:%d (%.1f%%)
    <= 5 minutes:%d (%.1f%%)
    <= 15 minutes:%d (%.1f%%)
    <= 1 hour:%d (%.1f%%)
    Since program start:  %d (%.1f%%)
    時間枠完了したチェック
    <= 1分(以前):%d (%.1f%%)
    <= 5分(以前):%d (%.1f%%)
    <= 15分(以前):%d (%.1f%%)
    <= 1時間(以前):%d (%.1f%%)
    プログラム開始以来:  %d (%.1f%%)
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); - printf("\n",min_host_execution_time,max_host_execution_time,(double)((double)total_host_execution_time/(double)total_active_host_checks)); + printf("\n",min_host_execution_time,max_host_execution_time,(double)((double)total_host_execution_time/(double)total_active_host_checks)); - printf("\n",min_host_latency,max_host_latency,(double)((double)total_host_latency/(double)total_active_host_checks)); + printf("\n",min_host_latency,max_host_latency,(double)((double)total_host_latency/(double)total_active_host_checks)); - printf("\n",min_host_percent_change_a,max_host_percent_change_a,(double)((double)total_host_percent_change_a/(double)total_active_host_checks)); + printf("\n",min_host_percent_change_a,max_host_percent_change_a,(double)((double)total_host_percent_change_a/(double)total_active_host_checks)); printf("
    MetricMin.Max.Average
    メトリック最小最大平均
    Check Execution Time:  %.2f sec%.2f sec%.3f sec
    チェック実行時間:  %.2f 秒%.2f 秒%.3f 秒
    Check Latency:%.2f sec%.2f sec%.3f sec
    チェック遅延:%.2f 秒%.2f 秒%.3f 秒
    Percent State Change:%.2f%%%.2f%%%.2f%%
    状態変化率:%.2f%%%.2f%%%.2f%%
    \n"); printf("
    Passive Host Checks:
    パッシブホストチェック:
    \n"); @@ -2327,12 +2322,12 @@ printf("
    \n"); printf("\n"); - printf("\n"); - printf("",passive_host_checks_1min,(double)(((double)passive_host_checks_1min*100.0)/(double)total_passive_host_checks)); - printf("",passive_host_checks_5min,(double)(((double)passive_host_checks_5min*100.0)/(double)total_passive_host_checks)); - printf("",passive_host_checks_15min,(double)(((double)passive_host_checks_15min*100.0)/(double)total_passive_host_checks)); - printf("",passive_host_checks_1hour,(double)(((double)passive_host_checks_1hour*100.0)/(double)total_passive_host_checks)); - printf("",passive_host_checks_start,(double)(((double)passive_host_checks_start*100.0)/(double)total_passive_host_checks)); + printf("\n"); + printf("",passive_host_checks_1min,(double)(((double)passive_host_checks_1min*100.0)/(double)total_passive_host_checks)); + printf("",passive_host_checks_5min,(double)(((double)passive_host_checks_5min*100.0)/(double)total_passive_host_checks)); + printf("",passive_host_checks_15min,(double)(((double)passive_host_checks_15min*100.0)/(double)total_passive_host_checks)); + printf("",passive_host_checks_1hour,(double)(((double)passive_host_checks_1hour*100.0)/(double)total_passive_host_checks)); + printf("",passive_host_checks_start,(double)(((double)passive_host_checks_start*100.0)/(double)total_passive_host_checks)); printf("
    Time FrameChecks Completed
    <= 1 minute:%d (%.1f%%)
    <= 5 minutes:%d (%.1f%%)
    <= 15 minutes:%d (%.1f%%)
    <= 1 hour:%d (%.1f%%)
    Since program start:  %d (%.1f%%)
    時間枠完了したチェック
    <= 1分(以前):%d (%.1f%%)
    <= 5分(以前):%d (%.1f%%)
    <= 15分(以前):%d (%.1f%%)
    <= 1時間(以前):%d (%.1f%%)
    プログラム開始以来:  %d (%.1f%%)
    \n"); printf("
    \n"); printf("\n"); - printf("\n"); - printf("\n",min_host_percent_change_b,max_host_percent_change_b,(double)((double)total_host_percent_change_b/(double)total_passive_host_checks)); + printf("\n"); + printf("\n",min_host_percent_change_b,max_host_percent_change_b,(double)((double)total_host_percent_change_b/(double)total_passive_host_checks)); printf("
    MetricMin.Max.Average
    Percent State Change:  %.2f%%%.2f%%%.2f%%
    メトリック最小最大平均
    状態変化率:  %.2f%%%.2f%%%.2f%%
    \n"); printf("
    \n"); printf("\n"); + printf("コメントを追加する\n"); printf("\n"); + printf("全てのコメントを削除する\n"); printf("
    ",url_images_path,COMMENT_ICON); @@ -2402,7 +2397,7 @@ printf("",url_encode(service_desc)); } - printf("Add a new comment
    ",url_images_path,DELETE_ICON); if(type==HOST_COMMENT) @@ -2411,7 +2406,7 @@ printf("",url_encode(service_desc)); } - printf("Delete all comments
    \n"); printf("
    \n"); @@ -2421,7 +2416,7 @@ printf("

    \n"); printf("

    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* read in all comments */ read_comment_data(get_cgi_config_location()); @@ -2468,8 +2463,8 @@ get_time_string(&temp_comment->entry_time,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); get_time_string(&temp_comment->expire_time,expire_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("",bg_class); - printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"Yes":"No",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); - printf("",COMMAND_CGI,(type==HOST_COMMENT)?CMD_DEL_HOST_COMMENT:CMD_DEL_SVC_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); + printf("",bg_class,date_time,bg_class,temp_comment->author,bg_class,temp_comment->comment_data,bg_class,temp_comment->comment_id,bg_class,(temp_comment->persistent)?"はい":"いいえ",bg_class,comment_type,bg_class,(temp_comment->expires==TRUE)?expire_time:"N/A"); + printf("",COMMAND_CGI,(type==HOST_COMMENT)?CMD_DEL_HOST_COMMENT:CMD_DEL_SVC_COMMENT,temp_comment->comment_id,url_images_path,DELETE_ICON); printf("\n"); total_comments++; @@ -2478,7 +2473,7 @@ /* see if this host or service has any comments associated with it */ if(total_comments==0) - printf("",(type==HOST_COMMENT)?9:10,(type==HOST_COMMENT)?"host":"service"); + printf("",(type==HOST_COMMENT)?9:10,(type==HOST_COMMENT)?"ホスト":"サービス"); printf("
    Entry TimeAuthorCommentComment IDPersistentTypeExpiresActions
    記入日記入者コメントコメントID保持設定種類期限アクション
    %s%s%s%lu%s%s%sDelete This Comment%s%s%s%lu%s%s%sこのコメントを削除
    This %s has no comments associated with it
    この%sにはコメントがありません。
    \n"); @@ -2511,16 +2506,16 @@ printf("

    \n"); printf("\n"); - printf("
    Scheduled Host Downtime
    \n"); + printf("
    ホストダウンタイムのスケジュール設定
    \n"); printf("\n"); + printf("ホストのダウンタイムをスケジュールする
    \n"); printf("

    \n"); printf("

    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* display all the host downtime */ for(temp_downtime=scheduled_downtime_list,total_downtime=0;temp_downtime!=NULL;temp_downtime=temp_downtime->next){ @@ -2555,7 +2550,7 @@ printf("",bg_class,date_time); get_time_string(&temp_downtime->end_time,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("",bg_class,date_time); - printf("",bg_class,(temp_downtime->fixed==TRUE)?"Fixed":"Flexible"); + printf("",bg_class,(temp_downtime->fixed==TRUE)?"固定":"フレキシブル"); get_time_breakdown(temp_downtime->duration,&days,&hours,&minutes,&seconds); printf("",bg_class,days,hours,minutes,seconds); printf("",bg_class,temp_downtime->downtime_id); @@ -2565,12 +2560,12 @@ else printf("%lu",temp_downtime->triggered_by); printf("\n"); - printf("",COMMAND_CGI,CMD_DEL_HOST_DOWNTIME,temp_downtime->downtime_id,url_images_path,DELETE_ICON); + printf("",COMMAND_CGI,CMD_DEL_HOST_DOWNTIME,temp_downtime->downtime_id,url_images_path,DELETE_ICON); printf("\n"); } if(total_downtime==0) - printf(""); + printf(""); printf("\n"); printf("
    Host NameEntry TimeAuthorCommentStart TimeEnd TimeTypeDurationDowntime IDTrigger IDActions
    ホスト名登録日登録者コメント開始時間終了時間種類期間ダウンタイムIDトリガーIDアクション
    %s%s%s%s%dd %dh %dm %ds%luDelete/Cancel This Scheduled Downtime Entryこのスケジュールエントリを削除もしくはキャンセル
    There are no hosts with scheduled downtime
    ダウンタイムがスケジュールされたホストはありません。
    \n"); @@ -2579,16 +2574,16 @@ printf("\n"); - printf("
    Scheduled Service Downtime
    \n"); + printf("
    サービスダウンタイムのスケジュール設定
    \n"); printf("\n"); + printf("サービスのダウンタイムをスケジュールする
    \n"); printf("

    \n"); printf("

    \n"); printf("\n"); - printf("\n"); + printf("\n"); /* display all the service downtime */ for(temp_downtime=scheduled_downtime_list,total_downtime=0;temp_downtime!=NULL;temp_downtime=temp_downtime->next){ @@ -2625,7 +2620,7 @@ printf("",bg_class,date_time); get_time_string(&temp_downtime->end_time,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("",bg_class,date_time); - printf("",bg_class,(temp_downtime->fixed==TRUE)?"Fixed":"Flexible"); + printf("",bg_class,(temp_downtime->fixed==TRUE)?"固定":"フレキシブル"); get_time_breakdown(temp_downtime->duration,&days,&hours,&minutes,&seconds); printf("",bg_class,days,hours,minutes,seconds); printf("",bg_class,temp_downtime->downtime_id); @@ -2635,12 +2630,12 @@ else printf("%lu",temp_downtime->triggered_by); printf("\n"); - printf("",COMMAND_CGI,CMD_DEL_SVC_DOWNTIME,temp_downtime->downtime_id,url_images_path,DELETE_ICON); + printf("",COMMAND_CGI,CMD_DEL_SVC_DOWNTIME,temp_downtime->downtime_id,url_images_path,DELETE_ICON); printf("\n"); } if(total_downtime==0) - printf(""); + printf(""); printf("\n"); printf("
    Host NameServiceEntry TimeAuthorCommentStart TimeEnd TimeTypeDurationDowntime IDTrigger IDActions
    ホスト名サービス名登録日登録者コメント開始時間終了時間種類期間ダウンタイムIDトリガーIDアクション
    %s%s%s%s%dd %dh %dm %ds%luDelete/Cancel This Scheduled Downtime Entryこのスケジュールエントリを削除もしくはキャンセル
    There are no services with scheduled downtime
    ダウンタイムがスケジュールされたサービスはありません。
    \n"); @@ -2664,9 +2659,8 @@ /* make sure the user has rights to view system information */ if(is_authorized_for_system_information(¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view process information...

    \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; } @@ -2674,18 +2668,18 @@ /* sort hosts and services */ sort_data(sort_type,sort_option); - printf("
    Entries sorted by "); + printf("
    エントリの並順"); if(sort_option==SORT_HOSTNAME) - printf("host name"); + printf("ホスト名"); else if(sort_option==SORT_SERVICENAME) - printf("service name"); + printf("サービス名"); else if(sort_option==SORT_SERVICESTATUS) - printf("service status"); + printf("サービスステータス"); else if(sort_option==SORT_LASTCHECKTIME) - printf("last check time"); + printf("最終チェック時刻"); else if(sort_option==SORT_NEXTCHECKTIME) - printf("next check time"); - printf(" (%s)\n",(sort_type==SORT_ASCENDING)?"ascending":"descending"); + printf("次回チェック時間"); + printf(" (%s)\n",(sort_type==SORT_ASCENDING)?"昇順":"降順"); printf("
    \n"); printf("

    \n"); @@ -2696,16 +2690,16 @@ snprintf(temp_url,sizeof(temp_url)-1,"%s?type=%d",EXTINFO_CGI,DISPLAY_SCHEDULING_QUEUE); temp_url[sizeof(temp_url)-1]='\x0'; - printf("Host Sort by host name (ascending)Sort by host name (descending)",temp_url,SORT_ASCENDING,SORT_HOSTNAME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_HOSTNAME,url_images_path,DOWN_ARROW_ICON); + printf("ホスト名 ホスト名で並び替え(昇順)ホスト名で並び替え(降順)",temp_url,SORT_ASCENDING,SORT_HOSTNAME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_HOSTNAME,url_images_path,DOWN_ARROW_ICON); - printf("Service Sort by service name (ascending)Sort by service name (descending)",temp_url,SORT_ASCENDING,SORT_SERVICENAME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_SERVICENAME,url_images_path,DOWN_ARROW_ICON); + printf("サービス名 サービス名で並び替え(降順)サービス名で並び替え(降順)",temp_url,SORT_ASCENDING,SORT_SERVICENAME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_SERVICENAME,url_images_path,DOWN_ARROW_ICON); - printf("Last Check Sort by last check time (ascending)Sort by last check time (descending)",temp_url,SORT_ASCENDING,SORT_LASTCHECKTIME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_LASTCHECKTIME,url_images_path,DOWN_ARROW_ICON); + printf("最終チェック時刻 最終チェック時刻で並び替え(昇順)最終チェック時刻で並び替え(降順)",temp_url,SORT_ASCENDING,SORT_LASTCHECKTIME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_LASTCHECKTIME,url_images_path,DOWN_ARROW_ICON); - printf("Next Check Sort by next check time (ascending)Sort by next check time (descending)",temp_url,SORT_ASCENDING,SORT_NEXTCHECKTIME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_NEXTCHECKTIME,url_images_path,DOWN_ARROW_ICON); + printf("次回チェック時間 次回チェック時間で並び替え(昇順)次回チェック時間で並び替え(降順)",temp_url,SORT_ASCENDING,SORT_NEXTCHECKTIME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_NEXTCHECKTIME,url_images_path,DOWN_ARROW_ICON); - printf("Active ChecksActions\n"); + printf("アクティブチェックアクション\n"); /* display all services and hosts */ @@ -2748,19 +2742,19 @@ get_time_string(&temp_svcstatus->next_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("%s",bgclass,(temp_svcstatus->next_check==(time_t)0)?"N/A":date_time); - printf("%s",(temp_svcstatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->checks_enabled==TRUE)?"ENABLED":"DISABLED"); + printf("%s",(temp_svcstatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_svcstatus->checks_enabled==TRUE)?"有効":"無効"); printf("",bgclass); if(temp_svcstatus->checks_enabled==TRUE){ printf("Disable Active Checks Of This Service\n",url_encode(temp_svcstatus->description),url_images_path,DISABLED_ICON); + printf("&service=%s'>このサービスのアクティブチェックを無効にする\n",url_encode(temp_svcstatus->description),url_images_path,DISABLED_ICON); } else{ printf("Enable Active Checks Of This Service\n",url_encode(temp_svcstatus->description),url_images_path,ENABLED_ICON); + printf("&service=%s'>このサービスのアクティブチェックを有効にする\n",url_encode(temp_svcstatus->description),url_images_path,ENABLED_ICON); } printf("Re-schedule This Service Check\n",url_encode(temp_svcstatus->description),url_images_path,DELAY_ICON); + printf("&service=%s'>このサービスのチェックを次回スケジュールに追加する\n",url_encode(temp_svcstatus->description),url_images_path,DELAY_ICON); printf("\n"); } @@ -2777,19 +2771,19 @@ get_time_string(&temp_hststatus->next_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME); printf("%s",bgclass,(temp_hststatus->next_check==(time_t)0)?"N/A":date_time); - printf("%s",(temp_hststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED"); + printf("%s",(temp_hststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hststatus->checks_enabled==TRUE)?"有効":"無効"); printf("",bgclass); if(temp_hststatus->checks_enabled==TRUE){ printf("Disable Active Checks Of This Host\n",url_images_path,DISABLED_ICON); + printf("'>このホストのアクティブチェックを無効にする TITLE=\n",url_images_path,DISABLED_ICON); } else{ printf("Enable Active Checks Of This Host\n",url_images_path,ENABLED_ICON); + printf("'>このホストのアクティブチェックを有効にする\n",url_images_path,ENABLED_ICON); } printf("Re-schedule This Host Check\n",url_images_path,DELAY_ICON); + printf("'>このホストのチェックを次回スケジュールに追加する\n",url_images_path,DELAY_ICON); printf("\n"); } diff -Nnaur cgi/histogram.c.orig cgi/histogram.c --- cgi/histogram.c.orig Wed Mar 22 06:31:46 2006 +++ cgi/histogram.c Thu Nov 30 19:05:31 2006 @@ -121,10 +121,12 @@ #define GRAPH_HARD_STATETYPES 2 #define GRAPH_ALL_STATETYPES 3 +#define SMALL_FONT_SIZE 10 extern char main_config_file[MAX_FILENAME_LENGTH]; +extern char ttf_file[MAX_FILENAME_LENGTH]; extern char url_images_path[MAX_FILENAME_LENGTH]; extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; extern char physical_images_path[MAX_FILENAME_LENGTH]; @@ -327,11 +329,11 @@ printf("\n"); if(display_type==DISPLAY_HOST_HISTOGRAM) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Host Alert Histogram"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホストの警報ヒストグラム"); else if(display_type==DISPLAY_SERVICE_HISTOGRAM) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Service Alert Histogram"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"サービスの警報ヒストグラム"); else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Host and Service Alert Histogram"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホスト・サービスの警報ヒストグラム"); temp_buffer[sizeof(temp_buffer)-1]='\x0'; display_info_table(temp_buffer,FALSE,¤t_authdata); @@ -342,24 +344,24 @@ if(display_type==DISPLAY_HOST_HISTOGRAM){ #ifdef USE_TRENDS - printf("View Trends For This Host
    \n",TRENDS_CGI,url_encode(host_name),t1,t2,(assume_state_retention==TRUE)?"yes":"no"); + printf("このホストの傾向を見る
    \n",TRENDS_CGI,url_encode(host_name),t1,t2,(assume_state_retention==TRUE)?"yes":"no"); #endif - printf("View Availability Report For This Host
    \n",AVAIL_CGI,url_encode(host_name),t1,t2,(assume_state_retention==TRUE)?"yes":"no"); - printf("View Status Detail For This Host
    \n",STATUS_CGI,url_encode(host_name)); - printf("View 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",AVAIL_CGI,url_encode(host_name),t1,t2,(assume_state_retention==TRUE)?"yes":"no"); + 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{ #ifdef USE_TRENDS printf("View Trends 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"); printf("View Availability Report 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&show_log_entries'>このサービスの稼働レポートを見る
    \n",url_encode(svc_description),t1,t2,(assume_state_retention==TRUE)?"yes":"no"); printf("View History 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"); @@ -375,23 +377,23 @@ printf("

    \n"); if(display_type==DISPLAY_HOST_HISTOGRAM) - printf("Host '%s'",host_name); + printf("ホスト '%s'",host_name); else if(display_type==DISPLAY_SERVICE_HISTOGRAM) - printf("Service '%s' On Host '%s'",svc_description,host_name); + printf("ホスト '%s' 上の '%s' サービス",host_name,svc_description); printf("
    \n"); printf("
    \n"); - printf("%s Event Histogram\n",url_images_path,TRENDS_ICON,(display_type==DISPLAY_HOST_HISTOGRAM)?"Host":"Service",(display_type==DISPLAY_HOST_HISTOGRAM)?"Host":"Service"); + printf("%sイベントヒストグラム\n",url_images_path,TRENDS_ICON,(display_type==DISPLAY_HOST_HISTOGRAM)?"ホスト":"サービス",(display_type==DISPLAY_HOST_HISTOGRAM)?"ホスト":"サービス"); 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
    \n",days,hours,minutes,seconds); + printf("
    期間: %d日間と %d時間 %d分 %d秒
    \n",days,hours,minutes,seconds); } printf("\n"); @@ -411,79 +413,79 @@ printf("\n",svc_description); - printf("Report period:Assume state retention:\n"); + printf("レポート期間:保存状態を考慮:\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Breakdown type:Initial states logged:\n"); + printf("表示区分:初期状態を考慮:\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Events to graph:Ignore repeated states:\n"); + printf("グラフにするイベント:繰り返しを無視:\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); - printf("State types to graph:\n"); + printf("グラフにするステータスタイプ:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); @@ -534,7 +536,7 @@ if(is_authorized==FALSE){ if(mode==CREATE_HTML) - printf("

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

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

    %sの情報を見る権限がありません。

    \n",(display_type==DISPLAY_HOST_HISTOGRAM)?"ホスト":"サービス"); document_footer(); free_memory(); @@ -602,7 +604,7 @@ read_archived_state_data(); #ifdef DEBUG - printf("Done reading archived state data.\n"); + printf("アーカイブされた状態情報を読み込みました。\n"); #endif /* location of image template */ @@ -619,7 +621,7 @@ histogram_image=gdImageCreate(image_width,image_height); if(histogram_image==NULL){ #ifdef DEBUG - printf("Error: Could not allocate memory for image\n"); + printf("エラー: 画像を表示するためのメモリの割り当てが出来ませんでした。\n"); #endif return ERROR; } @@ -641,14 +643,14 @@ gdImageInterlace(histogram_image,1); #ifdef DEBUG - printf("Starting to graph data...\n"); + printf("データをグラフ化しています...\n"); #endif /* graph archived state histogram data */ graph_all_histogram_data(); #ifdef DEBUG - printf("Done graphing data.\n"); + printf("完了しました。\n"); #endif /* use STDOUT for writing the image data... */ @@ -681,7 +683,7 @@ if(input_type==GET_INPUT_HOST_TARGET){ printf("

    \n"); - printf("
    Step 2: Select Host
    \n"); + printf("
    ステップ2: ホストの選択
    \n"); printf("

    \n"); printf("

    \n"); @@ -690,7 +692,7 @@ printf("
    \n",HISTOGRAM_CGI); printf("\n"); - printf("Host:\n"); + printf("ホスト:\n"); printf("\n"); printf("\n"); + printf("\n"); printf("\n"); printf("
    \n"); @@ -737,7 +739,7 @@ printf("

    \n"); - printf("
    Step 2: Select Service
    \n"); + printf("
    ステップ2: サービスの選択
    \n"); printf("

    \n"); printf("

    \n"); @@ -747,7 +749,7 @@ printf("\n"); printf("\n",(first_service==NULL)?"unknown":first_service); - printf("Service:\n"); + printf("サービス:\n"); printf("\n"); printf("\n"); + printf("\n"); printf("\n"); printf("\n"); @@ -781,7 +783,7 @@ end_year=t->tm_year+1900; printf("

    \n"); - printf("
    Step 3: Select Report Options
    \n"); + printf("
    ステップ3: レポートオプションの選択
    \n"); printf("

    \n"); printf("

    \n"); @@ -792,45 +794,48 @@ if(display_type==DISPLAY_SERVICE_HISTOGRAM) printf("\n",svc_description); - printf("Report Period:\n"); + printf("レポート期間:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("If Custom Report Period...\n"); + printf("期間をカスタマイズ...\n"); printf(""); - printf("Start Date (Inclusive):\n"); + printf("開始日(指定日を含む):\n"); printf(""); + printf("",start_year); + printf("年"); printf("\n "); + printf("月"); printf(" ",start_day); - printf("",start_year); + printf("日"); printf("\n"); printf("\n"); printf("\n"); @@ -838,24 +843,27 @@ printf("\n"); printf(""); - printf("End Date (Inclusive):\n"); + printf("終了日(指定日を含む):\n"); printf(""); + printf("",end_year); + printf("年"); printf("\n "); + printf("月"); printf(" ",end_day); - printf("",end_year); + printf("日"); printf("\n"); printf("\n"); printf("\n"); @@ -864,71 +872,71 @@ printf("
    \n"); - printf("Statistics Breakdown:\n"); + printf("表示区分:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Events To Graph:\n"); + printf("グラフにするイベント:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("State Types To Graph:\n"); + printf("グラフにするステータスタイプ:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Assume State Retention:\n"); + printf("保存状態を考慮:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Initial States Logged:\n"); + printf("初期状態を考慮:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("Ignore Repeated States:\n"); + printf("繰り返しを無視:\n"); printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); @@ -939,7 +947,7 @@ /* as the user whether they want a graph for a host or service */ else{ printf("

    \n"); - printf("
    Step 1: Select Report Type
    \n"); + printf("
    ステップ1: レポートタイプ選択
    \n"); printf("

    \n"); printf("

    \n"); @@ -947,16 +955,16 @@ printf("\n"); printf("\n",HISTOGRAM_CGI); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); printf("\n"); @@ -1000,8 +1008,9 @@ printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Nagios Histogram\n"); + printf("ヒストグラム\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -1524,8 +1533,10 @@ char temp_buffer[MAX_INPUT_BUFFER]; int string_width; int string_height; - char *days[7]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}; - char *months[12]={"January","February","March","April","May","June","July","August","September","October","November","December"}; + char *days[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; +// 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 *months[12]={"January","February","March","April","May","June","July","August","September","October","November","December"}; char start_time[MAX_INPUT_BUFFER]; char end_time[MAX_INPUT_BUFFER]; @@ -1550,6 +1561,7 @@ unsigned long state4_sum=0L; double state4_avg=0.0; + int brect[8]; #ifdef DEBUG printf("Total Buckets: %d\n",total_buckets); @@ -1621,7 +1633,7 @@ string_height=gdFontSmall->h; #ifdef DEBUG - printf("Starting to draw Y grid lines...\n"); + printf("Y軸を描画中...\n"); #endif /* draw y grid lines */ @@ -1635,7 +1647,7 @@ } #ifdef DEBUG - printf("Starting to draw X grid lines...\n"); + printf("X軸を描画中...\n"); #endif /* draw x grid lines */ @@ -1643,7 +1655,7 @@ draw_dashed_line(DRAWING_X_OFFSET+(int)(current_unit*x_units),DRAWING_Y_OFFSET,DRAWING_X_OFFSET+(int)(current_unit*x_units),DRAWING_Y_OFFSET-DRAWING_HEIGHT,color_lightgray); #ifdef DEBUG - printf("Starting to draw grid units...\n"); + printf("グリッドを描画中...\n"); #endif /* draw y units */ @@ -1674,52 +1686,103 @@ temp_buffer[sizeof(temp_buffer)-1]='\x0'; string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageStringUp(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(current_unit*x_units)-(string_height/2),DRAWING_Y_OFFSET+5+string_width,(unsigned char *)temp_buffer,color_black); + if( (breakdown_type==BREAKDOWN_MONTHLY) || (breakdown_type==BREAKDOWN_DAY_OF_MONTH) || (breakdown_type==BREAKDOWN_DAY_OF_WEEK) ){ + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(current_unit*x_units)-(string_width/2),DRAWING_Y_OFFSET+5,(unsigned char *)temp_buffer,color_black); //EDIT + }else{ + gdImageStringUp(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(current_unit*x_units)-(string_height/2),DRAWING_Y_OFFSET+5+string_width,(unsigned char *)temp_buffer,color_black); + } } /* draw y unit measure */ - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Number of Events"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageStringUp(histogram_image,gdFontSmall,0,DRAWING_Y_OFFSET-(DRAWING_HEIGHT/2)+(string_width/2),(unsigned char *)temp_buffer,color_black); + if( (strlen(ttf_file) > 5) && (access(ttf_file, F_OK) == 0) ){ + snprintf(temp_buffer,sizeof(temp_buffer)-1,"回"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET-(string_width*4), DRAWING_Y_OFFSET-(DRAWING_HEIGHT/2)-15, (unsigned char *)temp_buffer); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"数"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET-(string_width*4), DRAWING_Y_OFFSET-(DRAWING_HEIGHT/2)+5, (unsigned char *)temp_buffer); + }else{ + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Number of Events"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringUp(histogram_image,gdFontSmall,0,DRAWING_Y_OFFSET-(DRAWING_HEIGHT/2)+(string_width/2),(unsigned char *)temp_buffer,color_black); + } /* draw x unit measure */ - if(breakdown_type==BREAKDOWN_MONTHLY) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Month"); - else if(breakdown_type==BREAKDOWN_DAY_OF_MONTH) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Day of the Month"); - else if(breakdown_type==BREAKDOWN_DAY_OF_WEEK) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Day of the Week"); - else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Hour of the Day (15 minute increments)"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),DRAWING_Y_OFFSET+70,(unsigned char *)temp_buffer,color_black); + if( (strlen(ttf_file) > 5) && (access(ttf_file, F_OK) == 0) ){ + if(breakdown_type==BREAKDOWN_MONTHLY) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"[ 月別 ]"); //EDIT + else if(breakdown_type==BREAKDOWN_DAY_OF_MONTH) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"[ 日別 ]"); //EDIT + else if(breakdown_type==BREAKDOWN_DAY_OF_WEEK) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"[ 週別 ]"); //EDIT + else + snprintf(temp_buffer,sizeof(temp_buffer)-1,"[ 時間別 (15分間隔) ]"); //EDIT + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + if( (breakdown_type==BREAKDOWN_MONTHLY) || (breakdown_type==BREAKDOWN_DAY_OF_MONTH) || (breakdown_type==BREAKDOWN_DAY_OF_WEEK) ){ + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2), DRAWING_Y_OFFSET+50, (unsigned char *)temp_buffer);//EDIT + }else{ + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2), DRAWING_Y_OFFSET+75, (unsigned char *)temp_buffer);//EDIT + } + }else{ + if(breakdown_type==BREAKDOWN_MONTHLY) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Month"); + else if(breakdown_type==BREAKDOWN_DAY_OF_MONTH) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Day of the Month"); + else if(breakdown_type==BREAKDOWN_DAY_OF_WEEK) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Day of the Week"); + else + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Hour of the Day (15 minute increments)"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),DRAWING_Y_OFFSET+70,(unsigned char *)temp_buffer,color_black); + } /* draw title */ - snprintf(start_time,sizeof(start_time)-1,"%s",ctime(&t1)); - start_time[sizeof(start_time)-1]='\x0'; - start_time[strlen(start_time)-1]='\x0'; - snprintf(end_time,sizeof(end_time)-1,"%s",ctime(&t2)); - end_time[sizeof(end_time)-1]='\x0'; - end_time[strlen(end_time)-1]='\x0'; + if( (strlen(ttf_file) > 5) && (access(ttf_file, F_OK) == 0) ){ + get_time_string(&t1, start_time, sizeof(start_time)-1, LONG_DATE_TIME); + get_time_string(&t1, end_time, sizeof(end_time)-1, LONG_DATE_TIME); - if(display_type==DISPLAY_HOST_HISTOGRAM) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Event History For Host '%s'",host_name); - else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Event History For Service '%s' On Host '%s'",svc_description,host_name); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),0,(unsigned char *)temp_buffer,color_black); - - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s to %s",start_time,end_time); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),string_height+5,(unsigned char *)temp_buffer,color_black); + if(display_type==DISPLAY_HOST_HISTOGRAM) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホスト '%s' のイベント履歴",host_name); + else + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホスト '%s' 上の '%s' サービスのイベント履歴",host_name,svc_description); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),string_height,(unsigned char *)temp_buffer);//EDIT + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s から %s",start_time,end_time); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),(string_height*2)+5,(unsigned char *)temp_buffer);//EDIT + }else{ + snprintf(start_time,sizeof(start_time)-1,"%s",ctime(&t1)); + start_time[sizeof(start_time)-1]='\x0'; + start_time[strlen(start_time)-1]='\x0'; + snprintf(end_time,sizeof(end_time)-1,"%s",ctime(&t2)); + end_time[sizeof(end_time)-1]='\x0'; + end_time[strlen(end_time)-1]='\x0'; + + if(display_type==DISPLAY_HOST_HISTOGRAM) + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Event History For Host '%s'",host_name); + else + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Event History For Service '%s' On Host '%s'",svc_description,host_name); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),0,(unsigned char *)temp_buffer,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s to %s",start_time,end_time); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+(DRAWING_WIDTH/2)-(string_width/2),string_height+5,(unsigned char *)temp_buffer,color_black); + } #ifdef DEBUG - printf("About to starting graphing (total_buckets=%d)...\n",total_buckets); + printf("グラフについて(total_buckets=%d)...\n",total_buckets); #endif @@ -1757,7 +1820,7 @@ } #ifdef DEBUG - printf("Done graphing HOST UP states...\n"); + printf("ホスト稼動(UP)状態のグラフを描画しました。\n"); #endif /* graph host down states */ @@ -1791,7 +1854,7 @@ } #ifdef DEBUG - printf("Done graphing HOST DOWN states...\n"); + printf("ホスト停止(DOWN)状態のグラフを描画しました。\n"); #endif /* graph host unreachable states */ @@ -1825,7 +1888,7 @@ } #ifdef DEBUG - printf("Done graphing HOST UNREACHABLE states...\n"); + printf("ホスト未到達(UNREACHABLE)状態のグラフを描画しました。\n"); #endif } @@ -1955,7 +2018,7 @@ } #ifdef DEBUG - printf("Done graphing states...\n"); + printf("状態のグラフを描画しました。\n"); #endif /* draw graph boundaries */ @@ -1965,64 +2028,125 @@ /* graph stats */ - snprintf(temp_buffer,sizeof(temp_buffer)-1,"EVENT TYPE"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT,(unsigned char *)temp_buffer,color_black); - - snprintf(temp_buffer,sizeof(temp_buffer)-1," MIN MAX SUM AVG"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT,(unsigned char *)temp_buffer,color_black); - - draw_line(DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,DRAWING_X_OFFSET+DRAWING_WIDTH+275,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,color_black); - - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Recovery (%s):",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Ok":"Up"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*1),(unsigned char *)temp_buffer,color_green); - - state1_avg=(double)((double)state1_sum/(double)total_buckets); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state1_min,state1_max,state1_sum,state1_avg); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*1),(unsigned char *)temp_buffer,color_black); - - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Warning":"Down"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer,(display_type==DISPLAY_SERVICE_HISTOGRAM)?color_yellow:color_red); - - state2_avg=(double)((double)state2_sum/(double)total_buckets); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state2_min,state2_max,state2_sum,state2_avg); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer,color_black); - - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Unknown":"Unreachable"); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer,(display_type==DISPLAY_SERVICE_HISTOGRAM)?color_orange:color_darkred); - - state3_avg=(double)((double)state3_sum/(double)total_buckets); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state3_min,state3_max,state3_sum,state3_avg); - temp_buffer[sizeof(temp_buffer)-1]='\x0'; - string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer,color_black); + if( (strlen(ttf_file) > 5) && (access(ttf_file, F_OK) == 0) ){ + snprintf(temp_buffer,sizeof(temp_buffer)-1,"[ イベントの種類 ]"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT-10,(unsigned char *)temp_buffer); + + snprintf(temp_buffer,sizeof(temp_buffer)-1," 最小 最大 合計 平均"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+100,DRAWING_Y_OFFSET-DRAWING_HEIGHT+10,(unsigned char *)temp_buffer); + + draw_line(DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,DRAWING_X_OFFSET+DRAWING_WIDTH+275,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"復旧(%s):",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"正常":"稼動"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_green, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer); + + state1_avg=(double)((double)state1_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state1_min,state1_max,state1_sum,state1_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+105,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"警告":"停止"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], (display_type==DISPLAY_SERVICE_HISTOGRAM)?color_yellow:color_red, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer); - if(display_type==DISPLAY_SERVICE_HISTOGRAM){ + state2_avg=(double)((double)state2_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state2_min,state2_max,state2_sum,state2_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+105,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"不明":"未到達"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], (display_type==DISPLAY_SERVICE_HISTOGRAM)?color_orange:color_darkred, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer); + + state3_avg=(double)((double)state3_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state3_min,state3_max,state3_sum,state3_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0], color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+105,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Critical:"); + if(display_type==DISPLAY_SERVICE_HISTOGRAM){ + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"異常:"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0],color_red, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*5),(unsigned char *)temp_buffer); + + state4_avg=(double)((double)state4_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state4_min,state4_max,state4_sum,state4_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageStringTTF(histogram_image, &brect[0],color_black, ttf_file, SMALL_FONT_SIZE, 0.0, DRAWING_X_OFFSET+DRAWING_WIDTH+105,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*5),(unsigned char *)temp_buffer); + } + }else{ + snprintf(temp_buffer,sizeof(temp_buffer)-1,"EVENT TYPE"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT,(unsigned char *)temp_buffer,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1," MIN MAX SUM AVG"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT,(unsigned char *)temp_buffer,color_black); + + draw_line(DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,DRAWING_X_OFFSET+DRAWING_WIDTH+275,DRAWING_Y_OFFSET-DRAWING_HEIGHT+string_height+2,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Recovery (%s):",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Ok":"Up"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*1),(unsigned char *)temp_buffer,color_green); + + state1_avg=(double)((double)state1_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state1_min,state1_max,state1_sum,state1_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*1),(unsigned char *)temp_buffer,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Warning":"Down"); temp_buffer[sizeof(temp_buffer)-1]='\x0'; string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer,color_red); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer,(display_type==DISPLAY_SERVICE_HISTOGRAM)?color_yellow:color_red); - state4_avg=(double)((double)state4_sum/(double)total_buckets); - snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state4_min,state4_max,state4_sum,state4_avg); + state2_avg=(double)((double)state2_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state2_min,state2_max,state2_sum,state2_avg); temp_buffer[sizeof(temp_buffer)-1]='\x0'; string_width=gdFontSmall->w*strlen(temp_buffer); - gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer,color_black); - } + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*2),(unsigned char *)temp_buffer,color_black); + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%s:",(display_type==DISPLAY_SERVICE_HISTOGRAM)?"Unknown":"Unreachable"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer,(display_type==DISPLAY_SERVICE_HISTOGRAM)?color_orange:color_darkred); + + state3_avg=(double)((double)state3_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state3_min,state3_max,state3_sum,state3_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*3),(unsigned char *)temp_buffer,color_black); + + if(display_type==DISPLAY_SERVICE_HISTOGRAM){ + + snprintf(temp_buffer,sizeof(temp_buffer)-1,"Critical:"); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+15,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer,color_red); + + state4_avg=(double)((double)state4_sum/(double)total_buckets); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"%5lu %5lu %5lu %.2f",state4_min,state4_max,state4_sum,state4_avg); + temp_buffer[sizeof(temp_buffer)-1]='\x0'; + string_width=gdFontSmall->w*strlen(temp_buffer); + gdImageString(histogram_image,gdFontSmall,DRAWING_X_OFFSET+DRAWING_WIDTH+115,DRAWING_Y_OFFSET-DRAWING_HEIGHT+((string_height+5)*4),(unsigned char *)temp_buffer,color_black); + } + } return; } @@ -2035,13 +2159,13 @@ int skip_state=FALSE; #ifdef DEBUG2 - printf("NEW ENTRY: last=%d this=%d\n",last_state,state_type); + printf("新しい項目: 最終状態=%d ,現在の状態=%d\n",last_state,state_type); #endif /* don't record program starts/stops, just make a note that one occurred */ if(state_type==AS_PROGRAM_START || state_type==AS_PROGRAM_END){ #ifdef DEBUG2 - printf("Recording a program start: %d\n",state_type); + printf("プログラムの開始を記録します: %d\n",state_type); #endif program_restart_has_occurred=TRUE; return; @@ -2077,7 +2201,7 @@ if(skip_state==TRUE){ program_restart_has_occurred=FALSE; #ifdef DEBUG2 - printf("Skipping state...\n"); + printf("スキップしています...\n"); #endif return; } @@ -2089,13 +2213,13 @@ /* are we only processing new states */ if(new_states_only==TRUE && state_type==last_state){ #ifdef DEBUG2 - printf("Skipping state (not a new state)...\n"); + printf("スキップしています(新しいステートはありません)...\n"); #endif return; } #ifdef DEBUG2 - printf("GOODSTATE: %d @ %lu\n",state_type,(unsigned long)time_stamp); + printf("正常状態: %d @ %lu\n",state_type,(unsigned long)time_stamp); #endif @@ -2151,7 +2275,7 @@ int current_archive; #ifdef DEBUG2 - printf("Determining archives to use...\n"); + printf("使用するアーカイブを決定しています...\n"); #endif /* determine earliest archive to use */ @@ -2166,8 +2290,8 @@ oldest_archive=newest_archive; #ifdef DEBUG2 - printf("Oldest archive: %d\n",oldest_archive); - printf("Newest archive: %d\n",newest_archive); + printf("最も古いアーカイブ: %d\n",oldest_archive); + printf("最も新しいアーカイブ: %d\n",newest_archive); #endif /* read in all the necessary archived logs */ @@ -2177,7 +2301,7 @@ get_log_archive_to_use(current_archive,filename,sizeof(filename)-1); #ifdef DEBUG2 - printf("\tCurrent archive: %d (%s)\n",current_archive,filename); + printf("\t現在のアーカイブ: %d (%s)\n",current_archive,filename); #endif /* scan the log file for archived state data */ @@ -2207,13 +2331,13 @@ if((thefile=mmap_fopen(filename))==NULL){ #ifdef DEBUG2 - printf("Could not open file '%s' for reading.\n",filename); + printf("'%s' を開くことが出来なかったため読み込めませんでした。\n",filename); #endif return; } #ifdef DEBUG2 - printf("Scanning log file '%s' for archived state data...\n",filename); + printf("ステートデータをアーカイブするためにログファイル '%s' から取得しています...\n",filename); #endif while(1){ diff -Nnaur cgi/history.c.orig cgi/history.c --- cgi/history.c.orig Wed Mar 22 06:31:46 2006 +++ cgi/history.c Wed Nov 01 14:49:47 2006 @@ -137,32 +137,32 @@ 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("",(display_flapping_alerts==FALSE)?"checked":""); + printf("",(display_flapping_alerts==FALSE)?"checked":""); printf("\n"); printf("\n"); - printf("",(display_downtime_alerts==FALSE)?"checked":""); + printf("",(display_downtime_alerts==FALSE)?"checked":""); printf("\n"); printf("\n"); - printf("",(display_system_messages==FALSE)?"checked":""); + printf("",(display_system_messages==FALSE)?"checked":""); printf("\n"); printf("\n"); - printf("",(use_lifo==FALSE)?"checked":""); + printf("",(use_lifo==FALSE)?"checked":""); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); /* display context-sensitive help */ @@ -319,8 +320,9 @@ printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Nagios History\n"); + printf("履歴\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -515,10 +517,10 @@ result=read_file_into_lifo(log_file_to_use); if(result!=LIFO_OK){ if(result==LIFO_ERROR_MEMORY){ - printf("

    Not enough memory to reverse log file - displaying history in natural order...

    \n"); + printf("

    ログを逆順にするために必要なメモリが不足しているため通常の順番で表示しています。

    \n"); } else if(result==LIFO_ERROR_FILE){ - printf("

    Error: Cannot open log file '%s' for reading!


    ",log_file_to_use); + printf("

    エラー: ログファイル'%s'が読み込めません。


    ",log_file_to_use); return; } use_lifo=FALSE; @@ -528,7 +530,7 @@ if(use_lifo==FALSE){ if((thefile=mmap_fopen(log_file_to_use))==NULL){ - printf("

    Error: Cannot open log file '%s' for reading!


    ",log_file_to_use); + printf("

    エラー: ログファイル'%s'が読み込めません。


    ",log_file_to_use); return; } } @@ -912,12 +914,14 @@ if(found_line==FALSE){ printf("
    \n"); - printf("

    No history information was found "); + printf("

    "); if(display_type==DISPLAY_HOSTS) - printf("%s",(show_all_hosts==TRUE)?"":"for this host "); + printf("%s",(show_all_hosts==TRUE)?"":"このホストの"); else - printf("for this this service "); - printf("in %s log file

    ",(log_archive==0)?"the current":"this archived"); + printf("このサービスの"); + printf("警告履歴"); + printf("は、%sのログの中には

    ",(log_archive==0)?"現在":"このアーカイブ"); + printf("見あたりません。

    "); } printf("
    \n"); diff -Nnaur cgi/notifications.c.orig cgi/notifications.c --- cgi/notifications.c.orig Wed Nov 29 15:58:19 2006 +++ cgi/notifications.c Wed Nov 29 15:42:12 2006 @@ -135,34 +135,34 @@ printf("
    Type:
    タイプ:\n"); printf("\n"); printf("
    \n"); - printf("\n"); + printf("\n"); printf("
    \n"); if(display_type==DISPLAY_SERVICES) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Service Alert History"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"サービスの警報履歴"); else if(show_all_hosts==TRUE) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Alert History"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"警報履歴"); else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Host Alert History"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホストの警報履歴"); temp_buffer[sizeof(temp_buffer)-1]='\x0'; display_info_table(temp_buffer,FALSE,¤t_authdata); printf("\n"); printf("\n"); printf("\n"); @@ -175,11 +175,11 @@ printf("
    \n"); if(display_type==DISPLAY_SERVICES) - printf("Service '%s' On Host '%s'",svc_description,host_name); + printf("ホスト '%s' 上の '%s' サービス",host_name,svc_description); else if(show_all_hosts==TRUE) - printf("All Hosts and Services"); + printf("全てのホストとサービス"); else - printf("Host '%s'",host_name); + printf("ホスト '%s'",host_name); printf("
    \n"); printf("
    \n"); @@ -207,61 +207,62 @@ printf("\n",log_archive); printf("
    State type options:ステータスタイプ:
    History detail level for "); + printf(""); if(display_type==DISPLAY_HOSTS) - printf("%s host%s",(show_all_hosts==TRUE)?"all":"this",(show_all_hosts==TRUE)?"s":""); + printf("%s host",(show_all_hosts==TRUE)?"全":"この"); else - printf("service"); + printf("サービス"); + printf("の履歴詳細レベル"); printf(":
    Hide Flapping Alerts フラッピングを除外する
    Hide Downtime Alerts ダウンタイムを除外する
    Hide Process Messages プロセスメッセージを除外する
    Older Entries First 古いものを先頭にする
    \n"); if(query_type==FIND_SERVICE) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Service Notifications"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"サービスの通知履歴"); else if(query_type==FIND_HOST){ if(find_all==TRUE) - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Notifications"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"通知履歴"); else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Host Notifications"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"ホストの通知履歴"); } else - snprintf(temp_buffer,sizeof(temp_buffer)-1,"Contact Notifications"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"通知先の通知履歴"); display_info_table(temp_buffer,FALSE,¤t_authdata); if(query_type==FIND_HOST || query_type==FIND_SERVICE){ printf("\n"); printf("\n"); @@ -177,18 +177,18 @@ printf("
    \n"); if(query_type==FIND_SERVICE) - printf("Service '%s' On Host '%s'",query_svc_description,query_host_name); + printf("ホスト '%s' 上の '%s' サービス",query_host_name,query_svc_description); else if(query_type==FIND_HOST){ if(find_all==TRUE) - printf("All Hosts and Services"); + printf("全てのホストとサービス"); else - printf("Host '%s'",query_host_name); + printf("ホスト '%s'",query_host_name); } else{ if(find_all==TRUE) - printf("All Contacts"); + printf("全ての通知先"); else - printf("Contact '%s'",query_contact_name); + printf("通知先 '%s'",query_contact_name); } printf("
    \n"); printf("
    \n"); @@ -220,39 +220,39 @@ printf("\n",log_archive); printf("\n"); if(query_type==FIND_SERVICE) - printf(""); + printf(""); else - printf("",(find_all==TRUE)?"all":"this",(query_type==FIND_HOST)?"host":"contact",(find_all==TRUE)?"s":""); + printf("",(find_all==TRUE)?"全":"この",(query_type==FIND_HOST)?"ホスト":"通知先"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("",(use_lifo==FALSE)?"checked":""); - printf("\n"); + printf("\n"); printf("\n"); /* display context-sensitive help */ @@ -308,8 +308,9 @@ printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Alert Notifications\n"); + printf("警報通知\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -481,10 +482,10 @@ result=read_file_into_lifo(log_file_to_use); if(result!=LIFO_OK){ if(result==LIFO_ERROR_MEMORY){ - printf("

    Not enough memory to reverse log file - displaying notifications in natural order...

    "); + printf("

    ログを逆順にするために必要なメモリが不足しているため通常の順番で表示しています。

    "); } else if(result==LIFO_ERROR_FILE){ - printf("

    Error: Cannot open log file '%s' for reading!

    ",log_file_to_use); + printf("

    エラー: ログファイル'%s'が読み込めません。

    ",log_file_to_use); return; } use_lifo=FALSE; @@ -494,7 +495,7 @@ if(use_lifo==FALSE){ if((thefile=mmap_fopen(log_file_to_use))==NULL){ - printf("

    Error: Cannot open log file '%s' for reading!

    ",log_file_to_use); + printf("

    エラー: ログファイル'%s'が読み込めません。

    ",log_file_to_use); return; } } @@ -504,13 +505,13 @@ 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"); total_notifications=0; @@ -570,34 +571,37 @@ if(notification_type==SERVICE_NOTIFICATION){ if(!strcmp(alert_level,"CRITICAL")){ + strcpy(alert_level,"異常状態(CRITICAL)"); notification_detail_type=NOTIFICATION_SERVICE_CRITICAL; strcpy(alert_level_class,"CRITICAL"); } else if(!strcmp(alert_level,"WARNING")){ + strcpy(alert_level,"警告状態(WARNING)"); notification_detail_type=NOTIFICATION_SERVICE_WARNING; strcpy(alert_level_class,"WARNING"); } else if(!strcmp(alert_level,"RECOVERY") || !strcmp(alert_level,"OK")){ - strcpy(alert_level,"OK"); + strcpy(alert_level,"正常状態(OK)"); notification_detail_type=NOTIFICATION_SERVICE_RECOVERY; strcpy(alert_level_class,"OK"); } - else if(strstr(alert_level,"ACKNOWLEDGEMENT (")){ + else if(strstr(alert_level,"ACKNOWLEDGEMENT")){ + strcpy(alert_level,"障害認知状態(ACKNOWLEDGEMENT)"); notification_detail_type=NOTIFICATION_SERVICE_ACK; strcpy(alert_level_class,"ACKNOWLEDGEMENT"); } - else if(strstr(alert_level,"FLAPPINGSTART (")){ - strcpy(alert_level,"FLAPPING START"); + else if(strstr(alert_level,"FLAPPINGSTART")){ + strcpy(alert_level,"フラッピング開始"); notification_detail_type=NOTIFICATION_SERVICE_FLAP; strcpy(alert_level_class,"UNKNOWN"); } - else if(strstr(alert_level,"FLAPPINGSTOP (")){ - strcpy(alert_level,"FLAPPING STOP"); + else if(strstr(alert_level,"FLAPPINGSTOP)")){ + strcpy(alert_level,"フラッピング停止"); notification_detail_type=NOTIFICATION_SERVICE_FLAP; strcpy(alert_level_class,"UNKNOWN"); } else{ - strcpy(alert_level,"UNKNOWN"); + strcpy(alert_level,"不明(UNKNOWN)"); notification_detail_type=NOTIFICATION_SERVICE_UNKNOWN; strcpy(alert_level_class,"UNKNOWN"); } @@ -606,31 +610,32 @@ else{ if(!strcmp(alert_level,"DOWN")){ - strncpy(alert_level,"HOST DOWN",sizeof(alert_level)); + strncpy(alert_level,"ホストの停止状態(DOWN)",sizeof(alert_level)); strcpy(alert_level_class,"HOSTDOWN"); notification_detail_type=NOTIFICATION_HOST_DOWN; } else if(!strcmp(alert_level,"UNREACHABLE")){ - strncpy(alert_level,"HOST UNREACHABLE",sizeof(alert_level)); + strncpy(alert_level,"ホストの未到達状態(UNREACHABLE)",sizeof(alert_level)); strcpy(alert_level_class,"HOSTUNREACHABLE"); notification_detail_type=NOTIFICATION_HOST_UNREACHABLE; } else if(!strcmp(alert_level,"RECOVERY") || !strcmp(alert_level,"UP")){ - strncpy(alert_level,"HOST UP",sizeof(alert_level)); + strncpy(alert_level,"ホストの稼働状態(UP)",sizeof(alert_level)); strcpy(alert_level_class,"HOSTUP"); notification_detail_type=NOTIFICATION_HOST_RECOVERY; } else if(strstr(alert_level,"ACKNOWLEDGEMENT (")){ + strcpy(alert_level,"ホストの障害認知状態(ACKNOWLEDGEMENT)"); strcpy(alert_level_class,"HOSTACKNOWLEDGEMENT"); notification_detail_type=NOTIFICATION_HOST_ACK; } else if(strstr(alert_level,"FLAPPINGSTART (")){ - strcpy(alert_level,"FLAPPING START"); + strcpy(alert_level,"フラッピング開始"); strcpy(alert_level_class,"UNKNOWN"); notification_detail_type=NOTIFICATION_HOST_FLAP; } else if(strstr(alert_level,"FLAPPINGSTOP (")){ - strcpy(alert_level,"FLAPPING STOP"); + strcpy(alert_level,"フラッピング停止"); strcpy(alert_level_class,"UNKNOWN"); notification_detail_type=NOTIFICATION_HOST_FLAP; } @@ -727,16 +732,18 @@ printf("

    \n"); if(total_notifications==0){ - printf("

    No notifications have been recorded"); + printf("

    "); if(find_all==FALSE){ if(query_type==FIND_SERVICE) - printf(" for this service"); + printf("このサービスの"); else if(query_type==FIND_CONTACT) - printf(" for this contact"); + printf("この通知先の"); else - printf(" for this host"); + printf("このホストの"); } - printf(" in %s log file

    ",(log_archive==0)?"the current":"this archived"); + printf("通知履歴"); + printf("は%sのログの中には",(log_archive==0)?"現在":"このアーカイブ"); + printf("見あたりません。

    \n"); } free(input); diff -Nnaur cgi/outages.c.orig cgi/outages.c --- cgi/outages.c.orig Wed Mar 22 06:31:46 2006 +++ cgi/outages.c Wed Nov 01 14:50:01 2006 @@ -163,7 +163,7 @@ /* left column of the first row */ printf("\n"); /* middle column of top row */ @@ -225,8 +225,9 @@ printf("\n"); printf("\n"); + printf("\n"); printf("\n"); - printf("Network Outages\n"); + printf("ネットワーク障害\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -317,6 +318,8 @@ int odd=0; char *bg_class=""; char *status=""; + /* ステータスを日本語表記にするために追加 sato */ + char *string=""; int days; int hours; int minutes; @@ -330,9 +333,8 @@ /* user must be authorized for all hosts.. */ if(is_authorized_for_all_hosts(¤t_authdata)==FALSE){ - printf("

    It appears as though you do not have permission to view 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; } @@ -355,11 +357,11 @@ /* display the problem hosts... */ printf("

    \n"); - printf("
    Blocking Outages
    \n"); + printf("
    ネットワーク障害
    \n"); printf("
    HostServiceTypeTimeContactNotification CommandInformationホストサービスタイプ時刻通知先通知コマンドステータス
    \n"); - display_info_table("Network Outages",TRUE,¤t_authdata); + display_info_table("ネットワーク障害",TRUE,¤t_authdata); printf("
    \n"); printf("\n"); - printf("\n"); + printf("\n"); printf("\n"); for(temp_hostoutagesort=hostoutagesort_list;temp_hostoutagesort!=NULL;temp_hostoutagesort=temp_hostoutagesort->next){ @@ -391,20 +393,26 @@ bg_class="dataEven"; } - if(temp_hoststatus->status==HOST_UNREACHABLE) + if(temp_hoststatus->status==HOST_UNREACHABLE){ status="UNREACHABLE"; - else if(temp_hoststatus->status==HOST_DOWN) + /* sato */ + string="未到達(UNREACHABLE)"; + } + else if(temp_hoststatus->status==HOST_DOWN){ status="DOWN"; + /* sato */ + string="停止(DOWN)"; + } printf("\n",bg_class); printf("\n",bg_class,temp_hostoutage->severity); printf("\n",bg_class,EXTINFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_hostoutage->hst->name),temp_hostoutage->hst->name); - printf("\n",status,status); + printf("\n",status,string); total_comments=number_of_host_comments(temp_hostoutage->hst->name); if(total_comments>0){ - snprintf(temp_buffer,sizeof(temp_buffer)-1,"This host has %d comment%s associated with it",total_comments,(total_comments==1)?"":"s"); + snprintf(temp_buffer,sizeof(temp_buffer)-1,"このホストには%d個のコメントがあります",total_comments); temp_buffer[sizeof(temp_buffer)-1]='\x0'; printf("\n",bg_class,EXTINFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_hostoutage->hst->name),url_images_path,COMMENT_ICON,temp_buffer,temp_buffer); } @@ -419,7 +427,7 @@ else t=current_time-temp_hoststatus->last_state_change; get_time_breakdown((unsigned long)t,&days,&hours,&minutes,&seconds); - snprintf(state_duration,sizeof(state_duration)-1,"%2dd %2dh %2dm %2ds%s",days,hours,minutes,seconds,(temp_hoststatus->last_state_change==(time_t)0)?"+":""); + snprintf(state_duration,sizeof(state_duration)-1,"%2d日間と %2d時間 %2d分 %2d秒",days,hours,minutes,seconds,(temp_hoststatus->last_state_change==(time_t)0)?"+":""); state_duration[sizeof(state_duration)-1]='\x0'; printf("\n",bg_class,state_duration); @@ -427,18 +435,18 @@ printf("\n",bg_class,temp_hostoutage->affected_child_services); printf("\n"); printf("\n"); @@ -449,7 +457,7 @@ printf("

    \n"); if(total_entries==0) - printf("
    %d Blocking Outages Displayed
    \n",total_entries); + printf("
    %d件のネットワーク障害を表示しています
    \n",total_entries); /* free memory allocated to the host outage list */ free_hostoutage_list(); diff -Nnaur cgi/showlog.c.orig cgi/showlog.c --- cgi/showlog.c.orig Wed Mar 22 06:31:46 2006 +++ cgi/showlog.c Sun Oct 29 23:41:08 2006 @@ -112,7 +112,7 @@ /* left column of top table - info box */ printf("\n"); /* middle column of top table - log file navigation options */ @@ -129,10 +129,10 @@ printf("\n",SHOWLOG_CGI); printf("\n",log_archive); printf(""); - printf("",(use_lifo==FALSE)?"checked":""); + printf("",(use_lifo==FALSE)?"checked":""); printf("\n"); printf(""); - printf("\n"); + printf("\n"); printf("\n"); /* display context-sensitive help */ @@ -192,8 +192,10 @@ printf("\n"); printf("\n"); + printf("\n"); + printf("\n"); printf("\n"); - printf("Nagios Log File\n"); + printf("ログファイル\n"); printf("\n"); if(use_stylesheet==TRUE){ @@ -306,8 +308,8 @@ /* check to see if the user is authorized to view the log file */ if(is_authorized_for_system_information(¤t_authdata)==FALSE){ printf("
    \n"); - printf("
    It appears as though you do not have permission to view the log file...


    \n"); - printf("
    If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
    and check the authorization options in your CGI configuration file.
    \n"); + printf("
    ログファイルを閲覧する権限が無いようです。


    \n"); + printf("
    このメッセージが何らかのエラーである場合はHTTPサーバのこのCGIに対するアクセス権限の設定かNagiosのCGI用設定ファイルの認証に関するオプションを調べてみてください。
    \n"); printf("
    \n"); return ERROR; } @@ -318,7 +320,7 @@ error=read_file_into_lifo(log_file_to_use); if(error!=LIFO_OK){ if(error==LIFO_ERROR_MEMORY){ - printf("

    Not enough memory to reverse log file - displaying log in natural order...

    "); + printf("

    ログを逆順にするために必要なメモリが不足しているため通常の順番で表示しています。

    "); error=FALSE; } else @@ -333,7 +335,7 @@ if((thefile=mmap_fopen(log_file_to_use))==NULL){ printf("
    \n"); - printf("

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

    ",log_file_to_use); + printf("

    エラー: ログファイル'%s'が読み込めません。

    ",log_file_to_use); printf("
    \n"); error=TRUE; } diff -Nnaur cgi/status.c.orig cgi/status.c --- cgi/status.c.orig Sat Jan 20 23:09:52 2007 +++ cgi/status.c Sat Jan 20 23:10:21 2007 @@ -285,50 +285,50 @@ printf("
    SeverityHostStateNotesState Duration# Hosts Affected# Services AffectedActions障害規模ホストステータスメモ経過時間影響するホスト数影響するサービス数アクション
    %d%s%s%s%s%s%d",bg_class); - printf("View status detail for this host\n",STATUS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUS_DETAIL_ICON); + printf("このホストのステータス詳細を見る\n",STATUS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUS_DETAIL_ICON); #ifdef USE_STATUSMAP - printf("View status map for this host and its children\n",STATUSMAP_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUSMAP_ICON); + printf("このホスト及び、下位ホストの3-Dステータスマップを見る\n",STATUSMAP_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUSMAP_ICON); #endif #ifdef USE_STATUSWRL - printf("View 3-D status map for this host and its children\n",STATUSWORLD_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUSWORLD_ICON); + printf("このホスト及び、下位ホストの3-Dステータスマップを見る\n",STATUSWORLD_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,STATUSWORLD_ICON); #endif #ifdef USE_TRENDS - printf("View trends for this host\n",TRENDS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,TRENDS_ICON); + printf("このホストの傾向を見る\n",TRENDS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,TRENDS_ICON); #endif - printf("View alert history for this host\n",HISTORY_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,HISTORY_ICON); - printf("View notifications for this host\n",NOTIFICATIONS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,NOTIFICATION_ICON); + printf("このホストの警報履歴を見る\n",HISTORY_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,HISTORY_ICON); + printf("このホストの通知履歴を見る\n",NOTIFICATIONS_CGI,url_encode(temp_hostoutage->hst->name),url_images_path,NOTIFICATION_ICON); printf("
    \n"); - display_info_table((log_rotation_method==LOG_ROTATION_NONE || log_archive==0)?"Current Event Log":"Archived Event Log",FALSE,¤t_authdata); + display_info_table((log_rotation_method==LOG_ROTATION_NONE || log_archive==0)?"現在のイベントログ":"アーカイブしたイベントログ",FALSE,¤t_authdata); printf("
    Older Entries First: 古いものを先頭にする:
    \n"); /* info table */ - display_info_table("Current Network Status",TRUE,¤t_authdata); + display_info_table("現在のネットワーク状態",TRUE,¤t_authdata); printf("\n"); printf("