Ticket #171 (assigned defect)

Opened 4 years ago

Last modified 4 years ago

Maybe a bug in CheckWMIValues

Reported by: stefan.diegelmann@… Owned by: mickem
Priority: 1 Milestone: 0.4.0
Component: check_nrpe Version: 0.4.0-nightly
Severity: Bugs Keywords:
Cc:

Description (last modified by mickem) (diff)

When I set the warning/critical paramter to a value which is for example 600/800 or 6000/8000 the result is "Injected Result: OK 'OK: WMI Query returned no results.'"

2008-05-08 09:40:17: debug:.\NSClient++.cpp:516: Injecting: CheckWMIValue: Query=select CurrentUsage from Win32_PageFileUsage where Name like 'C%', MaxWarn=600, MaxCrit=800, Check:Disk=CurrentUsage, ShowAll=long
2008-05-08 09:40:17: debug:.\NSClient++.cpp:536: Injected Result: OK 'OK: WMI Query returned no results.'
2008-05-08 09:40:17: debug:.\NSClient++.cpp:537: Injected Performance Result: ''Disk'=485;600;800; '
2008-05-08 09:40:39: debug:.\NSClient++.cpp:537: Injected Performance Result: ''
2008-05-08 09:41:13: debug:.\NSClient++.cpp:516: Injecting: CheckWMIValue: Query=select CurrentUsage from Win32_PageFileUsage where Name like 'E%', MaxWarn=600, MaxCrit=800, Check:Disk=CurrentUsage, ShowAll=long
2008-05-08 09:41:13: debug:.\NSClient++.cpp:536: Injected Result: OK 'OK: WMI Query returned no results.'
2008-05-08 09:41:13: debug:.\NSClient++.cpp:537: Injected Performance Result: ''Disk'=595;600;800; '

Changing the value to 60/80 everything works well, but it is defined as an critical error.

2008-05-08 09:50:17: debug:.\NSClient++.cpp:516: Injecting: CheckWMIValue: Query=select CurrentUsage from Win32_PageFileUsage where Name like 'C%', MaxWarn=60, MaxCrit=80, Check:Disk=CurrentUsage, ShowAll=long
2008-05-08 09:50:17: debug:.\NSClient++.cpp:536: Injected Result: CRITICAL 'Disk: 568 > critical'
2008-05-08 09:50:17: debug:.\NSClient++.cpp:537: Injected Performance Result: ''Disk'=568;60;80; '
2008-05-08 09:51:13: debug:.\NSClient++.cpp:516: Injecting: CheckWMIValue: Query=select CurrentUsage from Win32_PageFileUsage where Name like 'E%', MaxWarn=60, MaxCrit=80, Check:Disk=CurrentUsage, ShowAll=long
2008-05-08 09:51:13: debug:.\NSClient++.cpp:536: Injected Result: CRITICAL 'Disk: 704 > critical'
2008-05-08 09:51:13: debug:.\NSClient++.cpp:537: Injected Performance Result: ''Disk'=704;60;80; '

So, I have a problem, to display the correct status.

Stefan

Change History

comment:1 Changed 4 years ago by mickem

  • Status changed from new to assigned
  • Description modified (diff)

I shall investigate, looks at first glance strange...

Note: See TracTickets for help on using tickets.