Monthly Archives: March 2015

Multiple instances of sysdig

With the newest release of sysdig 0.1.99 you now have the option to run multiple concurrent instances of sysdig

As a beta user of sysdig cloud, this is fantastic news. I now have the option to manually capture traces on the local machines without having to stop the cloud monitoring agent.

To configure sysdig for multiple connections

create a new file

sudo vim /etc/modprobe.d/sysdig_probe.conf

Add the following lines

options sysdig_probe max_consumers = 5

Stop the sysdigcloud agent which will unload the sysdig module

service dragent stop
service dragent start

You will now have the ability to run multiple instances of sysdig while monitoring using sysdigcloud

Crashplan PROe on CentOS 7

SELINUX

First thing we are going to do is set selinux to allow the two ports in use by CrashPlan (4280 and 4282)

semanage port -a -t http_port_t -p tcp 4280
semanage port -a -t http_port_t -p tcp 4282

FIREWALL

Next we want to edit the rules for firewalld to allow the CrashPlan ports. To do so we create a new service for CrashPlan and add that service to the public zone.

Create a new file:
/etc/firewall/services/crashplan.xml

Add the following lines:

<?xml version="1.0" encoding="utf-8"?>
<service>
<short>CrashPlan</short>
<description>CrashPlan Service</description>
<port protocol="tcp" port="4280"/>
<port protocol="tcp" port="4282"/>
</service>

Next edit the file:
/etc/firewalld/zones/public.xml

Append the following line:
<service name="crashplan"/>

We need to restart the firewall after changing the rules.

systemctl restart firewalld

SYSTEMD

CentOS 7 has moved to systemd, so instead of using init scripts we are going to create a systemd service. This will allow us to use systemd to stop and start the CrashPlan service.

First remove the legacy scripts from init.d created during installation

rm /etc/rc3.d/S99proserver
rm /etc/init.d/proserver

Create a systemd service file:
/etc/systemd/system/proserver.service

Add the following lines:
[Unit]
Description=CrashPlanEngine
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/opt/proserver/bin/proserver start
ExecStop=/opt/proserver/bin/proserver stop

[Install]
wantedBy=multi-user.target

Enable the service to start on boot

systemctl enable proserver