User issue

Hello.

When I’ve JVM running as “tomcat” user, and run the script with root, I get:

UNKNOWN JVM is running with different username, run this script with UID 111

That is a problem to run with Nagios.

Thanks!