This piece of code is used to work out what a file with a tilde should be :

 

        if (strstr($file, "~"))

        {

          list($target,$slave) = explode("~", basename($file,".rrd"));

          if ($rdebug) { echo('- Determined to be a slave file for target <b>' . $target . '</b><br />'); }

          $target = str_replace($config['smokeping']['split_char'], ".", $target);

          if ($config['smokeping']['suffix']) { $target = $target.$config['smokeping']['suffix']; if ($rdebug) { echo('- Suffix is configured, target is now <b>' . $target . '</b><br />'); } }

          $smokeping_files['incoming'][$target][$slave] = $file;

          $smokeping_files['outgoing'][$slave][$target] = $file;

        }

 

 

You should have filenames like host_a_domain_com~host_b_domain_com.rrd, it’s splitting them into slave and target files and assigning them to the right parts of the array. It seems this bit of code isn’t being triggered at all, which suggests none of your filenames have a tilde in them?

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Joey Stanford via observium
Sent: 19 December 2020 21:08
To: Observium <observium@observium.org>
Cc: Joey Stanford <nv0n@rmham.org>
Subject: [Observium] Smokeping graphs post migration

 

Howdy,

 

I need some help pointing me in the right direction for troubleshooting.

 

I migrated Observium from Ubuntu to Debian and life is good except for smokeping.  I have no graphs but…

 * smokeping is installed

 * smokeping and observium’s config.php are using the same configuration as the old server

 * going to [host]cgi-bin/smokeping.cgi shows me all the graphs and they are up to date

 * going to the tech support page shows me that observium finds the graphs e.g.

 

- Found file ending in ".rrd": router_thorodin_rmham.rrd

- Determined to be a local file, for target router_thorodin_rmham

- After replacing configured split_char _ by . target is router.thorodin.rmham

 

so at this point I know smokeping is working, the graphs have the right perms to displayed (currently  smokeping:observium), and observium can see the rrd file.   Unfortunately going to the page I get the dreaded “Error drawing graph”.

 

At the bottom of the smokeping section in tech support I see two items. One is an error for no outgoing latency graph. Any ideas on what else I could look at?

RRD for incoming latency found.

RRD for outgoing latency not found.