Skip to content

Instantly share code, notes, and snippets.

@dieechtenilente
Last active June 10, 2023 09:37
Show Gist options
  • Save dieechtenilente/81e3514f69d75584242bbcfd96bd7cf5 to your computer and use it in GitHub Desktop.
Save dieechtenilente/81e3514f69d75584242bbcfd96bd7cf5 to your computer and use it in GitHub Desktop.

check_modbus on a CentOS Linux

https://exchange.nagios.org/directory/Plugins/Hardware/Others/check_modbus/details

  1. Get https://github.com/AndreySV/check_modbus

  2. Get https://github.com/stephane/libmodbus/releases

  3. Make libmodbus

  4. Include /usr/local/lib with ldconfig https://lonesysadmin.net/2013/02/22/error-while-loading-shared-libraries-cannot-open-shared-object-file/

  5. 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 ´´´

  1. done

  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment