Page 1 of 1

Parsing status info into tables?

Posted: Thu Sep 06, 2012 6:29 am
by rpacheco
I'm a newbie talking about Nagios, but I've been asked about its functionality. We have a Syslog system that centralizes all syslog events in one server. I've been trying to use check_logfiles, but I would need a check for each line and it is too difficult to define a pattern.

My boss would like to parse all the info that syslogs have in each line into a table, but I don't know if there's a way to do it in Nagios. As far as I know, we could develope a plugin and Nagios collects the exit status to show OK, WARNING, CRITICAL or UNKNOWN and shows a line in Status cell, right? Could I parse more info? Could you aim my search in that way? Any example doing such a thing or similar?

Thanks in advance!!!

Re: Parsing status info into tables?

Posted: Fri Sep 07, 2012 1:58 pm
by scottwilkerson
rpacheco wrote:s far as I know, we could develope a plugin and Nagios collects the exit status to show OK, WARNING, CRITICAL or UNKNOWN and shows a line in Status cell, right?
Yep, here is the developers guide
http://nagiosplug.sourceforge.net/devel ... lines.html