Back to listing

mysql-gelf

GELF Library No release yet

A (very) basic Bash script to send MySQL status information to GrayLog through GELF

arikogan
free!

Published

01 Sep 17:21

Last Push

23 Feb 12:58

Marketplace Rating

No rating yet

Discussion

3 Comments

Your Rating

Please sign in to rate this add-on.

Comments

henrylwilliams over 2 years ago

Submitted a pull request with some changes. As this wasn't working for me in Ubuntu 14+. I was receiving a 'Bad Substitution' error and a few other issues with with the script.

The main change was getting rid of the use of eval and correcting some syntax.

So, if you're having issues with this, try using what's here: https://github.com/henrylwilliams/mysql-gelf

I've got a pull request in to the main repository for this script, hopefully it will get pulled in soon. Arikogan may just want to make another branch for debian-based environments, however the updates should work across the board.

mocanal over 2 years ago

After configuring the input in Graylog Server and launch the script. I can see that my server receive data in Throughput / Metrics but when I go to Show received messages I can't see anything

pauldsmyth about 3 years ago

Excellent little utility, one little amendment to mysql-status.sh I've made for monitoring remote databases like RDS where you have no ability to run locally:

Line 11
-HOST=`hostname --long`
+HOST=[actual hostname]

Line 23
-STATUS_CMD="echo 'SHOW GLOBAL STATUS;' | mysql -u $MYSQL_USER -p$MYSQL_PASS"
+STATUS_CMD="echo 'SHOW GLOBAL STATUS;' | mysql -u $MYSQL_USER -p$MYSQL_PASS -h $HOST"

Please sign in to comment.

Back to listing