howardjones / network-weathermap

Network Weathermap draws diagrams from data
http://www.network-weathermap.com/
MIT License
423 stars 95 forks source link

Weathermap CACTI 1.2.7 #231

Closed tatcar55 closed 4 years ago

tatcar55 commented 4 years ago

Hi

I install weathermap on cacti 1.2.7 Centos 7, but I have some problems. can you help me please?

Captura1

2019/10/15 08:51:10 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[750]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:weathermap_poller_bottom(), /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[176]:Weathermap\Poller\runMaps(), /plugins/weathermap/lib/Weathermap/Poller/poller-common.php[84]:Weathermap\Poller\MapRuntime->run(), /plugins/weathermap/lib/Weathermap/Poller/MapRuntime.php[148]:Weathermap\Core\Map->readData(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1569]:Weathermap\Core\Map->readDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1513]:Weathermap\Core\MapDataItem->performDataCollection(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[232]:Weathermap\Core\MapDataItem->collectDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[264]:Weathermap\Core\Target->readData(), /plugins/weathermap/lib/Weathermap/Core/Target.php[124]:Weathermap\Plugins\Datasources\CactiHostStatus->readData(), /plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php[93]:CactiErrorHandler())

2019/10/15 08:51:10 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined variable: statename in file: /var/www/html/cacti-1.2.7/plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php on line: 93 2019/10/15 08:50:41 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[796]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:weathermap_poller_bottom(), /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[176]:Weathermap\Poller\runMaps(), /plugins/weathermap/lib/Weathermap/Poller/poller-common.php[84]:Weathermap\Poller\MapRuntime->run(), /plugins/weathermap/lib/Weathermap/Poller/MapRuntime.php[148]:Weathermap\Core\Map->readData(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1569]:Weathermap\Core\Map->readDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1513]:Weathermap\Core\MapDataItem->performDataCollection(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[232]:Weathermap\Core\MapDataItem->collectDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[264]:Weathermap\Core\Target->readData(), /plugins/weathermap/lib/Weathermap/Core/Target.php[124]:Weathermap\Plugins\Datasources\CactiHostStatus->readData(), /plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php[93]:CactiErrorHandler()) 2019/10/15 08:50:41 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined variable: statename in file: /var/www/html/cacti-1.2.7/plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php on line: 93 2019/10/15 08:50:12 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[750]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:weathermap_poller_bottom(), /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[176]:Weathermap\Poller\runMaps(), /plugins/weathermap/lib/Weathermap/Poller/poller-common.php[84]:Weathermap\Poller\MapRuntime->run(), /plugins/weathermap/lib/Weathermap/Poller/MapRuntime.php[148]:Weathermap\Core\Map->readData(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1569]:Weathermap\Core\Map->readDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1513]:Weathermap\Core\MapDataItem->performDataCollection(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[232]:Weathermap\Core\MapDataItem->collectDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[264]:Weathermap\Core\Target->readData(), /plugins/weathermap/lib/Weathermap/Core/Target.php[124]:Weathermap\Plugins\Datasources\CactiHostStatus->readData(), /plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php[93]:CactiErrorHandler()) 2019/10/15 08:50:12 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined variable: statename in file: /var/www/html/cacti-1.2.7/plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php on line: 93 2019/10/15 08:49:42 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller.php[796]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:weathermap_poller_bottom(), /plugins/weathermap/lib/Weathermap/Integrations/Cacti/cacti-plugin-poller.php[176]:Weathermap\Poller\runMaps(), /plugins/weathermap/lib/Weathermap/Poller/poller-common.php[84]:Weathermap\Poller\MapRuntime->run(), /plugins/weathermap/lib/Weathermap/Poller/MapRuntime.php[148]:Weathermap\Core\Map->readData(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1569]:Weathermap\Core\Map->readDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/Map.php[1513]:Weathermap\Core\MapDataItem->performDataCollection(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[232]:Weathermap\Core\MapDataItem->collectDataFromTargets(), /plugins/weathermap/lib/Weathermap/Core/MapDataItem.php[264]:Weathermap\Core\Target->readData(), /plugins/weathermap/lib/Weathermap/Core/Target.php[124]:Weathermap\Plugins\Datasources\CactiHostStatus->readData(), /plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php[93]:CactiErrorHandler()) 2019/10/15 08:49:42 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined variable: statename in file: /var/www/html/cacti-1.2.7/plugins/weathermap/lib/Weathermap/Plugins/Datasources/CactiHostStatus.php on line: 93

Captura4

howardjones commented 4 years ago

This is all expected. It's unfinished.

tatcar55 commented 4 years ago

Could there be a solution? or it's not possible on cacti 1.2.7

howardjones commented 4 years ago

It isn't possible on Cacti 1.x right now. I'm working on a version that will, but it's going slowly.

tatcar55 commented 4 years ago

OK thank you very much

netniV commented 4 years ago

Once Howie has finished his UI/Core separation, I'll be working on the Cacti UI part so it keeps with Cacti's normal standards.

The idea is to free up Howie's time by not making him worry about ever changing UI standards and keeping the core working well against any of its sources/integrations. 👍

There's a lot of work for both of us, unfortunately, and its our free time that we give up to do it when we can, which isn't always easy after a long hard day at the office or when family life wants/needs/demands our attention.

The good news is that the runtime works well and Howie's done a great job on that.