Hello There,
Is there any possibility of ingesting Oracle database tables to Nagios Log Server?
Thank You,
SB
Ingest Database Tables to Nagios Log Server
-
- Posts: 252
- Joined: Wed Dec 14, 2016 12:30 pm
Re: Ingest Database Tables to Nagios Log Server
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:
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/
https://www.mcapra.com/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
-
- Posts: 252
- Joined: Wed Dec 14, 2016 12:30 pm
Re: Ingest Database Tables to Nagios Log Server
Thank You @mcapra, I will give it a try.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ingest Database Tables to Nagios Log Server
Let us know if you have further questionsSampath.Basireddy wrote:Thank You @mcapra, I will give it a try.