Problem in calling a script from a java plugin


I have a java plugin that just calls a script. It shows this error.

Cannot run program “./” (in directory “/root/Provisioning”): error=13, Permission denied

The same java plugin when run in the command line its executing the script without any problem. Only when added with nagios its showing the error


It seems you’ve got a permission problem…
are you running the script as root in the command line ?
because nagios is trying to run it as nagios…

so you should give the rights on your script for the user nagios
note: it’s just a wild guess :wink:


Nagios will run the command as the nagios user - can you “su” to your nagios user and run the script successfully? Make sure you have modified the permissions on appropriately, i.e.