Tylan / check_snmp_printer

Icinga Plugin for Checking SNMP Printer Status (Trays, Consumables and Pagecounts)
GNU General Public License v3.0
12 stars 4 forks source link

Check Pluginfolder Path #9

Closed fma-bk closed 4 years ago

fma-bk commented 4 years ago

Hi, it would be great if you could do a check in the plugin code if the plugin folder is /usr/lib/nagios/plugins or /usr/lib64/nagios/plugins. Maybe just check if the lib64 folder exists, if not check if /usr/lib/ exists? Then the plugin would work in debian without changing your code manually.

Kind Regards Florian

Tylan commented 4 years ago

Thanks for the feedback! I've added a check for the /usr/lib/nagios/plugins folder as well - it will check libraries in either folder, whichever one exists. This will be in the next release.