-
Notifications
You must be signed in to change notification settings - Fork 113
Stop producing invalid performance data. #38
base: master
Are you sure you want to change the base?
Conversation
The performance data should be something graphable, not strings. Only produce perfdata if that is the case.
@theseal please can clarify why you think that the data is not graphable and that the perfdata is valid when it is based upon percentage? If we take the perfdata from
The following would be the output from
|
The performance data should be something graphable, not strings. Only produce perfdata if that is the case.
My last take on to fix this perfdata didn't work since it's only strings that can't be graphable.
Seems like my first take on this was to intrusive and didn't work as I expected. You are right that the check creates valid performance data like in your example.
which isn't valid performance data. Since the PR didn't work I updated it to only skip performance data if "str" is used in argument. So with the update the output from
and with non string argument
Sorry about the confusion. |
@theseal OK, thanks for the clarification. So, are you concerned about the storage/CPU required for the perfdata processing? Right now, you can filter out anything with Since the perfdata format is processor-dependent, I think that silently forcing the removal of the perfdata could leave someone else with a surprise; perhaps they process it differently to you. Here are some examples that you could graph, but which are presented as strings:
Taking these on an alert basis, perhaps someone wishes to get an alert regarding buffer pool dump/load (the following is merely an example):
I think that the safest way to achieve what you want without risk to anyone else is to add a new option that allows you to suppress perfdata when setting the check command in Nagios, e.g. |
My concern is about the error/warning message that the check cause in Icinga2 and maybe other monitoring system:
I quess that the perfdata format could be processor-dependent, but I haven't seen any implementation that don't follow the guidelines: If you think that |
We are experiencing similar issues in our icinga setup, with invalid perfdata leading to warnings being logged when |
We have the same problems in our icinga2 setup. I would be very glad if you could add a --no-perfdata option. |
The performance data should be something graphable, not strings.
Only produce perfdata if that is the case.