Commit 0805217f authored by Michael Ott's avatar Michael Ott
Browse files

Provide more details on errors in gpfsmon

parent db3042e2
......@@ -74,17 +74,17 @@ void GpfsmonSensorGroup::read() {
s->storeReading(reading);
}
} else {
LOG(error) << "Sensorgroup" << _groupName << " could not parse line" << buf;
LOG(error) << "Sensorgroup " << _groupName << " could not parse line" << buf;
//assume there was a problem with the temp file
if (!fileExists(TMP_GPFSMON))
createTempFile();
}
}
} else {
LOG(error) << "Sensorgroup" << _groupName << " popen failed, check if you have enough file descriptors.";
LOG(error) << "Sensorgroup " << _groupName << " popen failed: " << strerror(errno);
}
} catch (const std::exception &e) {
LOG(error) << "Sensorgroup" << _groupName << " could not read value: " << e.what();
LOG(error) << "Sensorgroup " << _groupName << " could not read value: " << e.what();
}
}
......@@ -95,7 +95,7 @@ void GpfsmonSensorGroup::createTempFile() {
gpfsmonFile << "io_s\n";
gpfsmonFile.close();
} else {
LOG(error) << "Gpfsmon: unable to create temporary file for mmpmon";
LOG(error) << "Gpfsmon: unable to create temporary file " << TMP_GPFSMON << " for mmpmon: " << strerror(errno);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment