Test Service Check

It is possible to run a test service check to check if the arguments supplied to a plugin will work during the configuration of a host.

URL: /rest/config/host/testservicecheck

Method: GET or POST

Input URL parameters:

A successful execution will return:

    {
       "command" : "check_snmp_sysinfo -H '127.0.0.1' -t 5 -v '3' -U 'user3' -P XXauthpasswordXX -a \"md5\" -e 'des' -x XXprivpasswordXX",
       "monitored_by" : "master",
       "return_code" : "0",
       "stderr" : "",
       "stdout" : "Status is OK - SYSTEM: debian7 CONTACT: Joe Bloggs LOCATION: Reading, UK, IN SNMP AGENT: .1.3.6.1.4.1.8072.3.2.10 Linux debian7 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3 i686\n"
    }

Note

The passwords will be cleansed of the actual value.

An audit log entry will be made on successful execution.

An error will return a status code of 400 with an error message.

["Opsview On-premises"] ["API", "Technical Reference"]

Was this topic helpful?