]>
Commit | Line | Data |
---|---|---|
c3c76852 ER |
1 | Bug 1314610 - snmpd complaining twice "Cannot statfs net:[********]#***: No such file or directory" every 10 minutes |
2 | https://bugzilla.redhat.com/show_bug.cgi?id=1314610 | |
3 | ||
4 | diff -urNp old/agent/mibgroup/hardware/fsys/fsys_mntctl.c new/agent/mibgroup/hardware/fsys/fsys_mntctl.c | |
5 | --- old/agent/mibgroup/hardware/fsys/fsys_mntctl.c 2017-10-11 14:54:48.111065174 +0200 | |
6 | +++ new/agent/mibgroup/hardware/fsys/fsys_mntctl.c 2017-10-11 15:11:16.996918197 +0200 | |
7 | @@ -88,7 +88,6 @@ netsnmp_fsys_arch_load( void ) | |
8 | char *path; | |
9 | struct statfs stat_buf; | |
10 | netsnmp_fsys_info *entry; | |
11 | - char tmpbuf[1024]; | |
12 | ||
13 | /* | |
14 | * Retrieve information about the currently mounted filesystems... | |
15 | @@ -160,8 +159,7 @@ netsnmp_fsys_arch_load( void ) | |
16 | continue; | |
17 | ||
18 | if ( statfs( entry->path, &stat_buf ) < 0 ) { | |
19 | - snprintf( tmpbuf, sizeof(tmpbuf), "Cannot statfs %s", entry->path ); | |
20 | - snmp_log_perror( tmpbuf ); | |
21 | + NETSNMP_LOGONCE(( LOG_ERROR, "Cannot statfs %s", entry->path )); | |
22 | continue; | |
23 | } | |
24 | entry->units = stat_buf.f_bsize; |