NagVis 1.6.3 does have a bug that prevents you from images showing, but there is a bug fix.
Images do not show when you add them. This is a bug that can be fixed with the following code by editing this file:
/usr/local/nagvis/share/server/core/classes/objects/NagVisShape.php
Old Settings
Code: Select all
public function __construct($CORE, $icon) {
if(parent::$iconPath === null) {
parent::$iconPath = cfg('sys', 'global', 'shapes');
parent::$iconPathLocal = cfg('sys', 'local', 'shapes');
}
public function fetchIcon() {
if($this->icon[0] != '[') {
if(!file_exists(parent::$iconPath . $this->icon)
&& !file_exists(parent::$iconPathLocal . $this->icon)) {
$this->icon = 'std_dummy.png';
}
New Settings
Code: Select all
public function __construct($CORE, $icon) {
if(self::$iconPath === null) {
self::$iconPath = $CORE->getMainCfg()->getPath('sys', 'global', 'shapes');
self::$iconPathLocal = $CORE->getMainCfg()->getPath('sys', 'local', 'shapes');
}
public function fetchIcon() {
if($this->icon[0] != '[') {
if(!file_exists(self::$iconPath . $this->icon)
&& !file_exists(self::$iconPathLocal . $this->icon)) {
$this->icon = 'std_dummy.png';
}