Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to put Graph Name in Mirage Output Log File. #4

Open
Nad-Java opened this issue Mar 15, 2017 · 2 comments
Open

How to put Graph Name in Mirage Output Log File. #4

Nad-Java opened this issue Mar 15, 2017 · 2 comments
Assignees
Labels

Comments

@Nad-Java
Copy link

Hi, Can anyone help me out to put the Graph Name in mirage output log file, i tried "name_cache" in polling.php but unable to figure out the correct syntax to output the graph name along with other KV paris. My goal is to export the Traffic usage from Cacti Graphs to log file and then import these to DB for analysis. Also little help required with rrdv(rrd_value) for rrdn "traffic_in" & "traffic_out". Is it Bits or Bytes or ?

@n00badmin
Copy link
Owner

n00badmin commented Mar 16, 2017

Hi Nad-Java,

I recommend checking out the Cacti db to help map some of the items you are looking into: http://docs.cacti.net/_media/manual:087:cacti_database_schema_0.8.7i.pdf

Then check out the query we used in Splunk to create a lookup table to match up against the KV pairs:

https://github.com/mennova/Splunk_TA_Cacti/blob/master/bin/cacti_lookup_mirage.py

This will query the cacti db for down fields to enrich the log.

{cacti,"local_data_id","name_cache","host_id",hostname,ip,"data_source_type_id"}

You could add more that you are interested to the scripted query.

The bits/bytes depends on the graph template selected...you can confirm in the DB tables or in Cacti gui

@n00badmin n00badmin self-assigned this Mar 16, 2017
@n00badmin
Copy link
Owner

Hey @Nad-Java, we have gotten around to updating the plugin to put the graph name in the output. Lemme know if you are still interested in having a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants