I have a custom monitor that uses custom sql (CSO).
In the monitor's javascript function, I need it to determine if there is a SQL error. For instance, if the custom sql (CSO) queries another database server and that server is either unreachable or the MySQL service is stopped.
MONyog is only giving me the last value before the server went down. It's not recognizing the error.
How can catch this in the javascript function?