Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #10347] '%' is being parsed incorrectly #3474

Closed
icinga-migration opened this issue Oct 12, 2015 · 4 comments
Closed

[dev.icinga.com #10347] '%' is being parsed incorrectly #3474

icinga-migration opened this issue Oct 12, 2015 · 4 comments
Labels
bug Something isn't working

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10347

Created by icet42 on 2015-10-12 14:22:29 +00:00

Assignee: (none)
Status: Rejected (closed on 2015-10-13 06:58:35 +00:00)
Target Version: (none)
Last Update: 2015-10-13 06:58:35 +00:00 (in Redmine)

Icinga Version: 2.3.10
Backport?: Not yet backported
Include in Changelog: 1

Reason:
defined arguments containing a "%" are getting an additional blank, when processed.

(remote)commands.conf:

object CheckCommand "win-cpu-idle" {
  import "plugin-check-command"

  command = [ PluginDir + "/check_perfmon.exe" ]

  arguments = {
    "-P" = { 
      value = "\\Processor Information(0,_Total)\\% Idle Time"
    }
  }
}

debug.log:

[2015-10-12 16:17:49 W. Europe Daylight Time] notice/Process: Running command '"C:\Program Files (x86)\ICINGA2/sbin/check_perfmon.exe" "-P" "\Processor Information(0,_Total)\ % Idle Time"': PID 10780
[2015-10-12 16:17:49 W. Europe Daylight Time] notice/Process: PID 10780 ('"C:\Program Files (x86)\ICINGA2/sbin/check_perfmon.exe" "-P" "\Processor Information(0,_Total)\ % Idle Time"') terminated with exit code 3

f.ex. when changing "% Idle Time" to "Processor Frequency" exit code was 0.


Relations:

@icinga-migration
Copy link
Author

Updated by icet42 on 2015-10-12 14:28:09 +00:00

defined arguments containing a "%" are getting an additional blank, when processed.

(remote)commands.conf:

object CheckCommand "win-cpu-idle" {
import "plugin-check-command"

command = [ PluginDir + "/check_perfmon.exe" ]

arguments = {
"-P" = {
value = "\\Processor Information(0,_Total)\\% Idle Time"
}
}
}

debug.log:
[2015-10-12 16:17:49 W. Europe Daylight Time] notice/Process: Running command '"C:\Program Files (x86)\ICINGA2/sbin/check_perfmon.exe" "-P" "\Processor Information(0,_Total)\ % Idle Time"': PID 10780
[2015-10-12 16:17:49 W. Europe Daylight Time] notice/Process: PID 10780 ('"C:\Program Files (x86)\ICINGA2/sbin/check_perfmon.exe" "-P" "\Processor Information(0,_Total)\ % Idle Time"') terminated with exit code 3

f.ex. when changing "% Idle Time" to "Processor Frequency" exit code was 0.

@icinga-migration
Copy link
Author

Updated by jflach on 2015-10-12 14:37:34 +00:00

  • Subject changed from Windows Agent: "The specified counter could not be found." to '%' is being parsed incorrectly
  • Description updated
  • Category changed from API to Plugins
  • Status changed from New to Assigned
  • Assigned to set to jflach

Hello,

thank you for your report. I will look into this once I have my windows development environment up and running again.

Kind regards,
Jean

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-10-13 06:58:32 +00:00

  • Duplicated set to 10245

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-10-13 06:58:35 +00:00

  • Category changed from Plugins to libicinga
  • Status changed from Assigned to Rejected
  • Assigned to deleted jflach

@icinga-migration icinga-migration added bug Something isn't working libicinga labels Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant