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 | ||
Level | Trivial Change | ||
Class | Bug Fix | ||
Compatibility | Incompatible - Manual interaction might be required | ||
Checkmk versions & editions |
|
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()