regilero / check_phpfpm_status

Nagios check for php-fpm status report
GNU General Public License v3.0
39 stars 19 forks source link

Remove need to specify lib path #8

Open manuel-sousa opened 9 years ago

manuel-sousa commented 9 years ago

Similar to your other plugin check_nginx you could use the FindBin to avoid the need to change the path.

This:

# Nagios specific
# Update Nagios Plugin path according to your platform/installation
use lib "/usr/local/nagios/libexec";

Could become:

# Nagios specific
use FindBin;
use lib $FindBin::Bin;
regilero commented 9 years ago

Yes you're right, adding that in the TODO.