Hi,
Someone was able to setup LibreNMS to monitor server with Oracle DB ?
I played with nagios plugin implemented in LibreNMS, but no luck…
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?
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
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