Werk #4236: Removed g_hostname and g_service_description from Check API
Komponente | Checks & agents |
Titel | Removed g_hostname and g_service_description from Check API |
Datum | 10.01.2017 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.5.0i1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Inkompatibel - Manuelle Interaktion könnte erforderlich sein |
In previous versions the check and inventory plugins of Check_MK could use the variable g_hostname to refer to the host that is currently being checked and g_service_description to get the description of the service that is currently being checked.
Instead of those variables, you can now use the functions host_name() and service_description()