Hi.

I have a few "aggregate" service checks, which combine the results of other 
service checks which do real measurements and give me a summary of the checks 
on several machine which work in a cluster.

In general this is working fine - I can combine three "ping" tests for three 
machines making up a cluster, and show the "cluster ping test" result as the 
best (or worst, depending on what's important to me) value from the three.

However, I have another service check which uses check_mysql_query to look up 
a value from a database, and I get the correct results for each of the three 
cluster machines, but when I try to combine them in the aggregate check I get 
the following error:

-----
Exception occurred while checking 'Cluster: Development!Dev Test Check': 
Error: Error while evaluating expression: Invalid performance data value:
Location: in /etc/icinga2/zones.d/global-templates/cluster.conf: 49:22-49:123

/etc/icinga2/zones.d/global-templates/cluster.conf(49):           svc_perf = 
parse_performance_data(get_service(node, 
cluster_check_command).last_check_result.performance_data[0]).value
                                                                             
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-----

So, there's something it doesn't like about the performance data value in this 
case - how can I find out what this is?

Is there anything I can do at the command line, using the Icinga console for 
example, to find out what the check result is, and then drill down into the 
performance data and the value, to see what the problem is?

For reference, the above code reported in the error message is from a template 
which gets applied to all cluster checks, most of which work fine, so I know 
I'm doing this one which fails in exactly the same way as the ones which work.


Thanks,


Antony.

-- 
I still maintain the point that designing a monolithic kernel in 1991 is a 
fundamental error.  Be thankful you are not my student.  You would not get a 
high grade for such a design :-)
 - Andrew Tanenbaum to Linus Torvalds

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to