check_phpfpm_status icon indicating copy to clipboard operation
check_phpfpm_status copied to clipboard

Remove need to specify lib path

Open manuel-sousa opened this issue 10 years ago • 1 comments

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;

manuel-sousa avatar Feb 23 '15 19:02 manuel-sousa

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

regilero avatar Mar 04 '15 15:03 regilero