[smokeping-users] [Ticket #34] smokeping-users Digest, Vol 77, Issue 4

IT Department anghelflorin at globtel.ro
Tue Nov 12 18:32:30 CET 2013


This is a notification from the Help Desk.




On Nov 12, 2013 @ 05:32 pm, smokeping-users-request at lists.oetiker.ch wrote:
Send smokeping-users mailing list submissions to
	smokeping-users at lists.oetiker.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
or, via email, send a message with subject or body 'help' to
	smokeping-users-request at lists.oetiker.ch

You can reach the person managing the list at
	smokeping-users-owner at lists.oetiker.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of smokeping-users digest..."


Today's Topics:

   1. Re: Slave Graphs not updating on master (Jim Long)
   2. Re: (no subject) (Dharmapriya Thusitha)
   3. Re: (no subject) (Peter Kristolaitis)
   4. Re: Slave Graphs not updating on master (Nick Toseland)


----------------------------------------------------------------------

Message: 1
Date: Tue, 9 Jul 2013 16:56:04 -0700
From: Jim Long <smokeping at museum.rain.com>
Subject: Re: [smokeping-users] Slave Graphs not updating on master
To: Nick Toseland <nick at livejournalinc.com>
Cc: smokeping-users at lists.oetiker.ch
Message-ID: <20130709235604.GA45220 at ns.umpquanet.com>
Content-Type: text/plain; charset=us-ascii

"Get to the bottom of this" I'm not sure, but one thing
seems fishy.....

On Wed, Jul 10, 2013 at 12:36:15AM +0100, Nick Toseland wrote:
> 
> ls -la /var/lib/smokeping//External/
> total 5848
> drwxr-xr-x 2 smokeping smokeping    4096 Jul  9 22:51 .
> drwxr-xr-x 6 smokeping smokeping    4096 Jul  9 22:51 ..
> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  9 23:33 BBC-CO-UK.rrd
> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  9 22:51 
> BBC-CO-UK~smokeping-oregon.rrd

Since ls knows that "smokeping" is a defined username, and if ps
shows:

> This is how the apache and smokeping process run:
> # ps -ef | grep apache
> root       987     1  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   989   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   991   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   992   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> 
> # ps -ef | grep smokeping
> 106       1706     1  0 23:05 ?        00:00:00 /usr/sbin/smokeping [FPing]

... then what's the "106" doing at the beginning of
that line?  Are you trying to show that the smokeping process is
running as UID 106, and ps is unable to map that UID to a
username?  Or some other reason the apache processes show a
username and the smokeping process doesn't?




------------------------------

Message: 2
Date: Wed, 10 Jul 2013 10:26:19 +0530
From: Dharmapriya Thusitha <thusitha555 at gmail.com>
Subject: Re: [smokeping-users] (no subject)
To: smokeping-users at lists.oetiker.ch
Message-ID:
	<CAJh6EL7+AEfzpdBqrdK06w0uHyykMB1S21uUysBYhk5b=Am3UA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

hi ,
is there any way to get smokeping alert data through API.(when an alert
occurred, get that alert through API ).
thanks
thusitha


On Mon, Jul 8, 2013 at 2:30 PM, Dharmapriya Thusitha
<thusitha555 at gmail.com>wrote:

>
>
> hi,
> In smokeping ,it uses ++/[-_0-9a-zA-Z]+/ types of device names.so i cant
> add ip address as the device name .it gives an error." ERROR:
> /etc/smokeping/devices/xx.xx.xx.xx, line 1: unknown section '"xx.xx.xx.xx.and i have 5000 agents to monitor. because of this problem ,it is very hard
> to change the names of those devices.give me an solution
>
> _______________________________________________
> 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/20130710/d76973cb/attachment-0001.htm 

------------------------------

Message: 3
Date: Wed, 10 Jul 2013 01:00:42 -0400
From: Peter Kristolaitis <alter3d at alter3d.ca>
Subject: Re: [smokeping-users] (no subject)
To: smokeping-users at lists.oetiker.ch
Message-ID: <51DCEA7A.806 at alter3d.ca>
Content-Type: text/plain; charset="iso-8859-1"

Smokeping itself does not have an API you can query.   However, with a 
bit of work, you can have Smokeping trigger an external API when an 
alert is triggered/raised/cleared.  From the docs:*

to* /(mandatory setting)/
//Either an email address to send alerts to, or the name of a program to 
execute when an alert matches. To call a program, the first character of 
the *to* value must be a pipe symbol "|". The program will the be called 
whenever an alert matches, using the following 5 arguments (except if 
*edgetrigger* is 'yes'; see below): *name-of-alert*, *target*, 
*loss-pattern*, *rtt-pattern*, *hostname*. You can also provide a comma 
separated list of addresses and programs.


- Peter


On 7/10/2013 12:56 AM, Dharmapriya Thusitha wrote:
> hi ,
> is there any way to get smokeping alert data through API.(when an 
> alert occurred, get that alert through API ).
> thanks
> thusitha
>
>
> On Mon, Jul 8, 2013 at 2:30 PM, Dharmapriya Thusitha 
> <thusitha555 at gmail.com <mailto:thusitha555 at gmail.com>> wrote:
>
>
>
>     hi,
>     In smokeping ,it uses ++/[-_0-9a-zA-Z]+/ types of device names.so
>     i cant add ip address as the device name .it gives an error."
>     ERROR: /etc/smokeping/devices/xx.xx.xx.xx, line 1: unknown section
>     '"xx.xx.xx.xx. and i have 5000 agents to monitor. because of this
>     problem ,it is very hard to change the names of those devices.give
>     me an solution
>
>     _______________________________________________
>     smokeping-users mailing list
>     smokeping-users at lists.oetiker.ch
>     <mailto:smokeping-users at lists.oetiker.ch>
>     https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>
>
>
> _______________________________________________
> 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/20130710/a30c63ef/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4246 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130710/a30c63ef/attachment-0001.bin 

------------------------------

Message: 4
Date: Wed, 10 Jul 2013 10:52:10 +0100
From: Nick Toseland <nick at livejournalinc.com>
Subject: Re: [smokeping-users] Slave Graphs not updating on master
To: Greg Sloop <gregs at sloop.net>
Cc: smokeping-users at lists.oetiker.ch
Message-ID: <51DD2ECA.6060607 at livejournalinc.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Greg

I managed to fix the the issue by as you say giving www-data access to 
the RRD files.

The problem is I don't want to have to do this for every RRD file that 
is created.

Do you happen to have the link to the messages  for mod'ing the startup 
script?

Thanks for your help

NIck

On 10/07/2013 00:52, Gregory Sloop wrote:
> Re: [smokeping-users] Slave Graphs not updating on master www-data 
> needs rights to write to the RRD files.
>
> A search for "slave permissions" will probably give a few more 
> pointers from the list since this is a common issue.
> changing ownership and rights should set you right.
> [Even better, mod'ing the startup script to change all the RRD files 
> so they are www-data writeable - this way new slave setups won't get 
> borked if you forget to mod them...a post in the last day or two 
> showed a good example of this.]
>
> -Greg
>
>
>
> 	All,
>
> I am pulling my hair out trying to get the slave graphs to update on 
> the master server.
>
> I have ran the debug on the slave and can it executing the probe and 
> sending the data to the master. apparently the server acknowledges it, 
> but nothing appears on the webpage.
>
>
> This is how the apache and smokeping process run:
> # ps -ef | grep apache
> root       987     1  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   989   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   991   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
> www-data   992   987  0 22:45 ?        00:00:00 /usr/sbin/apache2 -k start
>
> # ps -ef | grep smokeping
> 106       1706     1  0 23:05 ?        00:00:00 /usr/sbin/smokeping 
> [FPing]
>
> There is nothing in /var/log/syslog to suggest why this is not working.
>
> There is however these in /var/log/apache2/error.log. The problem is 
> that those files don't exist
>
> [Tue Jul  9 23:17:00 2013] smokeping.cgi [client XXXXX]: Could not 
> lock 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache 
> (Permission denied). Trying again 2 more times.
> [Tue Jul  9 23:17:01 2013] smokeping.cgi [client XXXXX]: Could not 
> lock 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache 
> (Permission denied). Trying again 1 more times.
> [Tue Jul  9 23:17:02 2013] smokeping.cgi [client XXXXX]: Could not 
> update 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache, 
> giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
> [Tue Jul  9 23:22:00 2013] smokeping.cgi [client XXXXX]: Could not 
> lock 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache 
> (Permission denied). Trying again 2 more times.
> [Tue Jul  9 23:22:01 2013] smokeping.cgi [client XXXXX]: Could not 
> lock 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache 
> (Permission denied). Trying again 1 more times.
> [Tue Jul  9 23:22:02 2013] smokeping.cgi [client XXXXX]: Could not 
> update 
> /var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache, 
> giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
>
> ls -la /var/lib/smokeping//External/
> total 5848
> drwxr-xr-x 2 smokeping smokeping    4096 Jul  9 22:51 .
> drwxr-xr-x 6 smokeping smokeping    4096 Jul  9 22:51 ..
> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  9 23:33 BBC-CO-UK.rrd
> -rw-r--r-- 1 smokeping smokeping 2986808 Jul  9 22:51 
> BBC-CO-UK~smokeping-oregon.rrd
>
>
> Could you help me get to the bottom of this?
>
> Thanks
>
> Nick
>
>
>
>
>
> /--
> Gregory Sloop, Principal: Sloop Network & Computer Consulting
> Voice: 503.251.0452 x82
> EMail: /gregs at sloop.net <mailto:gregs at sloop.net>
> http://www.sloop.net
> /---
>
>
> _______________________________________________
> 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/20130710/2d1068de/attachment.htm 

------------------------------

_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


End of smokeping-users Digest, Vol 77, Issue 4
**********************************************

------
This is an automated response.  Your issue has been noted.  We'll be in touch soon.



Please reply to this email or visit the URL below with any additional details.

http://florin-pc/portal/view-help-request/34


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20131112/bb351624/attachment-0001.htm 


More information about the smokeping-users mailing list