Skip to content

Asychronous method to upload nagios performance data from nagflux to mysql.

Notifications You must be signed in to change notification settings

garnesh82/nagios-nagflux2db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nagios-nagflux2db

Asychronous method to upload nagios performance data from nagflux to mysql.

  1. I am sure at this point of time you have already installed nagflux and it is up and running. If not, please refer to https://github.com/Griesbacher/nagflux

  2. Decide where you want to store the performance data generated, Example: /staging/raw/

  3. Edit /etc/nagflux/config.gcfg as below, assuming you want to store the perf data in /staging/raw/

[JSONFileExport "one"]

Enabled = true

Path = "/staging/raw"

AutomaticFileRotation = "10"
  1. Save and restart the nagflux daemon "/usr/local/bin/nagflux -configPath /etc/nagflux/config.gcfg"

  2. Create a table to store the perf data. You can improvised as your wish.

  3. By now you should know the database name, tablename, username and password. If you stuck here, refer to "https://www.w3schools.com/php/php_mysql_create_table.asp"

  4. 2 scripts involved A) daemon B) importer. Please check in repository.

About

Asychronous method to upload nagios performance data from nagflux to mysql.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published