NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
113 stars 73 forks source link

Cant manage backends #288

Open brusilva84 opened 3 years ago

brusilva84 commented 3 years ago

I've made a clean install of nagvis but when i go to manage backends I get this error:

Invalid JSON response
Time: 1620830354
URL: /nagvis/server/core/ajax_handler.php?mod=MainCfg&act=manageBackends&_ajaxid=1620830354
Response:

Default Backend

Default Backend | {"type":"error","message":"Error: (0) Trying to access array offset on value of type nullURL: \/nagvis\/server\/core\/ajax_handler.php?mod=MainCfg&act=manageBackends&_ajaxid=1620830354\nFile: \/usr\/local\/nagvis\/share\/server\/core\/classes\/ViewManageBackends.php\nLine: 95\n#0 \/usr\/local\/nagvis\/share\/server\/core\/classes\/ViewManageBackends.php(95): nagvisExceptionErrorHandler()\n#1 \/usr\/local\/nagvis\/share\/server\/core\/classes\/ViewManageBackends.php(270): ViewManageBackends->defaultForm()\n#2 \/usr\/local\/nagvis\/share\/server\/core\/classes\/CoreModMainCfg.php(52): ViewManageBackends->parse()\n#3 \/usr\/local\/nagvis\/share\/server\/core\/functions\/index.php(120): CoreModMainCfg->handleAction()\n#4 \/usr\/local\/nagvis\/share\/server\/core\/ajax_handler.php(59): require('\/usr\/local\/nagv...')\n#5 {main}<\/code>Output:

Default Backend<\/h2>\n\n\n\n
Default Backend<\/td><\/pre>","title":"Error: PHP Error"} -- | --
brusilva84 commented 3 years ago

I could really use some help on this.

p-collins commented 2 years ago

You need to set a default backend in your config (nagvis.ini.php) for example:

backend="live_1"

depending what backend id you have set up