Value pdv = cr->GetPerformanceData();
if (!pdv.IsObjectType<Dictionary>())
+ {
+ Log(LogWarning, "GraphiteWriter", "Could not send performance data: unparsed data.");
return;
+ }
Dictionary::Ptr perfdata = pdv;
#include "icinga/perfdatavalue.hpp"
#include "base/convert.hpp"
+#include "base/exception.hpp"
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
}
return result;
- } catch (const std::exception&) {
+ } catch (const std::exception& ex) {
+ Log(LogWarning, "PluginUtility", "Error parsing performance data '" + perfdata + "': " + ex.what());
return perfdata;
}
}