fh = fopen (drbd_stats, "r");
if (fh == NULL)
{
- WARNING ("Unable to open%s", drbd_stats);
+ WARNING ("drbd plugin: Unable to open %s", drbd_stats);
return (EINVAL);
}
fields, STATIC_ARRAY_SIZE (fields));
/* ignore headers (first two iterations) */
- if (fields_num < 4)
+ if ((strcmp(fields[0], "version:") == 0) ||
+ (strcmp(fields[0], "srcversion:") == 0) ||
+ (strcmp(fields[0], "GIT-hash:") == 0))
+ {
continue;
+ }
if (isdigit(fields[0][0]))
{