Running rasqlinsert as a service in Fedora 18

Matt Brown matthewbrown at gmail.com
Thu Jan 9 11:19:31 EST 2014


First trivial thought is that the start order is bad... Argus is not
started and bound before the client(s).  Unsure about dependencies with
systemd... Have you verified this?

It looks like your invocation is a little funky also.


On Jan 8, 2014, at 2:14 PM, Ricardo Dias <ricardo.dias at live.com> wrote:

 Hi all.

So I finally moved my argus sensor to a new FC18 server running the latest
version of argus and its clients. This is an all-in-one server with the
argus sensor, rasplit for daily data archival and rasqlinsert for netflow
analysis, and I need to load these tree processes as services upon boot.

I've configured 3 service scripts for fedora systemd:
---
argus.service:
[Unit]
Description=Argus Sensor

[Service]
ExecStart=/usr/local/sbin/argus

[Install]
WantedBy=multi-user.target
---
rasplit.service:
[Unit]
Description=Argus Data Spliter

[Service]
ExecStart=/usr/local/bin/rasplit -S localhost -M time 1d -w
/mnt/argus/argus_%Y_%%m_%d.data

[Install]
WantedBy=multi-user.target
---
rasqlinsert.service:
[Unit]
Description=Argus SQL Netflow

[Service]
ExecStart=/usr/local/bin/rasqlinsert -S localhost -M time 1d -w
mysql://root@localhost/argus/argus_%Y_%%m_%d -m none -M time 1d -s -record

[Install]
WantedBy=multi-user.target
---

Now my problem is that rasqlinsert starts successfully but quits
immediately, without creating the DB and Table. If I run the same
rasqlinsert manually it works ok and starts filling the database.
Can anyone give me a lead on this? I'm sure there's something wrong with
the rasqlinsert service script, but the fact is that the argus and rasplit
work fine as services, so I'm kind of lost here :|

By the way the duple '%%' for the month (%m) is not a typo, for some reason
the %m represents some kind of hash value, and using %%m was a work around
for rasplit.

Thanks in advance,
Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20140109/6a1df547/attachment.html>


More information about the argus mailing list