(specifying a device is only supported under Linux) Such items are still rechecked at a fixed interval, configurable in Administration section. 2 Unsupported itemsĪn item can become unsupported if its value can not be retrieved for some reason. If an empty "encoding" parameter is passed, then ANSI with system specific extension (Windows) or UTF-8 (default locale for newer Unix/Linux distributions, see your system's settings) is used by default. For a list of supported encodings (code page identifiers), please consult respective documentation, such as documentation for libiconv (GNU Project) or Microsoft Windows SDK documentation for "Code Page Identifiers". The parameter "encoding" is used to specify encoding for processing corresponding item checks, so that data acquired will not be corrupted. If the key parameter is an array, it is again enclosed in square brackets, where individual parameters come following multiple parameters specifying rules and syntax. If the key parameter is an unquoted string, any Unicode character is allowed except comma and right square bracket (]). If the key parameter is a quoted string, any Unicode character is allowed, and included double quotes must be backslash escaped. For example, item key icmpping would specify that the interval between individual pings is 200 milliseconds, timeout - 500 milliseconds, and all other parameters are left at their defaults. In that case, the appropriate number of commas must be added if any further parameters are specified. The parameter can also be left empty, thus using the default value. Allowed characters are:Īn item key can have multiple parameters that are comma separated.Įach key parameter can be either a quoted string, an unquoted string or an array. The key name itself has a limited range of allowed characters, which just follow each other. To construct a valid item key, one starts with specifying the key name, then there's a choice to either have parameters or not - as depicted by the two lines that could be followed. Allowed elements and characters at each point can be determined by following the arrows - if some block can be reached through the line, it is allowed, if not - it is not allowed. The following illustrations depict supported syntax. Item key format, including key parameters, must follow syntax rules. '*' is any string that will be passed as an argument to the parameter. For example, vfs.fs.size is a flexible parameter. 1 Item key 1.1 Flexible and non-flexible parametersĪ flexible parameter is a parameter which accepts an argument. 1.1 Flexible and non-flexible parametersĪn item is a single performance or availability check (metric).The first thing to edit is the array of site names/ URLs. So the check.php file is protected from external abuse. htaccess file is required because it forbids any public access to the app files. Important: Make sure both files are included in the app folder. Unzip the download file to get the following folder/files: /diy-server-status-monitor If you enjoy this app, please donate to help ensure future development :) 2) Edit the app file 1) Download the appĭownload the latest version. Once in place, the script will keep an eye on your sites and send an email alert if any site is down. After satisfactory testing, this app “set it and forget it”, with no further action on your part. Here is an overview of how to implement DIY uptime monitor:ĭone! Remember to test well. If you host your websites and the uptime app on the same server, and the server goes down, the app won’t be able to run. Important! For best results, the uptime monitor app should be hosted on a separate server. Any server that supports PHP, Cron, and.The requirements for this app are simple: Enjoy!Ī barebones server uptime monitor written in PHP. So decided roll my own DIY server status monitor and share it here at Perishable Press. I’ve tried other scripts and services but nothing that met my specific needs: simple, secure, lightweight and blazing fast. The sooner you know about it, the sooner you can scramble to get everything back online. These services are popular because it’s mission critical to know when your sites are down. There are many free (and commercial) uptime monitoring services that will alert you if your server goes offline.
0 Comments
Leave a Reply. |