Weathermap plugin PHP error

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
mcthcc
Posts: 2
Joined: Wed Jun 03, 2020 9:30 am

Weathermap plugin PHP error

Post by mcthcc »

Cacti Version 1.2.11
Weathermap 0.98a (I believe this is still correct)

My weathermap stopped updating after I edited the .conf file (I simply updated a data source) and now the plugin has disappeared from my Cacti server completely. In the admin logs, I see these messages right around the last timestamp that the weathermap updated. Any ideas?

2021/08/16 07:53:37 - WEATHERMAP [Map 2] HCC-Core-Edge.conf: Wrote map to /usr/share/cacti/plugins/weathermap/output/ebd6f0b2b1259bf895f5.png and /usr/share/cacti/plugins/weathermap/output/ebd6f0b2b1259bf895f5.thumb.png
2021/08/16 07:53:37 - WEATHERMAP WARNING: [Map 2] HCC-Core-Edge.conf: Failed to create ebd6f0b2b1259bf895f5.html - permissions of output directory are wrong? [WMPOLL03]
2021/08/16 07:53:37 - WEATHERMAP STATS: Weathermap 0.98a run complete - Mon, 16 Aug 21 07:53:37 -0400: 1 maps were run in 1 seconds with 93 warnings.
2021/08/16 07:53:51 - ERROR PHP WARNING in Plugin 'weathermap': Creating default object from empty value in file: /usr/share/cacti/plugins/weathermap/editor.php on line: 373
2021/08/16 07:53:51 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[373]:CactiErrorHandler())
2021/08/16 07:53:51 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:53:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:53:51 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:53:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:53:51 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:53:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:53:51 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:53:51 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:53:51 - ERROR PHP ERROR in Plugin 'weathermap': Call to undefined method stdClass::asJS() in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3696
2021/08/16 07:53:51 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021/08/16 07:53:51 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2021/08/16 07:53:51 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2021/08/16 07:54:01 - ERROR PHP WARNING in Plugin 'weathermap': Creating default object from empty value in file: /usr/share/cacti/plugins/weathermap/editor.php on line: 373
2021/08/16 07:54:01 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[373]:CactiErrorHandler())
2021/08/16 07:54:01 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:54:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:54:01 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:54:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:54:01 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:54:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:54:01 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:54:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:54:01 - ERROR PHP ERROR in Plugin 'weathermap': Call to undefined method stdClass::asJS() in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3696
2021/08/16 07:54:01 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021/08/16 07:54:01 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2021/08/16 07:54:01 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2021/08/16 07:54:02 - POLLER: Poller[1] WARNING: Invalid Response(s), Errors[1] Device[11] Thread[1] DS[756]
2021/08/16 07:54:06 - SYSTEM STATS: Time:4.4465 Method:cmd.php Processes:1 Threads:0 Hosts:9 HostsPerProcess:9 DataSources:667 RRDsProcessed:333
2021/08/16 07:54:32 - POLLER: Poller[1] WARNING: Invalid Response(s), Errors[1] Device[11] Thread[1] DS[756]
2021/08/16 07:54:36 - SYSTEM STATS: Time:4.4088 Method:cmd.php Processes:1 Threads:0 Hosts:9 HostsPerProcess:9 DataSources:667 RRDsProcessed:332
2021/08/16 07:54:36 - POLLER: Poller[1] WARNING: You have 2 Devices with bad SNMP Indexes. Devices: Device[2], Device[3] totalling 2 Data Sources. Please Either Re-Index, Delete or Disable these Data Sources.
2021/08/16 07:55:02 - POLLER: Poller[1] WARNING: Invalid Response(s), Errors[1] Device[11] Thread[1] DS[756]
2021/08/16 07:55:06 - SYSTEM STATS: Time:4.5305 Method:cmd.php Processes:1 Threads:0 Hosts:9 HostsPerProcess:9 DataSources:667 RRDsProcessed:333
2021/08/16 07:55:06 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
2021/08/16 07:55:17 - ERROR PHP WARNING in Plugin 'weathermap': Creating default object from empty value in file: /usr/share/cacti/plugins/weathermap/editor.php on line: 373
2021/08/16 07:55:17 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[373]:CactiErrorHandler())
2021/08/16 07:55:17 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:55:17 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:55:17 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:55:17 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:55:17 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$name in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3100
2021/08/16 07:55:17 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3100]:CactiErrorHandler())
2021/08/16 07:55:17 - ERROR PHP NOTICE in Plugin 'weathermap': Undefined property: stdClass::$defined_in in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3101
2021/08/16 07:55:17 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[21]:require_once(), /plugins/weathermap/editor.php[396]:WeatherMap->WriteConfig(), /plugins/weathermap/lib/Weathermap.class.php[3101]:CactiErrorHandler())
2021/08/16 07:55:17 - ERROR PHP ERROR in Plugin 'weathermap': Call to undefined method stdClass::asJS() in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 3696
2021/08/16 07:55:17 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021/08/16 07:55:17 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
Attachments
cacti_wm_php.png
cacti_wm_php.png (135.1 KiB) Viewed 4088 times
mcthcc
Posts: 2
Joined: Wed Jun 03, 2020 9:30 am

Re: Weathermap plugin PHP error

Post by mcthcc »

I enabled the Weathermap plugin by going to Configuration>Plugins and enabling the plugin on the Cacti GUI. Then the service dies almost immediately after:

2021/08/16 10:38:36 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2021/08/16 10:38:36 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021/08/16 10:38:36 - ERROR PHP ERROR in Plugin 'weathermap': Call to a member function add_hint() on null in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 2260

After that, I made some small edits to the .conf file of the map. A node name didn't match between a node stanza and a connected link stanza. Once I made them match, the map is updating now.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Weathermap plugin PHP error

Post by Howie »

Was there anything unusual about the node name? (spaces, funny characters...)

A link with a non-existent node name doesn't usually cause so much trouble!
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mrtuhin
Posts: 1
Joined: Fri Oct 29, 2021 7:41 am

Re: Weathermap plugin PHP error

Post by mrtuhin »

mcthcc wrote: Mon Aug 16, 2021 9:50 am I enabled the Weathermap plugin by going to Configuration>Plugins and enabling the plugin on the Cacti GUI. Then the service dies almost immediately after:

2021/08/16 10:38:36 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
2021/08/16 10:38:36 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021/08/16 10:38:36 - ERROR PHP ERROR in Plugin 'weathermap': Call to a member function add_hint() on null in file: /usr/share/cacti/plugins/weathermap/lib/Weathermap.class.php on line: 2260

After that, I made some small edits to the .conf file of the map. A node name didn't match between a node stanza and a connected link stanza. Once I made them match, the map is updating now.
Hello I M suffering with this trouble. I have tried to change node name to IP address but after submission i am unable to edit.conf file. its shows error 505 page cannot be displayed when try to edit a conf file. Please help me, What small change you have made??
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest