I’m trying to use the /etc/nagios/mysql.cnf defaults file but I can’t find an example of what the format of this file should be. I’ve tried:
I’ve also tried the options on a single line:
-H localhost -l root -p ‘my_pass’
but both give an error message of:
error: Found option without preceding group in config file: /etc/nagios/mysql.cnf at line:
I’m just testing by calling the plugin directly:
Any help appreciated.