Service Check_lmsensor (general question)

Hi community ,
I am just playing around with the available services and I wanted to add the lmsensors service to have a look at the temperatures on one of my hosts and after adding the service i get that this error

execvpe(/usr/lib/nagios/plugins/check_lmsensors) failed: No such file or directory

which is expected because i had a similar error with check_apache_status service where the service wasnt located in the path but i added it manually and was found.

In this case for check_lmsensors i cant find any instances besides something similar as check_lm_sensors which i am not sure if this has the same structure as check_lmsensors

So how i am supposed to do this, should i add the check_lm_sensors as a new command in the director with the correct path (in this case /usr/lib/nagios/plugins or should i modify the command for check_lmsensors so that it corresponds to the new command and if so where is this located ?
Thanks in advanced !

director 	1.11.1 
Platform: Debian GNU/Linux
Platform version: 11 (bullseye)
icinga2 - version: r2.14.2-1

Since these plugins are not identical and even have different arguments I’d recommend to create a new check command.

Hi Roland, thank you for your reply. Is there a reason why the Director has “outdated” or non existent plugin ?

And the new command should be added as a new extern command right ?

icinga2 comes with a template library which means when you start the kickstart these things will be imported as external commands so you can use them in icinga director.

https://icinga.com/docs/icinga-2/latest/doc/10-icinga-template-library/#icinga-template-library

every plugin still needs to be installed, some are in the package monitoring-plugins

every custom plugin you want to add should be in commands since you can’t edit external commands inside icinga director.

This has nothing to do with the director as it just imports external commands e.g. provided by ITL.

Yes

Alright, thank you guys for your Input :slight_smile: