Thanks for your reply. I don’t clearly understand your reply. I didn’t find above mentioned type coding in weathermap.php file. Would you tell me that, use case of this code $rrdtool=“/usr/bin/rrdtool”; here.
Actually, I am facing “404 | not found” error when try open map.
More details are explain here HTML Pages not being automated created in output folder (/opt/librenms/html/plugins/Weathermap/output/)
[root@LibreNMS-3 Weathermap]# cat Weathermap.php
<?php namespace LibreNMS\Plugins; include_once 'lib/editor.inc.php'; class Weathermap { public static $name = 'Weathermap'; public static function menu() { //Include config include 'config.inc.php'; //Parse config files $files = list_weathermaps($mapdir); //Create submenu $submenu = '- ';
$count = 0;
foreach ($files as $file => $data) {
$submenu .= '
- ' . htmlspecialchars($data['title']) . ' '; $count++; } $submenu .= '