<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Schoolbook";
        panose-1:2 4 6 4 5 5 5 2 3 4;}
@font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Century Schoolbook","serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Century Schoolbook","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif";
color:#1F497D">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif";
color:#1F497D">How can I tell if it’s running under UID or GID? I never had a problem before with this running. I’m running this under root on both master and slave
server. Secrets.conf is owned by root user and group.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif";
color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext"> Peter Kristolaitis [mailto:alter3d@alter3d.ca]
<br>
<b>Sent:</b> Tuesday, November 03, 2009 15:25<br>
<b>To:</b> Eric Chatham<br>
<b>Cc:</b> smokeping-users@lists.oetiker.ch<br>
<b>Subject:</b> Re: [smokeping-users] Slave cannot open Secrets file (Permisson Denied)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I suspect it's a file ownership problem.<br>
<br>
Is smokeping running with UID root or GID root (the two conditions which would allow it to access that file given the ownership and permissions)? Most installations of smokeping run under non-privileged UID/GID for security.
<br>
<br>
<br>
<br>
<br>
<br>
Eric Chatham wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif"">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif"">I had this working at one time with giving the secrets file 640 permissions. Our hardware failed on our Linux server, so I had to re-install all our applications from
a backup. One of the apps was smokeping. I re-installed the program and just restored the configs from the backup.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif"">Can someone tell me why I’m now having a problem on the slave server trying to open the secrets.conf file on the master server? I keep getting this error:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">WARNING: Opening secrets file /opt/smokeping/etc/secrets.conf: Permission denied</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">ERROR: we did not get config from the master. Maybe we are not configured as a slave for any of the targets on the master ?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif"">Here is my secrets.conf stat:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">stat secrets.conf
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas"> File: `secrets.conf'</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas"> Size: 56 Blocks: 16 IO Block: 4096 regular file</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Device: fd00h/64768d Inode: 4423683 Links: 1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 0/ root)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Access: 2009-11-03 13:21:26.000000000 -0600</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Modify: 2009-11-02 15:06:10.000000000 -0600</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Change: 2009-11-03 13:36:58.000000000 -0600</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Schoolbook","serif""> </span><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-family:"Baskerville Old Face","serif"">Eric Chatham</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-family:"Baskerville Old Face","serif"">MIS Department</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-family:"Baskerville Old Face","serif"">Phone: (216) 373-4683</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-family:"Baskerville Old Face","serif"">Fax: (216) 373-4669</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-family:"Baskerville Old Face","serif""><a href="mailto:echatham@broadvox.com">echatham@broadvox.com</a></span></i><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Baskerville Old Face","serif""><img border="0" width="230" height="76" id="Picture_x0020_1" src="cid:image001.gif@01CA5C9A.5B430BC0" alt="BroadvoxLogo2"></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray">CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.<br>
<br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<pre><o:p> </o:p></pre>
<pre style="text-align:center">
<hr size="4" width="90%" align="center">
</pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>smokeping-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><o:p></o:p></pre>
<pre><a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.<br>
</font>
</body>
</html>