I wrote a small perl program for Nagios, which checks if the Queue manager is up and running.
That script works, and also gives an exit 0.
When I run the perl command from shell (perl -w), it's giving the following output:
Connection to MQ: OK
And gives an exit 0.
In the Nagios window you can also see that text 'Connection to MQ: Ok'
But it always gives the state 'unknown'
Can somebody help me ?