05.02.2013 Views

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>opsi</strong> <strong>manual</strong> <strong>opsi</strong> <strong>version</strong> <strong>4.0.2</strong><br />

service_description <strong>opsi</strong>-productstatus-<strong>opsi</strong>clientagent<br />

check_command check_<strong>opsi</strong>productstatus!<strong>opsi</strong>-client-agent<br />

check_interval 10<br />

}<br />

define service{<br />

use <strong>opsi</strong>-service-tmpl<br />

hostgroup_name <strong>opsi</strong>-server<br />

service_description <strong>opsi</strong>-productstatus-<strong>opsi</strong>essentials-group<br />

check_command check_<strong>opsi</strong>productStatus_withGroups!<strong>opsi</strong>essentials!productiveclients<br />

check_interval 10<br />

}<br />

define service{<br />

use <strong>opsi</strong>-service-tmpl<br />

hostgroup_name <strong>opsi</strong>-server<br />

service_description <strong>opsi</strong>-productstatus-<strong>opsi</strong>essentials-group-longoutput<br />

check_command check_<strong>opsi</strong>productStatus_withGroups_long!<strong>opsi</strong>essentials!productiveclients<br />

check_interval 10<br />

}<br />

168 / 193<br />

In the third and last part of the file, the checks which are should run directly on the clients (direct checks) are defined.<br />

These checks are (for example) not assigned to hostgroups but to single hosts or lists of hosts<br />

(client.domain.local,depotclient.domain.local).<br />

Some description:<br />

• <strong>opsi</strong>-direct-checkpluginonclient<br />

runs a normal direct check on the client and results to unknown if the client is offline.<br />

At this check the config server try’s to reach the client directly.<br />

• <strong>opsi</strong>-direct-checkpluginonclient-with-servicestate<br />

is equal to <strong>opsi</strong>-direct-checkpluginonclient, but returns the last valid result if the client is offline (instead of unknown)<br />

• <strong>opsi</strong>-direct-checkpluginonclient-from-depot<br />

is equal to <strong>opsi</strong>-direct-checkpluginonclient, but the client will be connected by the server which is given in the host<br />

configuration as _depotid.<br />

define service{<br />

use <strong>opsi</strong>-service-tmpl<br />

host_name client.domain.local,depotclient.domain.local<br />

service_description <strong>opsi</strong>-direct-checkpluginonclient<br />

check_command check_<strong>opsi</strong>pluginon_client!"C:\\<strong>opsi</strong>.org\\nagiosplugins\\check_memory.exe"<br />

check_interval 10<br />

}<br />

define service{<br />

use <strong>opsi</strong>-service-tmpl<br />

host_name client.domain.local<br />

service_description <strong>opsi</strong>-direct-checkpluginonclient-with-servicestate<br />

check_command check_<strong>opsi</strong>pluginon_client_with_states!"C:\\<strong>opsi</strong>.org\\nagiosplugins\\\<br />

check_memory.exe"<br />

check_interval 10<br />

}<br />

define service{<br />

use <strong>opsi</strong>-service-tmpl<br />

host_name depotclient.domain.local<br />

service_description <strong>opsi</strong>-direct-checkpluginonclient-from-depot<br />

check_command check_<strong>opsi</strong>pluginon_client_from_depot!"C:\\<strong>opsi</strong>.org\\nagiosplugins\\check_memory\<br />

.exe"<br />

check_interval 10<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!