diff --git a/LibreNMS/RRD/RrdDefinition.php b/LibreNMS/RRD/RrdDefinition.php index 1d7bbf2432..8411f864bf 100644 --- a/LibreNMS/RRD/RrdDefinition.php +++ b/LibreNMS/RRD/RrdDefinition.php @@ -55,6 +55,10 @@ class RrdDefinition { global $config; + if (empty($name)) { + d_echo("DS must be set to a non-empty string."); + } + $ds = array(); $ds[] = $this->escapeName($name); $ds[] = $this->checkType($type);