Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jan 23, 2019 11:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cacti Mirage Plugin - mirage_poller_output.log - HOW TO USE?
PostPosted: Wed Nov 28, 2018 9:52 am 
Offline

Joined: Wed Nov 28, 2018 9:04 am
Posts: 1
Hello to everyone,

I'm new to Cacti.

I'm using the Cacti Mirage plugin to send data to my SIEM (Splunk).

I would like to return the value of a metric: bigipv-feint-000_traffic_in_1582.rrd

this is my command:

rrdtool info /usr/share/cacti/rra/bigipv-feint-000_traffic_in_1582.rrd

That gives me back the value.: filename = "/usr/share/cacti/rra/bigipv-feint-000_traffic_in_1582.rrd"

ds[traffic_in].value = 1.4795155160e+07

But in the file "mirage_poller_output.log" I do not find the "value" but the last_ds

[root @ lxmfw001 cacti] # grep "ldi = \" 1582 \ "" mirage_poller_output.log
ldi = "1582" t = "1543306502" rrdn = "traffic_in" rrdv = "39577340172528"


Is it possible to set the plugin in such a way as to always log the "value"?

Or is there a rule that sometimes logs the "value" and other times the "last_ds"?

Thank to everybody


Top
 Profile  
 
 Post subject: Re: Cacti Mirage Plugin - mirage_poller_output.log - HOW TO
PostPosted: Thu Nov 29, 2018 3:26 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1933
The mirage plugin records values as they come in rather than querying the file (if I recall correctly). So, I believe it would depend on the data type as to the value that you would see in the cacti log or mirage log. To understand that better you should read about the different data types.

https://github.com/Cacti/documentation/ ... ms-section

The Data Source Type explains the difference between them.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group