[smokeping-users] no data in graphs

Kwame Bahena informatux at gmail.com
Tue Mar 11 19:43:52 CET 2014


read the manual,

it says  --config=x   Use a config file different from the default


On Tue, Mar 11, 2014 at 12:42 PM, Erlington Cardoza
<erlington.j at gmail.com>wrote:

>
> Option c is ambiguous (cache-dir, check, config)
> Usage:
>     smokeping [ --email | --makepod | --version | --restart ]
>
>      Options:
>
>      --man[=x]    Show the manpage for the program (or for probe x, if
> specified)
>
>      --help       Help :-)
>
>      --email      Send SmokePing Agents to all Targets marked DYNAMIC
>
>      --config=x   Use a config file different from the default
>
>      --check      Just check the config file syntax, don't start the daemon
>
>      --makepod[=x] Create POD documentation on Config file (or for probe
> x, if specified)
>
>      --version    Show SmokePing Version
>
>      --debug      Run Only once and do not Fork
>
>      --debug-daemon Start the daemon with debugging enabled
>
>      --restart    Restart SmokePing
>
>      --reload     Reload configuration in the running process without
> interrupting
>                   any probes
>
>      --nodaemon    Do no daemonize the process (no fork)
>
>      --filter=x   Only measure entries which pass the filter x
>
>      --logfile=x    Append warnings to logfile x.
>
>      --static[=x] Generates a static website in directory x.  If x is left
> out,
>                   pagedir from the config is used.
>
>      --nosleep    For debugging you may want to run SmokePing without
> sleep interval
>
>      --gen-examples Generate the smokeping_examples document and example
> config files
>                     (to be used while building inside the smokeping
> distribution)
>                     With --check : check the syntax of the generated
> examples.
>
>      --master-url=s Run smokeping in slave mode. Attach to master for
> config.
>
>      --slave-name=s By default the slave will use whatever it thinks its
> name
>                     is, when talking to its master. In some cases you may
>                     probably want to override this.
>
>
>      --shared-secret=s File containing the shared secret for talking to
> the server.
>
>      --cache-dir=s Directory for temporary data storage when running in
> slave mode.
>
>      --pid-dir=s Directory for the PID file when running in slave mode.
>                  (optional, defaults to --cache-dir)
>
>
>
> 2014-03-11 19:37 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>
> stop smokeping and run it from the console with
>>
>> smokeping -c /path/to/config_file --nodaemon --debug
>>
>> and see what errors you get
>>
>>
>> On Tue, Mar 11, 2014 at 12:22 PM, Erlington Cardoza <
>> erlington.j at gmail.com> wrote:
>>
>>> Ok let`s change the public IP into a private so is still the same issue,
>>> At the beginning I thought it was an IP problem for security and I tested
>>> before but nothing changed. So here is the conf with private IP as I have
>>> right know.
>>> *** General ***
>>>
>>> owner    = Jade Fox
>>> contact  = Fox at mail.cr
>>> mailhost = mx.mail.cr
>>> # NOTE: do not put the Image Cache below cgi-bin
>>> # since all files under cgi-bin will be executed ... this is not
>>> # good for images.
>>> cgiurl   = http://192.168.1.200/smokeping.cgi
>>> # specify this to get syslog logging
>>> syslogfacility = local0
>>> # each probe is now run in its own process
>>> # disable this to revert to the old behaviour
>>> # concurrentprobes = no
>>>
>>> @include /etc/smokeping/config.d/pathnames
>>>
>>> Regarding the other suggestion, I have this files:
>>> root at Fox:/etc/smokeping/config.d# ls
>>> Alerts    General    Presentation  sendmail  Targets
>>> Database  pathnames  Probes        Slaves
>>>
>>> In alerts I have values from smokeping webpage:
>>>
>>> +someloss
>>> type = loss
>>> # in percent
>>> pattern = >0%,*12*,>0%,*12*,>0%
>>> comment = loss 3 times  in a row
>>>
>>>  +lossdetect
>>>  type = loss
>>>  # in percent
>>>  pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20%
>>>  comment = suddenly there is packet loss
>>>
>>>  +miniloss
>>>  type = loss
>>>  # in percent
>>>  pattern = >0%,*12*,>0%,*12*,>0%
>>>  comment = detected loss 3 times over the last two hours
>>>
>>>  +rttdetect
>>>  type = rtt
>>>  # in milliseconds
>>>  pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100
>>>  comment = routing messed up again ?
>>>
>>>  +rttbadstart
>>>  type = rtt
>>>  # in milliseconds
>>>  pattern = ==S,==U
>>>  comment = offline at startup
>>>
>>> In targets :
>>>
>>> *** Targets ***
>>>
>>> probe = FPing
>>> menu = Top
>>> title = Network Latency Grapher
>>> remark = Welcome to the SmokePing website of xxx Company. \
>>>          Here you will learn all about the latency of our network.
>>>
>>> + Luminet
>>>
>>> menu = Luminet
>>> title = Local Network
>>> alerts = someloss
>>>
>>> ++ LocalMachine
>>>
>>> menu = Local Machine
>>> title = This host
>>> host = localhost
>>> alerts = someloss
>>>
>>> + Colom
>>> menu = Colom
>>> title = Colom
>>>
>>> ++Colom
>>> title = ICMP Colom
>>> host = 192.168.1.101
>>> alerts = someloss
>>>
>>> in Probes:
>>> +FPing
>>>
>>> binary = /usr/bin/fping
>>>
>>> And that's all I have configured.
>>> Regards
>>>
>>>
>>> 2014-03-11 19:09 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>>>
>>> There is little help I can provide if you don't share all your config.
>>>> You say that you replaced the values yet in the config you shared I see:
>>>>
>>>> cgiurl   = http://my.domain/smokeping.cgi
>>>>
>>>> and also, that's not the only config file you need to work on, you also
>>>> need to look in the files in /etc/smokeping/conf.d
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Mar 11, 2014 at 12:06 PM, Erlington Cardoza <
>>>> erlington.j at gmail.com> wrote:
>>>>
>>>>> Yes, I replace the values in this email for security because it has a
>>>>> public IP, if not I couldn`t see that my graph has not data...
>>>>>
>>>>>
>>>>> 2014-03-11 19:03 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>>>>>
>>>>> But  you need to replace your cgiurl value, is your "my.domain" really
>>>>>> your domain? you need to know at least the ip of your server.
>>>>>> Do you know the ip of it?
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 11, 2014 at 11:56 AM, Erlington Cardoza <
>>>>>> erlington.j at gmail.com> wrote:
>>>>>>
>>>>>>> Yeah sorry for my lost, in that guide the config file has the same
>>>>>>> configuration of my General file I showed you before.
>>>>>>> /etc/smokeping/config.d/General:
>>>>>>>
>>>>>>> *** General ***
>>>>>>>
>>>>>>> owner    = my owner
>>>>>>> contact  = owner at mail.com
>>>>>>> mailhost = mx.mail.com
>>>>>>> # NOTE: do not put the Image Cache below cgi-bin
>>>>>>> # since all files under cgi-bin will be executed ... this is not
>>>>>>> # good for images.
>>>>>>> cgiurl   = http://my.domain/smokeping.cgi
>>>>>>> # specify this to get syslog logging
>>>>>>> syslogfacility = local0
>>>>>>> # each probe is now run in its own process
>>>>>>> # disable this to revert to the old behaviour
>>>>>>> # concurrentprobes = no
>>>>>>>
>>>>>>> @include /etc/smokeping/config.d/pathnames
>>>>>>>
>>>>>>> I guess it is an older version of smokeping.
>>>>>>> Regards
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2014-03-11 18:47 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>>>>>>>
>>>>>>> So you are really lost.
>>>>>>>> Follow a howto like this
>>>>>>>> http://www.howtoforge.com/monitoring_network_latency_smokeping_debian_etch
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Mar 11, 2014 at 11:44 AM, Erlington Cardoza <
>>>>>>>> erlington.j at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I`m sorry in the guide I followed it just said type "sudo apt-get
>>>>>>>>> install smokeping". I searched that config file with "find" and I found
>>>>>>>>> this one: /etc/smokeping/config, and it has this config:
>>>>>>>>>
>>>>>>>>> @include /etc/smokeping/config.d/General
>>>>>>>>> @include /etc/smokeping/config.d/Alerts
>>>>>>>>> @include /etc/smokeping/config.d/Database
>>>>>>>>> @include /etc/smokeping/config.d/Presentation
>>>>>>>>> @include /etc/smokeping/config.d/Probes
>>>>>>>>> @include /etc/smokeping/config.d/Slaves
>>>>>>>>> @include /etc/smokeping/config.d/Targets
>>>>>>>>>
>>>>>>>>> is that what you`re talking about?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2014-03-11 18:34 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>>>>>>>>>
>>>>>>>>> The smokeping config file.  Do you know where is it?
>>>>>>>>>> Did you follow a howto to install and configure it?
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> --
>>>>>>>>>> Kwame
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Mar 11, 2014 at 11:33 AM, Erlington Cardoza <
>>>>>>>>>> erlington.j at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Which configuration do you need? smokeping conf or Debian?.
>>>>>>>>>>> Which command I need to use?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2014-03-11 18:31 GMT+01:00 Kwame Bahena <informatux at gmail.com>:
>>>>>>>>>>>
>>>>>>>>>>> You have an error on your config file.
>>>>>>>>>>>> The error says that the file or directory /etc/config does not
>>>>>>>>>>>> exist.
>>>>>>>>>>>> Can you pastebin your config some place and share it?
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>> --
>>>>>>>>>>>> Kwame
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Mar 11, 2014 at 11:27 AM, Erlington Cardoza <
>>>>>>>>>>>> erlington.j at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hey guys, first of all, thanks to oetiker for this excellent
>>>>>>>>>>>>> tool.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Second, I have done the command ( smoke --debug ) and my
>>>>>>>>>>>>> smokeping says "ERROR: loading smokeping configuration file
>>>>>>>>>>>>> /usr/sbin/../etc/config: No such file or directory". I am
>>>>>>>>>>>>> using Debian but I am not a master in this O.S by the way. Also, my local
>>>>>>>>>>>>> machine does graphics with data but my other host does not appear the data.
>>>>>>>>>>>>> In my desesperation I did assigned all of possible permissions to the other
>>>>>>>>>>>>> host, like this "-rwx-rwx-rwx 1 smokeping www-data" and I still dont have
>>>>>>>>>>>>> data in the new graphic, but in the local machine I do have and Im not
>>>>>>>>>>>>> using master-slave configuration. What can I do?.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks and Regards
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> 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/20140311/5b2fcdc1/attachment-0001.htm 


More information about the smokeping-users mailing list