I am using snmptrapd program in solaris environment. I was able to successfully log the data in a simple file. I am trying to log the same data into a FIFO.
My aim to read the FIFO in real time and filter the data and send alarm to administrators accordingly.
I have configured the snmptrapd to log the data into a FIFO
using the command
snmptrapd -c conf -p logs/pid -Lf logs/current
where current is a FIFO in logs directory created using mknod command. I dont see any data coming through the FIFO.
One perspective my program cannot read the FIFO in real time. but i have tested by cat ing similar data into the FIFO. my program responded very well.
cat data > current
my programs structure is, it reads from the FIFO and sends the data into a filter script which continues with further action.
my question, is snmptrapd capable of logging stuff into the FIFO to be further read.