Ingest Database Tables to Nagios Log Server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Ingest Database Tables to Nagios Log Server

Post by Sampath.Basireddy »

Hello There,

Is there any possibility of ingesting Oracle database tables to Nagios Log Server?

Thank You,
SB
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Ingest Database Tables to Nagios Log Server

Post by mcapra »

Yup:
https://www.elastic.co/guide/en/logstas ... -jdbc.html

A reference implementation:
https://stackoverflow.com/questions/456 ... last-value

With the only major difference being that you don't need the input{} braces when defining Nagios Log Server input rules. So your input rule would look something like this:

Code: Select all

jdbc {
    jdbc_driver_library => "ojdbc6.jar"
    jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
    jdbc_connection_string => "jdbc:oracle:thin:@localhost:1521:XE"
    jdbc_user => "******"
    jdbc_password => "******"
    schedule => "* * * * *"
    statement => "SELECT * from SYNC_TABLE where LAST_MODIFICATION >= :sql_last_value"
    tracking_column => "LAST_MODIFICATION"
    tracking_column_type => "timestamp"
    use_column_value => true
  }
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Ingest Database Tables to Nagios Log Server

Post by scottwilkerson »

Thanks @mcapra!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: Ingest Database Tables to Nagios Log Server

Post by Sampath.Basireddy »

Thank You @mcapra, I will give it a try.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Ingest Database Tables to Nagios Log Server

Post by scottwilkerson »

Sampath.Basireddy wrote:Thank You @mcapra, I will give it a try.
Let us know if you have further questions
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked