Ok, so I have something like this:
NXI service running on two separate hosts and monitoring the usage of all local filesystems.
The first host has one local filesystem (i.e. /) and second one has two such filesystems (i.e. /, /opt).
Since both hosts use the same service - and the same check command, they use the same template file.
The performance data from the service no 1 looks like this: /=XXXXXMB;;;;
The performance data from the service no 1 looks like this: /=XXXXXMB;;;;/opt=YYYYYMB;;;;
The template file looks as follows:
if(isset($DS[1])) {
$opt[1] = "--vertical-label \"[sec]\" -l0 -u $CRIT[1] --title \"Graph1\" ";
$def[1] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;
$def[1] .= "AREA:var1#00AA00:\"FS1 Used\" " ;
}
if(isset($DS[2])) {
$opt[2] = "--vertical-label \"[sec]\" -l0 -u $CRIT[1] --title \"Graph2\" ";
$def[2] = "DEF:var1=$rrdfile:$DS[2]:AVERAGE " ;
$def[2] .= "AREA:var1#AA0000:\"FS2 Used\" " ;
}
So the problem is that looking at the graphs tab for the server's no 1 service monitoring its filesystems, I can see one graph and one empty placeholder.
On the host no. 2, I can see two graphs (as expected).
So when the numer of datasources is less than 2, I get one empty placeholder in graphs tab - that is really anoying
Hope that clarified the case
Michalux