Running rasqlinsert as a service in Fedora 18
Ricardo Dias
ricardo.dias at live.com
Wed Jan 8 14:14:04 EST 2014
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/20140108/7a5d0541/attachment.html>
More information about the argus
mailing list