Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Adapting the MYSQL Agent Scripts to monitor MariaDB

In the present version of OSC (V3.4) there is no specific agent for MariaDB. However it is very simple to adapt the current MYSQL (ONLINE,OFFLINE,MONITOR) scripts to cope with MariaDB.

This is what I did:
1. Made a copy of the scripts:
in OSC$COMMON:[CFG.MYSQL]
MYSQL_MONITOR.COM => MARIADB_MONITOR.COM
MYSQL_ONLINE.COM => MARIADB_ONLINE.COM
MYSQL_OFFLINE.COM => MARIADB_OFFLINE.COM

2. make the necessary changes
MARIADB_MONITOR.COM - no changes necessary
MARIADB_ONLINE.COM - the line containing "@mysql_startup" => "@start_mysqld"
MARIADB_OFFLINE.COM - no changes necessary

3. OSC$CFG - define the above scripts when defining the MARIADB resource monitored by the MYSQL Agent

Sign In or Register to comment.