"StatusFile",
"Compression",
"ImprovedNamingSchema",
- "AggregateUsers",
- "OnlyAggregateUsers"
+ "AggregateUsers",
+ "OnlyAggregateUsers"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
if (number_connectedusers)
{
- numusers_submit(name, name, sum_users);
- read = 1;
+ numusers_submit(name, name, sum_users);
+ read = 1;
}
return (read);
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
continue;
if (number_connectedusers)
- /* If so, sum all users, ignore the individuals*/
+ /* If so, sum all users, ignore the individuals*/
{
- sum_users += 1;
+ sum_users += 1;
}
- if (number_connectedusers_only==0)
+ if (number_connectedusers_only==0)
{
if (new_naming_schema)
{
}
}
- read = 1;
+ read = 1;
}
}
if (number_connectedusers)
{
- numusers_submit(name, name, sum_users);
- read = 1;
+ numusers_submit(name, name, sum_users);
+ read = 1;
}
return (read);
{
char errbuf[1024];
WARNING ("openvpn plugin: fopen(%s) failed: %s", vpn_list[i]->file,
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
continue;
}
if (status_version == 0)
{
WARNING ("openvpn plugin: unable to detect status version, \
- discarding status file \"%s\".", value);
+ discarding status file \"%s\".", value);
return (1);
}
{
char errbuf[1024];
WARNING ("openvpn plugin: sstrdup failed: %s",
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
return (1);
}
{
char errbuf[1024];
ERROR ("openvpn plugin: malloc failed: %s",
- sstrerror (errno, errbuf, sizeof (errbuf)));
+ sstrerror (errno, errbuf, sizeof (errbuf)));
sfree (temp->file);
sfree (temp);
if (IS_TRUE(value))
{
DEBUG ("openvpn plugin: Summing up all users");
- number_connectedusers = 1;
+ number_connectedusers = 1;
}
else
{
- number_connectedusers = 0;
+ number_connectedusers = 0;
}
} /* if (strcasecmp("AggregateUsers", key) == 0) */
else if (strcasecmp("OnlyAggregateUsers", key) == 0)
if (IS_TRUE(value))
{
DEBUG ("openvpn plugin: Summing up all users");
- number_connectedusers_only = 1;
- number_connectedusers = 1;
+ number_connectedusers_only = 1;
+ number_connectedusers = 1;
}
else
{
- number_connectedusers_only = 0;
+ number_connectedusers_only = 0;
}
} /* if (strcasecmp("OnlyAggregateUsers", key) == 0) */
else