check_modbus on a CentOS Linux
https://exchange.nagios.org/directory/Plugins/Hardware/Others/check_modbus/details
-
Make libmodbus
-
Include /usr/local/lib with ldconfig https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/
-
Make check_modbus but with: ./configure LDFLAGS=-L/opt/libmodbus-3.1.10/src/ CPPFLAGS=-I/opt/libmodbus-3.1.10/src/
to get: ´´´ checking modbus.h usability... yes checking modbus.h presence... yes checking for modbus.h... yes ´´´
-
done
-
check_modbus command_line.c:525:parse_command_line(): check_modbus: Could not parse arguments
Check ModBus version 0.47 Build date: 10.06.2023