On 30/07/15 15:46, [email protected] wrote:

Dear List,

got some strange behavior with the check definition for a Windows Counter in check_nt.

The Counter should be checked with:

check_nt -H xxx.xxx.xxx.xxx -p 12489 -s pass -v COUNTER -l "\\BranchCache\\Retrieval: Bytes served","%.f Bytes"

running this from the commandline is no problem.

Then in the checkdefinition:

critical/config: Error: Value computed is not used.

Location:

/etc/icinga2/zones.d/templates/service_templates.conf(329):

/etc/icinga2/zones.d/templates/service_templates.conf(330): vars.nt_check_variable = "COUNTER"

/etc/icinga2/zones.d/templates/service_templates.conf(331): vars.nt_counter = "\\BranchCache\\Retrieval: Bytes served","%.f Bytes"

                                                                                
                                                                                
                                                             ^^^^^^^^^^

if I am reading this right you are trying to pass an Array of values as a string .

Try encapsulating it as an array ( [ ] )and see if that works, or you might need to define it as a 3rd vars value.

Is this a normal behavior? Problem is, without the "%.f Bytes" it is processed but I have no perfdata.

Bye, Rico



Assaf
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to