I have six Linux servers (and one Solaris server but I won't bother with this just yet) that need to send some type of notice to an OpenNMS server whenever a disk partition gets above say 75%. I was trying to do this via SNMP and traps but found this very complicated. So now I want to use syslog as OpenNMS has a syslogd. Anyways, this is really a syslog question. Is there a way to specify the port to use when sending a syslog message from a host to a remote syslogd?
For example I tried this in my /etc/syslog.conf file:
Quote:
local1.crit @<hostname>:<port>
|
But no dice. Syslog will only send the message when I don't add the ":<port>" part. The problem here is that I don't want to run the OpenNMS syslogd on port 514 as I still want the regular syslogd to run. To get around this I have written an iptables script that alters the destination port from 514 to 10514 (the port where OpenNMS syslogd runs). This works but it is a cheap kind of hack and I'd rather not have to implement this on six servers (plus the Solaris server which I know almost nothing about). I have read a little about syslog-ng but I am loathe to use this as, again, I will have to implement it on six servers.
Any ideas?
Thanks