icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

Check_update error Windows 2019

Open fwehuerguweioergjioerier opened this issue 3 years ago • 3 comments

Hello, 2x of my windows-servers shows an error when checking windows update. Output: Failed to format error message, last error was: 2149859335 The icinga community gave me the advice that it might be a bug. Is there a way to see a full error message in any log file?

(Windows 2019, GUI Version)

Thanks for help.

  • Version used (icinga2 --version): r2.13.3-1
  • Operating System and version: Ubuntu 20.04.4 LTS
  • Enabled features (icinga2 feature list): api checker / icingadb / ido-mysql / mainlog / notification
  • Icinga Web 2 version and modules (System - About): 2.10.1
  • Config validation (icinga2 daemon -C): Okay

Hi,

can you please provide some more information on where you see that error? I'm a bit confused as you say Windows server and later on mention Ubuntu. Is that the result of some check of a Windows server you run from Linux? If so, it's probably an issue with the check plugin in use. What's the check command in use (i.e. what does the service definition look like)?

julianbrost avatar May 23 '22 08:05 julianbrost

Hello, the icinga2 Master server is installed on the Ubuntu 20.04.4 LTS server.

The check_disk.exe is running on the Win Server 2019 I want to monitor.

The defined check command is configured as followed:

object CheckCommand "update-windows" { import "plugin-check-command" command = [ PluginDir + "/check_update.exe" ] timeout = 5m arguments += { "--no-reboot-critical" = { description = "Do not automatically return critical if an update requiring reboot is present." set_if = "$ignore_reboot$" } "--possible-reboot" = { description = "Treat 'may need update' as 'definitely needs update'" set_if = "$update_win_reboot$" } "-c" = { description = "Number of updates to trigger a critical" value = "$update_win_crit$" } "-w" = { description = "Number of updates to trigger a warning" value = "$update_win_warn$" } } } The error in icinga looks like this: image

Hello @fwehuerguweioergjioerier!

Do our PowerShell plugins work for you?

Best, A/K

Al2Klimov avatar Jun 14 '22 07:06 Al2Klimov

Even if they don’t work, they should be fixed. They are our new way of Windows monitoring. The old C++ Windows plugins are legacy.

@bobapple What about dropping them from the docs if favor of IfW?

Al2Klimov avatar Mar 21 '23 15:03 Al2Klimov

Even if they don’t work, they should be fixed. They are our new way of Windows monitoring. The old C++ Windows plugins are legacy.

@bobapple What about dropping them from the docs if favor of IfW?

👍

bobapple avatar Mar 22 '23 08:03 bobapple

@julianbrost Do you agree as well?

Al2Klimov avatar Mar 23 '23 10:03 Al2Klimov

They are already marked as deprecated in the docs: https://icinga.com/docs/icinga-2/latest/doc/10-icinga-template-library/#windows-plugins-for-icinga-2

And you'd want to just remove that section? I don't think we have removed the documentation for other deprecated features before removing the feature itself.

julianbrost avatar Mar 27 '23 08:03 julianbrost

They are already marked as deprecated in the docs: https://icinga.com/docs/icinga-2/latest/doc/10-icinga-template-library/#windows-plugins-for-icinga-2

Even more explicit IMAO. OK.

Al2Klimov avatar Mar 29 '23 11:03 Al2Klimov