I'm trying to configure Nagios to write performance data to a MySQL table, but it doesn't seem to work. When I configure Nagios to write to file, it works fine. In misccommands.cfg added a command that should execute a mySQL query that adds the data to the table, but it doesn't get in there.
When I run the command outside of Nagios the data is inserted into the table.
What can be wrong here?