Support plugins not located directly under the main script To avoid clutturing /usr/lib/nagios/plugins, all perl modules have been moved to /usr/lib/centreon-plugins. This patch updates FindBin instances to locate the plugins correctly.
Use /tmp as default location for statefile Statefile are created by default in /var/lib/centreon/centplugins, which might not exist on the system or standard users might not have access to it. Using /tmp will allow any user to run the plugins.
To prevent other users from reading potentially sensitive information, tempfiles are created with a 0600 mode.
This is a convenience patch to make plugins work by default with all users. centreon-plugins already have a --statefile-dir option to change the default if needed.