srj | 3 Oct 07:06 2006

Multiple smokeping daemons failure


Hi,
We've been running parallel smokeping daemon instances, based on filters
and a single config file.

After an upgrade we now get error messages and only the first daemon
starts.

I'm wondering if support for multiple instances using filters got dropped?
If not, please point out what I need to do to gain back this very
useful function.

Here are some details:

=============
v1.34 is GOOD
=============
smokeping-1.34
rrdtool-1.0.48

cat restart_sp.sh:
#!/bin/sh
sudo killall smokeping
sudo rm /home/cricket/smokeping-data/*.pid
sudo /home/cricket/smokeping/bin/smokeping
--filter="/West_Call_Centers/[A-Z]./"
sudo /home/cricket/smokeping/bin/smokeping
--filter="/West_Business_Offices/[A-Z]./"
sudo /home/cricket/smokeping/bin/smokeping
--filter="/West_Retail_Stores/[A-C]./"
(Continue reading)

hkclark | 3 Oct 10:13 2006
Picon

Re: Multiple smokeping daemons failure

On 10/3/06, srj <at> netprl.com <srj <at> netprl.com> wrote:
>
> Hi,
> We've been running parallel smokeping daemon instances, based on filters
> and a single config file.
>
> After an upgrade we now get error messages and only the first daemon
> starts.
>
> I'm wondering if support for multiple instances using filters got dropped?
> If not, please point out what I need to do to gain back this very
> useful function.
>

Hi Steve,

I don't recall the details of 1.X, but 2.X uses the "piddir" directive
in the config file to create a "smokeping.pid" file.  It then uses
that to check for an already-running instance in the code that creates
a daemon.  I haven't tried it, but I would assume you could have
multiple instances running if each has a different "piddir".

Regards,
Kennedy

srj | 3 Oct 19:43 2006

Re: Multiple smokeping daemons failure

Thanks Kennedy,

This is a good idea, but unfortunately is not a piddir is not a command
line option, so one can't indepenently specify a separate piddir for each
process.

I have run multiple smokeping processes on the same server (using
v1.31) in a way that  makes use of the piddir config file option. But this
approach requires creating and maintaining multiple installation dirs
which is unnecesary if the method of spawning multiple smokeping processes
from a single  installation using filters works.

It did work just fine in v1.34, but does not work in v2.0.9.

To fix this, I looked at the Smokeping.pm code for the daemonize_me()
subroutine in v2.0.9 and compared it with v1.34. The v1.34 code includes
the process ID "$$" in the file name. The v2.0.9 code does not, so I
changed the v2.0.9 code, and can now spawn multiple smokeping processes
from a single installtion dir.

Please see the message the previous message on this thread for
the details, because what this does is to re-introduce a bug.
It disables checking for pre-existing smokeping processes.  So, if
the code is modified, a script must be used to kill pre-existing
processes when restarting.

Steve
srj <at> netprl.com

On Tue, 3 Oct 2006 hkclark <at> gmail.com wrote:
(Continue reading)

Tobias Oetiker | 3 Oct 20:00 2006
Picon

Re: Multiple smokeping daemons failure

Hi Steve,

are you aware that smokeping 2 can fork on its own .. no need to
use filters and stuff ...

cheers
tobi

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://tobi.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902

srj | 3 Oct 21:14 2006

Re: Multiple smokeping daemons failure


That's great news Tobi!  Can you point me at an example?
Or some documenation?  Does SP2 determine that a poller is
taking too much time and then automatically fork a new process?

Thanks, Steve

On Tue, 3 Oct 2006, Tobias Oetiker wrote:

> Hi Steve,
>
> are you aware that smokeping 2 can fork on its own .. no need to
> use filters and stuff ...
>
> cheers
> tobi
>
>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> http://tobi.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902
>

Bruno Filipe Matos | 6 Oct 19:29 2006
Picon

schema xml


Hi there, I am use Round Robin Database Dump and I need to hadle the XML
files exported from a SmokePing database. Is there any schema or DTD
available to parse the files? Thanks a lot in advance.

Frank Steinborn | 7 Oct 17:50 2006
Picon

Can not generate RRDs

Hello,

I'm trying to setup Smokeping on a SuSE 8.1 box. I installed RRDtool
and Smokepings depencies and finally Smokeping itself without any
problem. However, if I run the Smokeping command-line tool, I just get
these errors:

steinex <at> scott:~/smokeping-2.0.5/bin> ./smokeping 
### fping seems to report in 1 milliseconds
Useless use of numeric lt (<) in void context at (eval 16) line 10.
Useless use of numeric lt (<) in void context at (eval 16) line 13.
Useless use of numeric lt (<) in void context at (eval 16) line 16.
Useless use of numeric lt (<) in void context at (eval 16) line 19.
Useless use of numeric lt (<) in void context at (eval 16) line 22.
Useless use of numeric lt (<) in void context at (eval 16) line 25.
Useless use of numeric gt (>) in void context at (eval 16) line 28.
Useless use of numeric gt (>) in void context at (eval 16) line 31.
Useless use of numeric gt (>) in void context at (eval 16) line 34.
RRDs::create ERROR: can't parse argument 'RRA:AVERAGE:0.5:1:1008'
Warning: no logging method specified. Messages will be lost.
Daemonizing ./smokeping ...

Any hints what could be wrong here? I'm into it for hours now, without
any luck.

Best regards,
Frank

edinilson | 8 Oct 17:06 2006
Picon

Times in ms

Is there a way to show times in smokeping graphics only in mili-seconds (ms)?
For example: 1200ms must appears as 1200ms and not 1.2 seconds

Thanks

Edinilson

tbothner | 9 Oct 10:15 2006
Picon

Smokeping services on Internet? (Commercial or free)

 Hi, I'm using Smokeping internally. However, I want to monitor my web sites
from the outside, showing uptime and response time. (I.e. monitoring how
users percieve my site.)
I haven't found any service providers providing smokeping services out
there.Are there any? (Commercial or free.) If not, would anyone be
interestedin exchanging services, mutually monitoring each other's web site?
(For information, I'm with the UN in Geneva, Switzerland.).

Thanks,
--tor
_____________
Tor Bothner
+41 22 917 24 97

----------------------------------------------------------------
Avec Neuf, on peut envoyer jusqu'&agrave; 9Go par mail.
Decouvrez Neuf Giga
http://www.neufgiga.com[1] 

--- Links ---
   1 http://www.neufgiga.com/
mchandler | 9 Oct 17:58 2006
Picon

Re: Can not generate RRDs


I could never get smokeping to run on suse.  I ran into one frustration
after another and then finally switched to Fedora Core and didn't have a
single problem.  Maybe someone else has better luck that I did.

Mel Chandler, A+, Network+, MCSE, MCDBA, Master CNE, CCNA
Network Engineer
Information Technology
Canon Business Solutions
(310) 217-3893

GCS d--- s+: a C++ UL++++ P+ L++ E W+++ N++ o+ K- w+
O- M-- V- PS PE+ Y+ PGP+ t+ 5+ X+ R tv+ b- DI++++ D++
G e++ h-- r y+

                                                                           
             Frank Steinborn                                               
             <steinex <at> nognu.de                                             
             >                                                          To 
             Sent by:                  smokeping-users <at> list.ee.ethz.ch     
             smokeping-users-b                                          cc 
             ounce <at> list.ee.eth                                             
             z.ch                                                  Subject 
                                       [smokeping-users] Can not generate  
                                       RRDs                                
             10/07/2006 08:50                                              
             AM                                                            

Hello,

(Continue reading)


Gmane