Sometimes the Host
Check Commands that Opsview Monitor has by default are not sufficient for the
environment in which it is deployed. In this scenario you have the option to add
your own Host Check Command using the section located at ‘Settings > Host
Example menu showing the ‘Host
Check Commands’ menu option
The ‘Host Check
Commands’ menu option is located on page 2/2 within the ‘Settings’ tab, as seen
in the screen above.
Once clicked the ‘Host
Check Commands’ page will load, which should look similar to the screen below:
Host Check Commands list page
within the ‘Settings’ section.
To add a new Host
Check Command, click on the ‘Add New’ button within the tool bar:
‘Add New’ button is visible
below the ‘signpost’ icon.
Once the ‘Add New’
button has been clicked, a ‘New Host Check Command’ modal window will appear.
Within this window are three boxes that are user-configurable:
A friendly name for the new Host Check Command. This name will be displayed in
the drop-down menus when configuring Hosts.
Plugin: The plugin to use when executing the Host Check Command.
Arguments: The arguments to pass to the aforementioned plugin. The Host
Check Command comprises of the ‘plugin + arguments’.
When the plugin is
changed, the ‘Plugin Help’ text will change based on the help text for the
chosen plugin. If the plugin has no help text, then this section will be
displayed without any text.
In the example below,
we have created a new Host Check Command that checks for a TCP response on port
8080 (in an example scenario of having changed the default Apache2 port to
Example ‘New Host Check Command’
that checks for a response on TCP port 8080.
Once the new Host
Check Command is configured, click ‘Submit Changes’. The new Host Check
Command will appear in the list of all Host Check Command’s but will be
highlighted yellow to depict that while it has been added, a reload is
required to enable it to be used within the system:
A Host Check Command ‘HTTP
(8080)’ has been added yet a reload is required to apply the changes.
To apply this newly created
Host Check Command to one or more Hosts, please follow the guides outlined in Sections 220.127.116.11 (Configuring a Host: ‘Host’ tab) and 18.104.22.168 (How to edit
multiple Hosts in bulk).