NSClient++ Help (#1) - How do I re-order the output from CheckWMI (#878) - Message List
Using this command
./check_nrpe -H <host> -p 5666 -c CheckWMI -a "Query=Select Version,Caption,CSDVersion from win32_OperatingSystem" columnSyntax="%value%" columnSeparator=", "
I get the following output:
Service Pack 2, Microsoft(R) Windows(R) Server 2003, Standard Edition, 5.2.3790|'wmi query'=1
How can I change the output so it is formatted like this:
Microsoft(R) Windows(R) Server 2003, Standard Edition, Service Pack 2, 5.2.3790|'wmi query'=1
-
Message #2350
Changing the WMi query? Not sure I understand really...
Michael Medin
mickem11/16/11 22:52:36 (19 months ago)-
Message #2372
It doesn't matter how I order the WMI query the output is always the same. For example:
Using this command:
./check_nrpe -H <host> -p 5666 -c CheckWMI -a "Query=Select Version,Caption,CSDVersion from win32_OperatingSystem" columnSyntax="%value%" columnSeparator=", "
I get the following output:
Service Pack 2, Microsoft(R) Windows(R) Server 2003, Standard Edition, 5.2.3790|'wmi query'=1
When I re-order the WMI query nothing changes.
Using this command:
./check_nrpe -H vault09 -p 5666 -c CheckWMI -a "Query=Select CSDVersion,Version,Caption from win32_OperatingSystem" columnSyntax="%value%" columnSeparator=", "
I get the following output:
Service Pack 2, Microsoft(R) Windows(R) Server 2003, Standard Edition, 5.2.3790|'wmi query'=1
The only difference between the two commands is "Version,Caption,CSDVersion" compared to "CSDVersion,Version,Caption".
You can see that the output is identical, it is not returned in any logical order. I would assume that the order of the select statement should be the order that the data is returned. If this is not possible then some ability to re-order the output would be good.
Does this make sense?
Box29311/21/11 23:35:08 (18 months ago)
-








