InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Updated!
Moderators: Developers, Moderators
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
If you have cacti running, the you already have everything set. What permissions did you give the user that is configured in your /include/config.php from Cacti ?
If that user does not have permissions to create tables, then the plugin is not able to create them.
Do you have other plugins running ?
If that user does not have permissions to create tables, then the plugin is not able to create them.
Do you have other plugins running ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Yes I have run Monitor, Flowview, Weathermap, Syslog , Thold.
And The CereusTransporter is in the plugin Management. Now I added the creat table permission to the database user, but it's still error:
09/21/2016 01:19:10 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO `plugin_CereusTransporter_data` (`timestamp`, `local_data_id`, `key`, `value`) VALUES ('1474435141',7127,'traffic_in','1792766948065') '
When the creation of tables triggered?
And The CereusTransporter is in the plugin Management. Now I added the creat table permission to the database user, but it's still error:
09/21/2016 01:19:10 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO `plugin_CereusTransporter_data` (`timestamp`, `local_data_id`, `key`, `value`) VALUES ('1474435141',7127,'traffic_in','1792766948065') '
When the creation of tables triggered?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
I guess it may have something to do with the type of table being created.
The table creation only occurs during the installation of the plugin. It also creates a table of type "Memory".
Maybe this is causing your issue.
UPDATE: Removed setup.php file ( not fixing issue )
The table creation only occurs during the installation of the plugin. It also creates a table of type "Memory".
Maybe this is causing your issue.
UPDATE: Removed setup.php file ( not fixing issue )
Last edited by phalek on Wed Sep 21, 2016 12:37 am, edited 1 time in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Ops it's still not work.
Can I have the raw sql to create the table?
Can I have the raw sql to create the table?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Here you go:
Code: Select all
CREATE TABLE `plugin_CereusTransporter_data` (
`timestamp` VARCHAR(1024) NOT NULL DEFAULT '0',
`local_data_id` INT(11) NOT NULL DEFAULT '0',
`key` VARCHAR(1024) NOT NULL DEFAULT '0',
`value` VARCHAR(1024) NOT NULL DEFAULT '0',
INDEX `local_data_id` (`local_data_id`),
INDEX `key` (`key`)
)
COMMENT='NMID CereusTransporter Data'
COLLATE='latin1_swedish_ci'
ENGINE=MEMORY
;
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
It's OK !!!!!
but the host's cpu and memory is so high
but the host's cpu and memory is so high
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
You can try changing this:
to this:
That should reduce memory ( and maybe CPU if that was caused by swapping ).
Code: Select all
ENGINE=MEMORY
Code: Select all
ENGINE=MyISAM
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Hi phalek,
I find the value from influxdb is not the same as in Cacti. Is that I missed to to decode the value from Cacti?
I find the value from influxdb is not the same as in Cacti. Is that I missed to to decode the value from Cacti?
- Attachments
-
- 捕获.PNG (69.77 KiB) Viewed 4785 times
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
That appears to be the raw counter values. Cacti does the math for you and subtracts the current counter value from the previous counter value to give you the actual bits within that time period. Bits per second would be then dividing that number by 60.
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Thanks,
Is there any way I can do the math in Grafana or in the plugin CereusTransport?
Is there any way I can do the math in Grafana or in the plugin CereusTransport?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Yes, cigamit is right. INfluxDB contains the raw data and everything else needs to be done in the Graphing system.
In the example Dashboard provided I am using the following calculation for the interface data:
I got that from this page:
https://lkhill.com/using-influxdb-grafa ... tatistics/
In the example Dashboard provided I am using the following calculation for the interface data:
Code: Select all
SELECT 8*derivative(mean("value"),60s) AS "traffic_in" FROM "interface.traffic" WHERE "namecache" =~ /$title$/ AND "type" =~ /traffic_in/ AND $timeFilter GROUP BY time(5m)
https://lkhill.com/using-influxdb-grafa ... tatistics/
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Thanks 。 That's right now!!
but my query is:
SELECT derivative(mean("value"), 1m) /8 FROM "interface.traffic" WHERE "namecache" = '**********' AND "type" = 'traffic_in' AND $timeFilter GROUP BY time(1m)
but my query is:
SELECT derivative(mean("value"), 1m) /8 FROM "interface.traffic" WHERE "namecache" = '**********' AND "type" = 'traffic_in' AND $timeFilter GROUP BY time(1m)
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
wentaoyan if you have a nice Cacti Dashboard finished, it would be nice if you can post that here, or sent it to me so I can provide it as a download along with the plugin.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: InfluxDB/Grafana/Bosun + Cacti = CereusTransport - Upda
Hello,
I've installed influxdb, grafana, plugin, made change in MISC tab...And then? I dont quite know how to add/make graphs, or create dashboard, etc. I've tried to import the sample dashboard got this error :
Dashboard init failed
Template variables could not be initialized: b.metricFindQuery is not a function
Anyone have a guide or some tips on how to "glue" all together?.
I've installed influxdb, grafana, plugin, made change in MISC tab...And then? I dont quite know how to add/make graphs, or create dashboard, etc. I've tried to import the sample dashboard got this error :
Dashboard init failed
Template variables could not be initialized: b.metricFindQuery is not a function
Anyone have a guide or some tips on how to "glue" all together?.
Who is online
Users browsing this forum: No registered users and 0 guests