<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-12-30 17:48 GMT+01:00 Fligor, Debbie <span dir="ltr"><<a href="mailto:fligor@illinois.edu" target="_blank">fligor@illinois.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Dec 29, 2015, at 7:57, Olivier <<a href="mailto:oza.4h07@gmail.com">oza.4h07@gmail.com</a>> wrote:<br>
><br>
> I've got currently 4 slaves sending data to a single master.<br>
> On this master, data is stored in /var/lib/smokeping.<br>
> A /var/lib/smokeping/ __sortercache subdir exists with one file per probe<br>
<br>
<br>
</span>I was talking about the local data file cached on the slave, not the file it makes on the master. It’s the local perl module on the slave that is having the problem when it launches.<br>
<span class=""><br>
<br></span></blockquote><div>Yes: removing the (empty) file /var/lib/smokeping/data.cache allowed my Pi smokeping slave to start at last !<br><br></div><div>Thank you very for pointing me in the right direction !<br></div><div>(I sent hours checking master's files ownership and modes and forgot to check slave local cache).<br><br></div><div>Thanks again !<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
><br>
> I added a slave changing a line from "slaves=foo" to "slaves=foo bar" in /etc/smokeping/config.d/Targets<br>
> and then changing ownership of files in /var/lib/smokeping.<br>
><br>
> Now files for new bar slave have the same properties than its sibling foo slave files.<br>
> I also removed each *.storable file in /var/lib/smokeping/ __sortercache<br>
><br>
> Still, smokeping refuses to start on my Raspi slave with the same old :<br>
> Magic number checking on storable file failed at /usr/lib/arm-linux-gnueabihf/perl/5.20/Storable.pm line 381, at /usr/share/perl5/Smokeping/Slave.pm line 70.<br>
><br>
> My master and slave do not have the same architecture (one is x86_64, the other is armv7l).<br>
> Could it be a root cause ?<br>
<br>
</span>Sorry, that’s beyond my knowledge of how the code works (I’m not a programmer). If finding the local cache file on the slave and removing that doesn’t help, you’ll likely have to wait for more people reading this listserv to be back from their holiday breaks.<br>
<br>
-debbie<br>
<span class=""><br>
><br>
><br>
> 2015-12-28 21:06 GMT+01:00 Fligor, Debbie <<a href="mailto:fligor@illinois.edu">fligor@illinois.edu</a>>:<br>
> I’m pretty sure I hit this a couple of month ago working on getting a smokeping slave running on Pidora, but google isn’t letting me find the answer that helped me when I search with your error message. If I am recalling correctly, I had to remove an existing data_FPing.cache file in the /opt/smokeping/data directory (your path will probaby be different), and then it worked again. I only have FPing probes, so this may not be the exact file you need to remove.<br>
><br>
> Other threads on that error show Storable.pm having issues with 0-length files.<br>
><br>
> Hopefully this helps you narrow down the problem.<br>
><br>
> -debbie<br>
><br>
><br>
> > On Dec 28, 2015, at 8:00, Olivier <<a href="mailto:oza.4h07@gmail.com">oza.4h07@gmail.com</a>> wrote:<br>
> ><br>
> > Hello,<br>
> ><br>
> > I'm configuring my first Master-Slave setup.<br>
> ><br>
> > I've got one Beaglebone Black and one Raspberry Pi actings as slaves.<br>
> > My master is a remote Debian Jessie box with an Apache 2.4 server<br>
> ><br>
> > If I'm not mistaken, both slaves are configured the same way.<br>
> > Beaglebone Black(Debian Jessie) is working OK.<br>
> > Raspberry Pi smokeping daemon is failing to start with:<br>
> > Magic number checking on storable file failed at /usr/lib/arm-linux-gnueabihf/perl/5.20/Storable.pm line 381, at /usr/share/perl5/Smokeping/Slave.pm line 70.<br>
> ><br>
> ><br>
> > How can I solve this ?<br>
> ><br>
> > Best regards<br>
><br>
> --<br>
> -debbie<br>
> Debbie Fligor, n9dn Lead Network Engineer @ Univ. of Il<br>
> email: <a href="mailto:fligor@illinois.edu">fligor@illinois.edu</a><br>
> "I have lived most of my life surrounded by my enemies. I would be grateful to die surrounded by my friends.” Gamora<br>
><br>
><br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> smokeping-users mailing list<br>
> <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
-debbie<br>
Debbie Fligor, n9dn Lead Network Engineer @ Univ. of Il<br>
email: <a href="mailto:fligor@illinois.edu">fligor@illinois.edu</a><br>
"I have lived most of my life surrounded by my enemies. I would be grateful to die surrounded by my friends.” Gamora<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>