vl.values = values;
vl.values_len = 2;
vl.time = time (NULL);
- strcpy (vl.host, hostname);
+ strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "df");
strcpy (vl.plugin_instance, "");
strncpy (vl.type_instance, df_name, sizeof (vl.type_instance));
{
if (STATANYFS (mnt_ptr->dir, &statbuf) < 0)
{
- syslog (LOG_ERR, "statv?fs failed: %s", strerror (errno));
+ char errbuf[1024];
+ ERROR ("statv?fs failed: %s",
+ sstrerror (errno, errbuf,
+ sizeof (errbuf)));
continue;
}