External documentation: http://nagiosplugins.org/man/check_dns
Checking a server ping is a really simple start to Upsilon.
- GOOD - If the server is responding to pings within the warning time.
- WARN - If the server is responding to pings within the "critical" time.
- BAD - If the server is not responding to pings within the "critical" time.
The `check_ping` command is packed up with Nagios on many Linux distributions. You can install this command WITHOUT having to install all the bloat of nagios. Because Upsilon is compatible with all nagios plugins, you could install all the nagios plugins that come with your distribution.
|Distribution||Provided by Distribution package||Location to ping command|
This path uses the path for Fedora. If you are using Debian or another distro, please correct the path for your system.
Define the command - "How to ping"
The nagios check_ping command looks like this, when executed from a normal shell;
As you can see, this check takes quite a few arguments, even for ping! -H is the hostname/ip address to ping, -w is "warning" and -c is "critical". You can see this argument value is separated by a comma. The first part (eg:75, shown above) means "this service should produce a warning, if the ping time is over 75ms. The 10%, means allow 10% packet loss. Finally, the -c in this command means "ping 3 times, take an average".
You now need to define this command in your upsilon configuration file:
Define the service - "What to ping"
Once the command is defined, you can setup hosts to ping by defining *services*, like this:
<config> ... <service id = "importantServerPing" commandRef = "checkPing"> <argument>192.168.66.50</argument> </service> ... </config>
This means that you define the command once, and for additional hosts, just add <service /> definitions to your configuration file.
<command id = "checkPing" args = "ONE TWO" />