Preparations for the Icinga plugin
To integrate the Didactum Monitoring System 50 into In Icinga2, a query script was created as part of the project.
To integrate a new device, the following settings must be adjusted if a separate user is desired:
my $username
my $authpasswd
my $privpasswd
If these settings are not adjusted, the institute's default user for monitoring devices is used. The temperature and humidity thresholds may need to be changed as required. The hostname does not need to be changed, as it is passed to the script using the "-H" option.
Integration in Icinga2
In order to use the values of the Didactum system, it must be integrated with the adapted Icinga2 plugin.
Step 1 – Creating the host
The first step is to create the new host, which will be the Didactum system, using the Icinga Director. The hostname is "testcmc2".
Step 2 – Selecting/Creating the Command
The command has already been created and is called "check_didactum_snmp_c". This command can be used for any additional Didactum System 50. However, the following instructions for this step are important in case the existing command is no longer available (e.g., due to accidental deletion). Now, a command must be defined to execute the script. A command name is created, and the path to the script is specified. The command name can be chosen freely. The command type is also selected; in this case, "Plugin Check Command".
Step 3 – Creating a service
The service check_didactum_snmpv3_s is created in the "Services" menu and added to the host's menu.
Step 4 – Checking functionality
Here, the fully configured host TestCMC Didactum is set up and is already delivering values to Icinga, also visually illustrated in the diagrams.