Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
#!/bin/bash
if [ -e /tmp/mysql.pipe ]; then
while [ -e /tmp/mysql.pipe ]
do
mysql -u haloe --password=haloepassword haloe < /tmp/mysql.pipe
done
else
mkfifo /tmp/mysql.pipe
fi
and restarted syslog-ng.
but still no dice. port 514/udp is allowed into the firewall - checked that
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
#!/bin/bash
if [ -e /tmp/mysql.pipe ]; then
while [ -e /tmp/mysql.pipe ]
do
mysql -u haloe --password=haloepassword haloe < /tmp/mysql.pipe
done
else
mkfifo /tmp/mysql.pipe
fi
and restarted syslog-ng.
but still no dice. port 514/udp is allowed into the firewall - checked that
I have syslog-ng w/mysql working on another server with php-syslog frontend
(of course the db keys are different) and it works fine. Both servers are CentOS 3.6 with the same levels of php, mysql, etc.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
This means your syslog-ng does not send anything in to fifo ...
Are you 100% positive that are receiiving anything from a network
to your syslog-ng server? Can you run tcpdump on UDP 514 port to make sure that syslog gets messages from your network equipment?
Igor
egarnel wrote:Nope, it just hangs there.
I have syslog-ng w/mysql working on another server with php-syslog frontend
(of course the db keys are different) and it works fine. Both servers are CentOS 3.6 with the same levels of php, mysql, etc.
kingaru wrote:This means your syslog-ng does not send anything in to fifo ...
Are you 100% positive that are receiiving anything from a network
to your syslog-ng server? Can you run tcpdump on UDP 514 port to make sure that syslog gets messages from your network equipment?
Igor
egarnel wrote:Nope, it just hangs there.
I have syslog-ng w/mysql working on another server with php-syslog frontend
(of course the db keys are different) and it works fine. Both servers are CentOS 3.6 with the same levels of php, mysql, etc.
I made sure that the mysql user & password that is specified in the mkfifo script does indeed has access to the haloe db.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
how do you get the data into haloe? I've installed kiwi but see no config...etc Ive also installed syslog-ng, but ther is no documentation on how to get it imported into haloe.
I did a search on google, and have been trying like hell to get it working...nothign on google helps. I have syslog-ng working....as in, i can send messages to the syslog-ng daemon and the test messages appear in the syslog log file.....no matter what configs i do in the .conf file , nothing gets into the DB...the pipe file never works.
Hi and thanks for the great addon. This was exactly something I had been looking for. The plugin works perfectly . I had one request for future functinonality. It would be nice if this addon had the ability to alert and send a email or page if certain Priorities or a regx is meet.
same here. I have syslog-ng with a pipe into mysql running on another box just fine, but have no luck getting it to work on the Cacti server. I have verified that syslog traffic does indeed get to the server, syslog-ng is running and listening for syslog messages, etc. Both systems are the same OS, mysql ver & syslog-ng ver.
when I cat /tmp/mysql.pipe on the working box, it works fine, and I can see entries scroll by, but not on the second.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey