Page 1 of 1

Create graphs from csv file

Posted: Tue Feb 02, 2016 8:30 am
by peter19x
Hello,

I am still exploring Nagios XI features and I was wondering If the below can be done.

Send a CSV File to nagios, nagios receives it and transform it into a graph or multiple graphs ?

Is there anyway to accomplish that?

Thanks,
Peter

Re: Create graphs from csv file

Posted: Tue Feb 02, 2016 10:54 am
by rkennedy
Just to clarify, are you looking to monitor a CSV file some how?

The reason I ask is because I'm a bit confused here. What you're describing sounds more like you need a graphing software.

Re: Create graphs from csv file

Posted: Wed Feb 03, 2016 8:34 am
by peter19x
Hello,

Thank you for replying.

What I have is a server that generates a table in a CSV format every 5 min for example. I am looking for a way on Nagios XI to receive those CSV files every 5 minutes and add them together to form a live graph.

What I thought of doing is creating a script that extract the data I need from the CSV file and send them to a check_command performance data. But before digging into this solution I was wondering if there is an add-on in Nagios XI that can do such a thing.

Thanks,
Peter

Re: Create graphs from csv file

Posted: Wed Feb 03, 2016 1:11 pm
by rkennedy
Off the top of my head, I don't know of a plugin that would do this. Check out our exchange - you might be able to find one there. https://exchange.nagios.org
What I thought of doing is creating a script that extract the data I need from the CSV file and send them to a check_command performance data. But before digging into this solution I was wondering if there is an add-on in Nagios XI that can do such a thing.
I don't see a reason why this wouldn't work though. By pulling data from the CSV, and assigning it to a value / variable - it should end up graphing fine once you present it in the performance data. It sounds very useful for those applications that will export as CSV.

Re: Create graphs from csv file

Posted: Tue Jun 07, 2016 10:12 am
by peter19x
Hello,

Apologies for the late reply. I have forgotten this post.

I have created a script that takes all values from the CSV file and send them as perfdata with passive checks. This was the most straightforward solution for me.

I am fine with closing this post.

Many Thanks,
Peter