On 30/07/15 15:46, [email protected]<mailto:[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<file:///\\BranchCache\Retrieval:%20Bytes%20served>","%.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<file:///\\BranchCache\Retrieval:%20Bytes%20served>","%.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.

Throwing some brackets arround like you suggested does not really work. Icinga2 
is loading it but the check ends up in errors on the Client.
The problem is the colon in the Counter itself. This must be escaped in some 
way but dunno how...




Assaf

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

Reply via email to