<html><head><title>Re: [smokeping-users] FPING graphs not updating under normal mode -- only under debug ?</title>
</head>
<body>
<br><br>
<table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'courier new'; font-size: 9pt;">smokeping installation giving me headaches =(<br>
<br>
I've followed FAQ and made sure permissions are as specified for rrd files..<br>
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:<br>
<br>
rrdtool lastupdate TYDC-Core1.rrd<br>
uptime loss median ping1 ping2 ping3 ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16 ping17 ping18 ping19 ping20<br>
<br>
1554485923: U 20 U U U U U U U U U U U U U U U U U U U U U<br>
<br>
when I run this cmd as userid root, things look good<br>
<br>
/usr/sbin/smokeping --config=/etc/smokeping/config --logfile=/tmp/smoke.log<br>
<br>
root@hyd2-netmon00:/var/lib/smokeping# rrdtool lastupdate Japan/TYDC-Core1.rrd <br>
uptime loss median ping1 ping2 ping3 ping4 ping5 ping6 ping7 ping8 ping9 ping10 ping11 ping12 ping13 ping14 ping15 ping16 ping17 ping18 ping19 ping20<br>
<br>
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<br>
<br>
seems like smokeping ran as userid smokeping is failing somewhere... not sure what though, since it does update the rrd and generate U's...? <br>
<br>
<br>
Chris<br>
</td>
</tr>
</table>
<br><br>
<span style=" font-family:'Courier New'; font-size: 9pt;">That's a permissions issue - I'm certain of it.<br>
<br>
Is this running as master or slave?<br>
How about a ls -al of the relevant RRD files?<br>
SP config file?<br>
What linux distro?<br>
How was SP installed, compiles/package?<br>
What version of SP.<br>
<br>
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. :)<br>
If it runs as root, and fails as some other user - it's always a permissions issue.<br>
<br>
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.<br>
<br>
-rw-r--r-- 1 smokeping www-data 27707476 Apr 5 12:54 VPS.rrd<br>
<br>
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.)<br>
<br>
As an aside, but related to RRD permissions...<br>
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.]<br>
<br>
HTH<br>
<br>
-Greg<br>
</body></html>