monitor-ninja icon indicating copy to clipboard operation
monitor-ninja copied to clipboard

Selecting actions on hostgroup gives error

Open techadrian opened this issue 7 years ago • 1 comments

Hello Guys,

When selecting the Actions Icon on a Hostgroups View (Menu Locatgion : Monitor/Hostgroups/All Hostgroups) I receive the following error : Fatal error: Call to undefined method HostGroup_Model::get_icon_image() in /var/www/html/ninja/modules/monitoring/controllers/extinfo.php on line 324

I managed to track down the problem here : /var/www/html/ninja/modules/monitoring/models/base/basehostgroup.php Therese ones seem to be missing : private $icon_image = ""; private $icon_image_alt = "";

in comparison with /var/www/html/ninja/modules/monitoring/models/base/basehost.php .

Same goes for Servicegroups, same error same apparently incomplete class.
Making the changes manually to basehostgroup.php and baseservicegroup.php fixed the issue. I suspect something happening at build, maybe you can have a look. I attached both files, modified and original to take a look.

Cheers, Adrian

basehostgroup.php.zip

techadrian avatar Jan 27 '17 09:01 techadrian