Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js/vis.map missing #1

Open
brianegge opened this issue Dec 3, 2019 · 3 comments
Open

js/vis.map missing #1

brianegge opened this issue Dec 3, 2019 · 3 comments

Comments

@brianegge
Copy link
Contributor

brianegge commented Dec 3, 2019

I installed the plugin, but when I view the page it's empty. Is there an error recorded in a log somewhere? I don't see anything in the apache2 log or the librenms log.

OK, I see in Chrome it's missing the javascript

@brianegge brianegge changed the title Nothing displayed js/vis.map missing Dec 3, 2019
@blizko
Copy link
Owner

blizko commented Dec 7, 2019

The HTML part of the code depends on JS files that are presented in core LibreNMS code

<script src="js/vis.min.js"></script>
<script type="text/javascript">

Which version of LibreNMS are you using? Do standard LibreNMS maps work for you?

@brianegge
Copy link
Contributor Author

I see the problem. If network_map_vis_options is not defined, then the javascript fails:

var options =  <?php echo $config['network_map_vis_options']; ?>;

@PeterKnotek
Copy link

Olaaaaaa

Maps work, but write invalid hostname ....
HostName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants