diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 16:44:08 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 16:44:08 +0000 |
| commit | a51c47255dc4c026b6d5459972646c31baee7aed (patch) | |
| tree | 6a42a4195e6c890f26b2b253d1d1fb4fec7abecd /src/libs/zbxsysinfo/sysinfo.c | |
| parent | 19d8ca6f149b006c8775c2e7ae24d74f16201198 (diff) | |
| download | zabbix-a51c47255dc4c026b6d5459972646c31baee7aed.tar.gz zabbix-a51c47255dc4c026b6d5459972646c31baee7aed.tar.xz zabbix-a51c47255dc4c026b6d5459972646c31baee7aed.zip | |
- updated fs.file.md5sum and fs.file.cksum (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1999 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/sysinfo.c')
| -rw-r--r-- | src/libs/zbxsysinfo/sysinfo.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libs/zbxsysinfo/sysinfo.c b/src/libs/zbxsysinfo/sysinfo.c index 7782d4bc..264d7951 100644 --- a/src/libs/zbxsysinfo/sysinfo.c +++ b/src/libs/zbxsysinfo/sysinfo.c @@ -172,16 +172,15 @@ COMMAND agent_commands[]= {"inodetotal[*]" ,INODETOTAL, 0, "/"}, {"cksum[*]" ,CKSUM, 0, "/etc/services"}, - - {"md5sum[*]" ,0, MD5SUM, "/etc/services"}, - + {"fs.file.cksum[*]" ,FS_FILE_CKSUM, 0, "/etc/services"}, + {"md5sum[*]" ,0, FS_FILE_MD5SUM, "/etc/services"}, + {"fs.file.md5sum[*]" ,0, FS_FILE_MD5SUM, "/etc/services"}, {"fs.file.atime[*]" ,FS_FILE_ATIME, 0, "/etc/passwd"}, {"fs.file.ctime[*]" ,FS_FILE_CTIME, 0, "/etc/passwd"}, {"fs.file.mtime[*]" ,FS_FILE_MTIME, 0, "/etc/passwd"}, {"filesize[*]" ,FS_FILE_SIZE, 0, "/etc/passwd"}, {"fs.file.size[*]" ,FS_FILE_SIZE, 0, "/etc/passwd"}, - {"file[*]" ,FS_FILE_EXISTS, 0, "/etc/passwd"}, {"fs.file.exists[*]" ,FS_FILE_EXISTS, 0, "/etc/passwd"}, @@ -559,7 +558,7 @@ int process(char *command,char *value) /* MD5 sum calculation */ -int MD5SUM(const char *cmd, const char *filename, char **value) +int FS_FILE_MD5SUM(const char *cmd, const char *filename, char **value) { int fd; int i,nr; @@ -673,7 +672,7 @@ static u_long crctab[] = { * on failure. Errno is set on failure. */ -int CKSUM(const char *cmd, const char *filename,double *value) +int FS_FILE_CKSUM(const char *cmd, const char *filename,double *value) { register u_char *p; register int nr; |
