[smokeping-users] FreeBSD slave configuration --> Automatic boot at startup

Seth Lyons slyons at fxcm.com
Tue Mar 24 14:21:16 CET 2015


/etc/rc.local is deprecated.  FreeBSD’s rc infrastructure can be used to start smokeping by adding a few lines to /etc/rc.conf.  If you want to run smokeping with only default options, just add smokeping_enable=”YES” to /etc/rc.conf.  If you want to set runtime options, then in addition to smokeping_enable=”YES” you can use smokeping_flags=”<flags>” to set your options.

Example:
smokeping_enable=”YES”
smokeping_flags=”--master-url=http://slat01.groups.local/smokeping/smokeping.fcgi --cache-dir=/usr/local/var/smokeping --shared-secret=/usr/local/etc/smokeping/slave_secret”

From: smokeping-users [mailto:smokeping-users-bounces+slyons=fxcm.com at lists.oetiker.ch] On Behalf Of OOSTERS Mario
Sent: Monday, March 23, 2015 9:17 AM
To: smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] FreeBSD slave configuration --> Automatic boot at startup

Thank you very much, it is indeed working…
I thought I needed to create a special rc.d daemon…

This is way simpler!!! Thx a lot!

From: Joseph Jackson [mailto:jjackson at aninetworks.net]
Sent: Monday, March 23, 2015 1:18 PM
To: OOSTERS Mario; 'smokeping-users at lists.oetiker.ch'
Subject: RE: [smokeping-users] FreeBSD slave configuration --> Automatic boot at startup

You can put it in /etc/rc.local and it will run at boot.

From: smokeping-users [mailto:smokeping-users-bounces+jjackson=aninetworks.net at lists.oetiker.ch] On Behalf Of OOSTERS Mario
Sent: Monday, March 23, 2015 7:17 AM
To: 'smokeping-users at lists.oetiker.ch'
Subject: [smokeping-users] FreeBSD slave configuration --> Automatic boot at startup

Hi,

I need to make 30 slaves, each one running on a NUC at one of our agencies in a Virtualbox.

I got everything working except one thing that is probably really simple, but I don’t seem to get it…
How do I autoboot the smokeping slave using rc.d system.
My manual command is

/usr/local/bin/smokeping --master-url=http://slat01.groups.local/smokeping/smokeping.fcgi --cache-dir=/usr/local/var/smokeping --shared-secret=/usr/local/etc/smokeping/slave_secret

How do I do this now with rc.d in FreeBSD?

Friendly greetings,

Mario Oosters,
System Engineer @ Group S.

----------------------------
***** Group S disclaimer *****
Deze informatie wordt u gegeven onder voorbehoud van alle rechten en zonder enige nadelige erkentenis. Group S kan hiervoor geenszins aansprakelijk worden gesteld.

Ces informations vous sont données sous toutes réserves, sans aucune reconnaissance préjudiciable et ne peuvent en aucun cas engager la responsabilité de Group S.
http://www.groups.be/1_mail-disclaimer.htm
----------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20150324/2630689a/attachment.html>


More information about the smokeping-users mailing list