Commit 6f035d24 authored by Micha Mueller's avatar Micha Mueller
Browse files

Add printConfig to GPFSMON plugin

parent aae74786
......@@ -47,6 +47,42 @@ public:
GpfsmonSensorBase(const GpfsmonSensorBase& )=default;
GpfsmonSensorBase& operator=(const GpfsmonSensorBase &)=default;
void printConfig(LOG_LEVEL ll, LOGGER& lg) {
std::string metric("unknown");
switch (_metric_type) {
case TIMESTAMP_GPFS:
metric = "TIMESTAMP_GPFS";
break;
case IOBYTESREAD:
metric = "IOBYTESREAD";
break;
case IOBYTESWRITE:
metric = "IOBYTESWRITE";
break;
case IOOPENS:
metric = "IOOPENS";
break;
case IOCLOSES:
metric = "IOCLOSES";
break;
case IOREADS:
metric = "IOREADS";
break;
case IOWRITES:
metric = "IOWRITES";
break;
case READDIR:
metric = "READDIR";
break;
case INODE_UPDATES:
metric = "INODE_UPDATES";
break;
case SIZE:
metric = "SIZE";
break;
}
LOG_VAR(ll) << " Metric type: " << metric;
}
protected:
GPFS_METRIC _metric_type;
......
......@@ -94,6 +94,10 @@ void GpfsmonSensorGroup::readAsync() {
_pendingTasks--;
}
void GpfsmonSensorGroup::printConfig(LOG_LEVEL ll) {
LOG_VAR(ll) << " No other specific attributes";
}
void GpfsmonSensorGroup::createTempFile(){
std::ofstream gpfsmonFile;
gpfsmonFile.open(TMP_GPFSMON);
......
......@@ -26,6 +26,8 @@ public:
GpfsmonSensorGroup& operator=(const GpfsmonSensorGroup& other);
GpfsmonSensorGroup(const GpfsmonSensorGroup& other);
void printConfig(LOG_LEVEL ll) override;
private:
void read() override;
void readAsync() override;
......
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