前言介紹
- 這款 WordPress 外掛「ATR Server Status」是 2017-03-26 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2024-10-08,距離現在已有 206 天。
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 11 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
rehhoff |
外掛標籤
server | check server | check service | server status | service status |
內容簡介
重要通知
在 1.5.0 版本中,我最初意外地提交了一個缺少必要文件的版本,如果你的網站因此顯示白屏或崩潰,請從儲存庫中刪除 / 重新安裝這個外掛程式。
簡單、高效、無廣告和無膨脹的插件,用於測試特定伺服器位址是否對只有你或在特定埠和協定下的所有人可用。
資料夾和服務會在使用者請求檢視插入簡碼的頁面時即時檢查。
直覺式介面,讓你更容易維護要檢查的伺服器和服務。
你可以通過在你的主題資料夾中的 functions.php 中使用過濾器 / 鉤子,自訂使用者顯示的訊息。
add_filter( "atr_server_success_message", function($message, $server) {
return $server->humanname." 似乎運作正常。";
}, 10, 2);
add_filter( "atr_server_error_message", function($message, $server) {
return $server->humanname." 無法連結。";
}, 10, 2);
你還可以使用過濾器 “atr_perm_administer_servers” 修改用於檢查存取權限的權限。
add_filter( "atr_perm_administer_servers", function( $permission ) {
$permission = "editor";
return $permission;
} );
簡碼範例
顯示在 WordPress 管理介面中輸入的所有伺服器
[server-status]
按特定 id 顯示伺服器
[server-status id="X"]
按多個 id 顯示伺服器
[server-status id="X,X,X"]
不顯示某些文章,只有在未設定“id”時有效。
[server-status exclude="X"]
功能
支援大多數常見協定(TCP、UDP、HTTP、HTTPS)(FTP 在未來支援)
定義人性化的名稱以供顯示
定義主機名稱
定義埠號
定義超時時間(秒)
定義協定
拖放排序
編輯和刪除伺服器 / 服務
前端用於檢查一個或多個伺服器的簡碼
簡單、清晰和易於理解的設置頁面
篩選可用的配置
設置頁面包含各種配置以適應您的需求
可以禁用 / 啟用伺服器和服務
包括用於在側邊欄中顯示伺服器的小工具
這個插件適用於你嗎?
如果你正在尋找一個完整的伺服器監控工具,這個插件不適合。請考慮使用第三方軟體,比如 zabbix。
否則,如果你只是想提供一個服務,讓你的使用者 / 訪問者檢查一個或多個伺服器是否運作正常,那麼這對你來說是有用的。
功能請求
你覺得這個插件沒有某個功能嗎?歡迎通過 WordPress 支援論壇或我的聯繫表與我聯繫,我很樂意討論任何功能請求。
請注意,功能必須能夠與核心 WordPress UI 無縫契合,並且不得具有侵入性或被視為廣告軟體。
有問題嗎?
如果你有任何問題沒有在這裡得到解答,請隨時發送電子郵件給我,我會在 48 小時內盡力回答你。
如果你發送電子郵件,回應時間通常會更快,而不是使用 WordPress 支援論壇。
原文外掛簡介
Important notice
This plugin is no longer in active development, do not use in high-availability environments.
Simple, efficient, ad- and bloatfree plugin for testing whether or not a given server address is up for just you, or everyone else on a given port and protocol.
Servers & services are checked in real-time whenever a user requests to view the page where the shortcode is inserted.
Intuitive interface, makes is really easy to maintain servers & services to check.
You have the ability to filter/hook the message displayed to the user through functions.php in your theme folder.
add_filter( "atr_server_success_message", function($message, $server) {
return $server->humanname." appears to be working alrstight.";
}, 10, 2);
add_filter( "atr_server_error_message", function($message, $server) {
return $server->humanname." is down.";
}, 10, 2);
You can also use the filter “atr_perm_administer_servers” to alter the permission being used to check access rights.
add_filter( "atr_perm_administer_servers", function( $permission ) {
$permission = "editor";
return $permission;
} );
Shortcode Examples
Displays all servers entered in wp-admin
[server-status]
Display server by certain id
[server-status id="X"]
Display servers by multiple id’s
[server-status id="X,X,X"]
Excludes certain posts from display, only works if ‘id’ is not set.
[server-status exclude="X"]
Features
Supports most common protocols (TCP, UDP, HTTP, HTTPS) (FTP is on the todo)
Define a human friendly readable name for display
Define hostname
Define port
Define timeout in seconds
Define protocol
Drag’n’drop ordering
Edit and delete servers/services
Shortcodes for checking one or more servers frontend
Simple, clear and well explained settings page
Filter available configurations
Settings page with various configrations to suit your needs
Possible to disable/enable servers and services
Includes a widget for displaying servers in sidebars
Is this plugin for you?
If you’re looking for a full fledged server monitoring tool, no. Consider using thirdparty software such as zabbix instead
Otherwise, if you just want to provide a service, for your users/visitors to check whether or not one or more of your servers is running healthy then yes, this is for you.
Feature requests
Think this plugin is missing a feature? I’ll gladly discuss any feature requests sent to me either through the wordpress support forums, or via my contact formular.
Keep in mind, features must be able to fit seamlessly with the core wordpress UI, and must not be intrusive, or considered adware.
Got a question?
If you have any questions not answered here, do feel free to send me an email and I’ll do my best to answer you within 48 hours.
Response time is usually faster if you send me a mail, instead of using the wordpress support forums.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「ATR Server Status」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1.2 | 1.1.3 | 1.1.4 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.3.0 | 1.3.4 | 1.4.0 | 1.4.1 | 1.4.3 | 1.5.0 | 1.5.1 | trunk |
延伸相關外掛(你可能也想知道)
Apache Status & Info 》當你想要使用 Apache 伺服器的 server-info 和/或 server-status 時,你必須修改 (直接在你的 .htaccess 文件中) WordPress 生成的重寫規則。而且你必須每次 ...。