NPC top header is missing

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
cr0c
Posts: 1
Joined: Thu Sep 17, 2015 5:06 am

NPC top header is missing

Post by cr0c »

Hello!

I just installed NPC plugin on to Cacti 0.8.8f and it's missing the top header. Seems like the iframe is not working. I added iframe allow to apache config.

Code: Select all

Header set X-Frame-Options SAMEORIGIN
This is what apache log gives me:

Code: Select all

File does not exist: /data/cacti/include/treeview, referer: http://url/cacti/plugins/npc/npc.php
The treeview does not exist under include directory. Should it be like that?

Screenshot added as well as attachment.

Any ideas what could cause this?
Attachments
screen.png
screen.png (131.43 KiB) Viewed 1368 times
xhw1096
Posts: 1
Joined: Wed Oct 07, 2015 10:35 pm

Re: NPC top header is missing

Post by xhw1096 »

Cacti breaks the iframe settings. if you want to show iframe/frame, change the following parameter to false, which in cacti file include/csrf/csrf-magic.php

/**
* Set this to false if your site must work inside of frame/iframe elements,
* but do so at your own risk: this configuration protects you against CSS
* overlay attacks that defeat tokens.
*/
$GLOBALS['csrf']['frame-breaker'] = true;
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests