The ID-wrapper script (id_wrapper.php) allows users to embed a link to the NConf 'details' page, knowing only the
The item type and name are passed to the wrapper-script as GET-parameters.
http://demo.nconf.org/id_wrapper.php?item=host&id_str=localhost
will redirect you to
http://demo.nconf.org/detail.php?id=5260
http://...nconf/id_wrapper.php?item=host&id_str=<hostname> http://...nconf/id_wrapper.php?item=contact&id_str=<contactname>
for services you must also pass the corresponding hostname
http://...nconf/id_wrapper.php?item=service&id_str=<hostname>:<servicename>
If you wish to use the Action URL for linking hosts/services within Nagios to the corresponding NConf detail view, you need to modify the 'action_url' attribute.
You may set the 'action_url' for a host or service directly, or you may set it for multiple hosts/services using a template.
Here we will modify the action url for the class 'host':
“Administration” > “Attributes” > “Show” > “host” > edit “action_url”
Add the following line to the end of the list of possible values:
::http://URL_TO_NCONF/id_wrapper.php?item=host&id_str=$HOSTNAME$
Just replace URL_TO_NCONF with your NConf URL:
action url's ahead