[smokeping-users] A beginner's problems - I can't run smokeping

goZoom SysAdmin sysadmin at gozoom.ca
Mon Apr 9 20:50:22 CEST 2018


You configure your monitored hosts in the Targets file.  In my install 
that is here :

sudo vi /etc/smokeping/config.d/Targets

You can find the Targets file by using the find command or by installing 
the locate utility - I like locate.

sudo apt install locate

and then running

sudo updatedb

sudo locate Targets

(if you don't 'sudo locate' you will not see some directories because of 
permissions)

and you can view the plotted data in at this url assuming you don't 
change the cgi path in the 'General' file: 
(yourwebserverip)/cgi-bin/smokeping.cgi?target=(your system config name)

You can change the url path  in  /etc/smokeping/config.d/General

You need to make sure that appropriate permissions are set for the paths 
that are specified in /etc/smokeping/config.d/pathnames

You might also need to fiddle with your webserver's config file to 
ensure it can execute the scripts.

And keep plugging away at it......  I found Smokeping challenging to 
configure when I first installed it and I am a Linux guy..... that was 
10  or 12 years ago I think, but it is a /very /handy tool once you get 
to understand how it works and what it can do. It now monitors a 
half-dozen services on 200+ targets for us.

Regards,

Ian


On 09/04/2018 2:29 PM, Henrik Rosenø wrote:
> OK. Thank you!
>
> I discovered that Ctrl-C gets me back to the prompt.
> And "ps -ef | grep -c smokeping" gives output "2" just like in your case.
> But how can I see or access the results of the monitoring?
>
> Best regards,
> Henrik R.
>
>
> On 04/09/2018 04:02 PM, goZoom SysAdmin wrote:
>>
>> You probably have multiple copies of smokeping running.
>>
>> Count the instances
>>
>> ian at draco:~$ ps -ef | grep -c smokeping
>> 2
>>
>>
>> 2 is normal as shown below
>>
>> ian at draco:~$ ps -ef | grep smokeping
>>
>> smokepi+ 17602     1  0 Apr05 ?        00:01:06 /usr/sbin/smokeping 
>> [FPing]
>> ian      29551 29487  0 09:57 pts/0    00:00:00 grep --color=auto 
>> smokeping
>> ian at draco:~$
>>
>> if you have multiple instances it's probably easiest just to reboot
>>
>> ian at draco:~$  sudo reboot now
>>
>> And You probably need to find a beginners guide to Linux.
>>
>> Ian
>>
>>
>> On 09/04/2018 8:43 AM, Henrik Rosenø wrote:
>>> Hi goZoom
>>>
>>>
>>> Thank you for your very fast answer.
>>>
>>> So far so good. Now my problem is getting 20 copies of a status 
>>> message. Below I have inserted the first and the last copy.
>>> The cursor is blinking next to "lines 1-18/18 (END)".
>>> What do I do now?
>>>
>>>> henrik at Henrik-L570:~/smokeping-2.7.1$ sudo service smokeping start
>>>> [sudo] password for henrik:
>>>> henrik at Henrik-L570:~/smokeping-2.7.1$ sudo service smokeping status
>>>> ● smokeping.service - LSB: Start or stop the smokeping latency 
>>>> logging system daemon
>>>>    Loaded: loaded (/etc/init.d/smokeping; generated; vendor preset: 
>>>> enabled)
>>>>    Active: active (running) since Mon 2018-04-09 11:32:08 CEST; 3h 
>>>> 0min ago
>>>>      Docs: man:systemd-sysv-generator(8)
>>>>     Tasks: 1 (limit: 4915)
>>>>    CGroup: /system.slice/smokeping.service
>>>>            └─9923 /usr/sbin/smokeping [FPing]
>>>>
>>>> Apr 09 11:32:07 Henrik-L570 systemd[1]: Starting LSB: Start or stop 
>>>> the smokeping latency logging syste
>>>> Apr 09 11:32:07 Henrik-L570 smokeping[9911]:  * Starting latency 
>>>> logger daemon smokeping
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9918]: Starting syslog logging
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9919]: Note: logging to 
>>>> syslog as local0/info.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9919]: Daemonizing 
>>>> /usr/sbin/smokeping ...
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: Smokeping version 
>>>> 2.006011 successfully launched.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: Not entering 
>>>> multiprocess mode for just a single probe.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: FPing: probing 1 
>>>> targets with step 300 s and offset 27 s.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9911]:    ...done.
>>>> Apr 09 11:32:08 Henrik-L570 systemd[1]: Started LSB: Start or stop 
>>>> the smokeping latency logging system
>>>> lines 1-18/18 (END)
>>>>
>>>>
>>>
>>>>
>>>>
>>>> ● smokeping.service - LSB: Start or stop the smokeping latency 
>>>> logging system daemon
>>>>    Loaded: loaded (/etc/init.d/smokeping; generated; vendor preset: 
>>>> enabled)
>>>>    Active: active (running) since Mon 2018-04-09 11:32:08 CEST; 3h 
>>>> 0min ago
>>>>      Docs: man:systemd-sysv-generator(8)
>>>>     Tasks: 1 (limit: 4915)
>>>>    CGroup: /system.slice/smokeping.service
>>>>            └─9923 /usr/sbin/smokeping [FPing]
>>>>
>>>> Apr 09 11:32:07 Henrik-L570 systemd[1]: Starting LSB: Start or stop 
>>>> the smokeping latency logging system daemon...
>>>> Apr 09 11:32:07 Henrik-L570 smokeping[9911]:  * Starting latency 
>>>> logger daemon smokeping
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9918]: Starting syslog logging
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9919]: Note: logging to 
>>>> syslog as local0/info.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9919]: Daemonizing 
>>>> /usr/sbin/smokeping ...
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: Smokeping version 
>>>> 2.006011 successfully launched.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: Not entering 
>>>> multiprocess mode for just a single probe.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9923]: FPing: probing 1 
>>>> targets with step 300 s and offset 27 s.
>>>> Apr 09 11:32:08 Henrik-L570 smokeping[9911]:    ...done.
>>>> Apr 09 11:32:08 Henrik-L570 systemd[1]: Started LSB: Start or stop 
>>>> the smokeping latency logging system daemon.
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> ~
>>>> lines 1-18/18 (END)
>>>
>>>
>>> Henrik
>>> -- 
>>> Henrik Rosenø, M.Sc (civilingeniør)
>>> Website:www.Transformation.DK
>>> Spiritual, psychological, ethical, and political subjects.
>>>
>>> English: The path to eternal life is spiritual and sexual transformation.dk
>>> Dansk: Vejen til evigt liv er åndelig og seksuel transformation.dk
>>>
>>> On 04/09/2018 02:20 PM, goZoom SysAdmin wrote:
>>>>
>>>> This is not a smokeping problem.  You are trying to run smokeping 
>>>> as Your user on Linux and You do not have write access to the 
>>>> directory.  Run smokeping as a service, not as a standalone program.
>>>>
>>>> sudo service smokeping start
>>>>
>>>> sudo service smokeping status
>>>>
>>>> Ian
>>>>
>>>>
>>>> On 09/04/2018 8:13 AM, Henrik Rosenø wrote:
>>>>> creating /var/run/smokeping/smokeping.pid: Permission denied
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> smokeping-users mailing list
>>>> smokeping-users at lists.oetiker.ch
>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>>
>>
>

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


More information about the smokeping-users mailing list