Advertisement
Guest User

nagios-jp-4.4.1.sup.patch

a guest
Jul 9th, 2018
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/cgi/cmd.c b/cgi/cmd.c
  2. index 4beae5fe..07f6b49d 100644
  3. --- a/cgi/cmd.c
  4. +++ b/cgi/cmd.c
  5. @@ -1466,10 +1466,10 @@ int print_comment_field(int cmd_id)
  6.             comment = ecmd->default_comment;
  7.     }
  8.  
  9. -   printf("<tr><td CLASS='%s'>Author (Your Name):</td><td><b>", reqtext);
  10. +   printf("<tr><td CLASS='%s'>作成者 (あなたの名前):</td><td><b>", reqtext);
  11.     printf("<INPUT TYPE='TEXT' NAME='com_author' VALUE='%s' %s>", escape_string(comment_author), (lock_author_names == TRUE) ? "READONLY DISABLED" : "");
  12.     printf("</b></td></tr>\n");
  13. -   printf("<tr><td CLASS='%s'>Comment:</td><td><b>", reqtext);
  14. +   printf("<tr><td CLASS='%s'>コメント:</td><td><b>", reqtext);
  15.     printf("<INPUT TYPE='TEXT' NAME='com_data' VALUE='%s' SIZE=40>", escape_string(comment));
  16.     printf("</b></td></tr>\n");
  17.     return TRUE;
  18. diff --git a/cgi/extinfo.c b/cgi/extinfo.c
  19. index a260400d..c744515a 100644
  20. --- a/cgi/extinfo.c
  21. +++ b/cgi/extinfo.c
  22. @@ -1123,7 +1123,7 @@ void show_host_info(void) {
  23.  
  24.         printf("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 CLASS='command'>\n");
  25.  #ifdef USE_STATUSMAP
  26. -       printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='Locate Host On Map' TITLE='マップ上のホストの位置を確認'></td><td CLASS='command'><a href='%s?host=%s&root=%s'>マップ上のホストの位置を確認</a></td></tr>\n", url_images_path, STATUSMAP_ICON, STATUSMAP_CGI, url_encode(host_name), url_encode(host_name));
  27. +       printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='マップ上のホストの位置を確認' TITLE='マップ上のホストの位置を確認'></td><td CLASS='command'><a href='%s?host=%s'>マップ上のホストの位置を確認</a></td></tr>\n", url_images_path, STATUSMAP_ICON, STATUSMAP_CGI, url_encode(host_name));
  28.  #endif
  29.         if(temp_hoststatus->checks_enabled == TRUE) {
  30.             printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='このホストの動作チェックを無効' TITLE='このホストの動作チェックを無効'></td><td CLASS='command'><a href='%s?cmd_typ=%d&host=%s'>このホストの動作チェックを無効</a></td></tr>\n", url_images_path, DISABLED_ICON, COMMAND_CGI, CMD_DISABLE_HOST_CHECK, url_encode(host_name));
  31. @@ -1156,7 +1156,7 @@ void show_host_info(void) {
  32.         else
  33.             printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='このホストの通知を有効' TITLE='このホストの通知を有効'></td><td CLASS='command'><a href='%s?cmd_typ=%d&host=%s'>このホストの通知を有効</a></td></tr>\n", url_images_path, ENABLED_ICON, COMMAND_CGI, CMD_ENABLE_HOST_NOTIFICATIONS, url_encode(host_name));
  34.  
  35. -       printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='今すぐ通知する' TITLE='今すぐ通知する'></td><td CLASS='command'><a href='%s?cmd_typ=%d&host=%s'>Send custom host notification</a></td></tr>\n", url_images_path, NOTIFICATION_ICON, COMMAND_CGI, CMD_SEND_CUSTOM_HOST_NOTIFICATION, url_encode(host_name));
  36. +       printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='今すぐ通知する' TITLE='今すぐ通知する'></td><td CLASS='command'><a href='%s?cmd_typ=%d&host=%s'>今すぐ通知する</a></td></tr>\n", url_images_path, NOTIFICATION_ICON, COMMAND_CGI, CMD_SEND_CUSTOM_HOST_NOTIFICATION, url_encode(host_name));
  37.  
  38.         if(temp_hoststatus->status != SD_HOST_UP)
  39.             printf("<tr CLASS='command'><td><img src='%s%s' border=0 ALT='次のホスト通知を遅らせる' TITLE='次のホスト通知を遅らせる'></td><td CLASS='command'><a href='%s?cmd_typ=%d&host=%s'>次のホスト通知を遅らせる</a></td></tr>\n", url_images_path, DELAY_ICON, COMMAND_CGI, CMD_DELAY_HOST_NOTIFICATION, url_encode(host_name));
Advertisement
RAW Paste Data Copied
Advertisement