Cacti Mirage Plugin - mirage_poller_output.log - HOW TO USE?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
EugenioS
Posts: 1
Joined: Wed Nov 28, 2018 9:04 am

Cacti Mirage Plugin - mirage_poller_output.log - HOW TO USE?

Post by EugenioS »

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
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti Mirage Plugin - mirage_poller_output.log - HOW TO

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

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

Who is online

Users browsing this forum: No registered users and 1 guest