Monitoring from CSV file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nyahc
Posts: 4
Joined: Tue Nov 17, 2015 6:55 am

Monitoring from CSV file

Post by nyahc »

Hi All,

I`m working with a tool to generate a specific traffic (seagull), this tool generate a log file in .csv format. I would like monitoring and draw a graphic with a column of this file.

I was searching information about it but I only saw how export config information or similar in .csv file (otherwise).

Any idea o documentation to find information about it?

Many thanks!!
nyahc
Posts: 4
Joined: Tue Nov 17, 2015 6:55 am

Re: Monitoring from CSV file

Post by nyahc »

Is it possible to do it with:

awk to catch the information and then to use perf data?

Could be a good option?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring from CSV file

Post by tmcdonald »

Maybe I am missing something, but is this a Nagios question? Nagios is used for monitoring, but it sounds like you are looking for spreadsheet visualization software. Can you provide some more detail on what you are looking to achieve?
Former Nagios employee
nyahc
Posts: 4
Joined: Tue Nov 17, 2015 6:55 am

Re: Monitoring from CSV file

Post by nyahc »

Sorry! You are right!

I want to graph this through ICINGA, Check_mk or something like that but, for do it, I need to implement something with perf_data.

My problem is, i don`t know exactly how...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring from CSV file

Post by tmcdonald »

We don't provide support for Icinga, so if that's what you are using you will need to go to their forums.

That being said, you will likely need to write a custom plugin for this. I'm still not 100% clear on exactly what you are looking to do, but it sounds like you want to graph based off a specific field in a CSV?
Former Nagios employee
nyahc
Posts: 4
Joined: Tue Nov 17, 2015 6:55 am

Re: Monitoring from CSV file

Post by nyahc »

Exactly!

I wrote a plugin to get a column from csv file and to get an output with perf_data format, I was testing if it is working or not.

One quick question, is it necessary to change any part of nagios configuration to enable perf_data? I read about it but i dont have any clear on my mind.

thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring from CSV file

Post by lmiltchev »

The option for processing host/service perf data is located in the nagios.cfg file (main config file):

Code: Select all

process_performance_data=1
https://assets.nagios.com/downloads/nag ... gmain.html

Make sure that your plugin is written in accordance to the Nagios Plugins Development Guidelines:

https://nagios-plugins.org/doc/guidelines.html#AEN200
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked