Scaling out to a new product I inherited. I’ve run into issues with check_load in the past, but I’ve never seen this error before. Most similar thing I saw when googling was for the check_update check, and the answers for that didn’t seem relevant.
AWS EC2 instance
Windows 2012R2
Icinga 2.10.5 (this got assigned to me ahead of the 2.11 upgrade)
Running as LocalSystem Account (at least for troubleshooting purposes)
Output with debug on when running manually isn’t very verbose:
PS C:\Program Files\icinga2\sbin> ./check_load --debug
Creating query and adding counter
Failed to format error message, last error was: 2147485648
Hello Blake,
I hope you are well. Please try running command “lodctr /r” from the local command line with admin permission on your windows client. The local performance counter are corrupted and need to get rebuild for the check_load command to work correctly.
as with @blakehartshorn the issue was about check_load.exe
I now figured out that it has something to do with the service user we use. Somehow it seems that this user doesn’t have sufficient rights.
Originally we didn’t want to grant administrative privileges but dedicated run as service rights etc.
Now playing around it turns out that even being an domain admin is not sufficient and results in this error. Only assigning them manually as local administrators works (or using system account or service).
Somehow strange because not really “least privileges” approach?
Hello @blindzero,
Did you change the default account when Icinga2 was installed? Maybe this is the problem. The default is using the local build-in account ‘Network Service’. I used the default setting so I never experienced the problem you describing.