Skip to content

Commit

Permalink
Regexp test for all potenial records in /proc/mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jangaraj committed Sep 23, 2017
1 parent ec27c2d commit 0dd6cde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/zabbix_module_docker/zabbix_module_docker.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ int zbx_docker_dir_detect()
{
if (SUCCEED != zbx_regexp_sub(path, mounts_regex, "\\1", &stat_dir) || NULL == stat_dir)
{
zabbix_log(LOG_LEVEL_WARNING, "Cannot detect docker stat directory in /proc/mounts");
return SYSINFO_RET_FAIL;
continue;
}
zabbix_log(LOG_LEVEL_DEBUG, "Detected docker stat directory: %s", stat_dir);

Expand Down

0 comments on commit 0dd6cde

Please sign in to comment.