Oracle Database

Hi,

Someone was able to setup LibreNMS to monitor server with Oracle DB ?
I played with nagios plugin implemented in LibreNMS, but no luck…

The nagios plugin is the way… why no luck?

Sorry, my fault… I had a configuration error.

Thx

btw. Adding something like this to LibreNMS wiki will be awesome help for others…

/usr/lib64/nagios/plugins/check_oracle
On server with LibreNMS:

export ORACLE_HOME=/usr/lib/oracle/12.1/client64
export ORACLE_SID=SI01
export TNS_ADMIN=/etc
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin

  • create /etc/tnsnames.ora

example =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = example.local)(Port = 1521))
)
(CONNECT_DATA =
(SID = SI01)
)
)

From server with your oracle db copy to LibreNMS server:
<ORACLE_HOME>/network/mesg/tnsus.msg
<ORACLE_HOME>/network/mesg/tnsus.msb

You can now use ./check_oracle --tablespace example user pass USERS

1 Like