[smokeping-users] FPING graphs not updating under normal mode -- only under debug ?

Gregory Sloop gregs at sloop.net
Fri Apr 5 22:11:23 CEST 2019



smokeping installation giving me headaches =(

I've followed FAQ and made sure permissions are as specified for rrd files..
when I let the system run smokeping (as  userid smokeping, via /etc/init.d/script) , rrd doesn't seem to update, and rrdtool lastupdate just gives me this:

rrdtool lastupdate TYDC-Core1.rrd
 uptime loss median ping1 ping2 ping3 ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16 ping17 ping18 ping19 ping20

1554485923: U 20 U U U U U U U U U U U U U U U U U U U U U

when I run this cmd as userid root,  things look good

/usr/sbin/smokeping --config=/etc/smokeping/config --logfile=/tmp/smoke.log

root at hyd2-netmon00:/var/lib/smokeping# rrdtool lastupdate Japan/TYDC-Core1.rrd 
 uptime loss median ping1 ping2 ping3 ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16 ping17 ping18 ping19 ping20

1554491493: U 0 1.2559000000e-01 1.2537000000e-01 1.2547000000e-01 1.2547000000e-01 1.2549000000e-01 1.2551000000e-01 1.2554000000e-01 1.2554000000e-01 1.2556000000e-01 1.2556000000e-01 1.2557000000e-01 1.2559000000e-01 1.2559000000e-01 1.2562000000e-01 1.2563000000e-01 1.2566000000e-01 1.2567000000e-01 1.2574000000e-01 1.2881000000e-01 1.2912000000e-01 1.3362000000e-01

seems like smokeping ran as userid smokeping is failing somewhere... not sure what though, since it does update the rrd and generate U's...? 


Chris


That's a permissions issue - I'm certain of it.

Is this running as master or slave?
How about a ls -al of the relevant RRD files?
SP config file?
What linux distro?
How was SP installed, compiles/package?
What version of SP.

But before you post all that - go back and check your RRD file permissions - I'd guess if you fix that, you won't need more of our help. :)
If it runs as root, and fails as some other user - it's always a permissions issue.

I'm on a debian distro here - and what user smokeping runs at varies for each distro - but in my case, a rrd file listing looks like this.

-rw-r--r--  1 smokeping www-data 27707476 Apr  5 12:54 VPS.rrd

This wouldn't work in a master/slave setup, since www-data would also need write access - but in a stand-alone setup it's fine. (And other doesn't need read/any access, but it's not hurting anything either.)

As an aside, but related to RRD permissions...
You may want to look at setguid or setfacl - if RRD's are getting created with the wrong permissions. [Most useful in master/slave setups.]

HTH

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20190405/d8f45c25/attachment.html>


More information about the smokeping-users mailing list