mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove checks for options that socket does not use
This commit is contained in:
@@ -330,26 +330,6 @@ function collectd_flush($identifier) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($host) || !is_string($host) || strlen($host) == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($plugin) || !is_string($plugin) || strlen($plugin) == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($pinst) || !is_string($pinst)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($type) || !is_string($type) || strlen($type) == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($tinst) || (is_array($tinst) && count($tinst) == 0) || !(is_string($tinst) || is_array($tinst))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$u_errno = 0;
|
||||
$u_errmsg = '';
|
||||
if ($socket = @fsockopen($config['collectd_sock'], 0, $u_errno, $u_errmsg)) {
|
||||
|
Reference in New Issue
Block a user