On LAMP production server I get the \'too many connections\' error from MYSQL occasionally, I want to add monitoring to find if the reason is that I exceed the max-connectio
It might be easier for you to obtain the MySQL Admin, from that, you can easily monitor where the used connections are coming from. See here on this about the connections used...