Tags: marcin1j/collectd
Tags
uptime plugin: don't cache boot time and simplify Linux code Caching boottime on startup yields incorrect uptime values if system date changes after the daemon is started. This is almost certain to happen on embedded systems without RTC, where clock is set from NTP server at some point after boot process. On Linux, we can retrieve uptime directly by either reading /proc/uptime (it's sufficient to read a few bytes) or calling sysinfo() function. Use the latter since it's the most efficient way in speed, memory requirements and code simplicity terms.
uptime plugin: retrieve uptime using Linux sysinfo() call Reading boottime from /proc/bstat on Linux systems is neither the simplest nor the most efficient way to calculate uptime. We can retrieve uptime directly by either reading /proc/uptime (it's sufficient to read a few bytes) or calling sysinfo() function. Use the latter since it's the most efficient way in speed, memory requirements and code simplicity terms.
ping plugin: move pingobj to hostgroup_s structure
PreviousNext