Werk #4236: Removed g_hostname and g_service_description from Check API
Component | Checks & agents |
Title | Removed g_hostname and g_service_description from Check API |
Date | Jan 10, 2017 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.5.0i1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Incompatible - Manual interaction might be required |
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()