Hello,
For the last year i've been happily running weathermap standalone, using cacti's rrd files, now i want to move my cacti setup to a new environment, with a main and dedicated poller, and use boost.
And I can't make weathermap talk to cacti database. When I set the SET rrd_use_poller_output 1 at the top of the config file. I get this:
RRD ReadData: poller_output - Cacti environment is not right [WMRRD12]
I edited cacti-pick.php and corrected $cacti_base to point to the right dir, but result is the same.
I see that lib/database.php:weathermap_get_pdo() uses some variables...
$host = $database_hostname;
$dbname = $database_default;
$user = $database_username;
$pass = $database_password;
But i'm not sure, if it will be a good idea to set the right values there or if there's a better place to do that.
Thank you very much
Setup
Debian 10
cacti 1.2.8
weathermap v0.98a
PHP 7.3.11-1~deb10u1
10.3.18-MariaDB
Standalone weathermap can talk to cacti?
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Standalone weathermap can talk to cacti?
Simple... If you are running standalone, don't add rrd_use_poller_output
That tells Weathermap to use data from the Cacti database. In standalone, you can't access that data, as weathermap isn't integrated with Cacti. This has always been true, so I'm not sure what was happening before for you.
Yes, you could patch in the values in the database.php - you might hit other errors. I *think* that the poller_output part of the RRD plugin also uses cacti's logging functions, which wouldn't be available if you did this.
That tells Weathermap to use data from the Cacti database. In standalone, you can't access that data, as weathermap isn't integrated with Cacti. This has always been true, so I'm not sure what was happening before for you.
Yes, you could patch in the values in the database.php - you might hit other errors. I *think* that the poller_output part of the RRD plugin also uses cacti's logging functions, which wouldn't be available if you did this.
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!)
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!)
-
- Posts: 40
- Joined: Mon Jan 28, 2008 4:11 am
Re: Standalone weathermap can talk to cacti?
Hi Howie, thanks, but if i don¡'t add the rrd_use_poller_output, running weathermap will most likely create empty maps, as data won't be written to rrd files yet.
Before i was not using boost and everything worked nicely, except host was quite unresponsive 2 out of every 5 minutes, while the polling was writing data to rrd files.
Isn't there a way to run standalone weathermap and cacti+boost?.
Before i was not using boost and everything worked nicely, except host was quite unresponsive 2 out of every 5 minutes, while the polling was writing data to rrd files.
Isn't there a way to run standalone weathermap and cacti+boost?.
Last edited by nicolatron on Wed Jan 29, 2020 6:12 am, edited 1 time in total.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Standalone weathermap can talk to cacti?
Not really. The rrd_use_poller_output uses a hook in the poller to capture data as it's collected. That doesn't exist without the plugin.
You could try phalek's modified weathermap for Cacti 1.x...
You could try phalek's modified weathermap for Cacti 1.x...
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!)
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!)
-
- Posts: 40
- Joined: Mon Jan 28, 2008 4:11 am
Re: Standalone weathermap can talk to cacti?
I see. I'm already trying that route... finding problems as I use to... Thanks
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Standalone weathermap can talk to cacti?
OK, well my plan is still to get all my rewrite changes finished and then get to the 1.x version. But that doesn't really help you now, either.
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!)
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!)
-
- Posts: 40
- Joined: Mon Jan 28, 2008 4:11 am
Who is online
Users browsing this forum: No registered users and 4 guests