Ok so I posted in the topic by zaterio that I also wasn't able to see anything on the web page, or that anything was going into mysql. I finally narrowed it down to the feed_db.pl file that wasn't working right, although it was running fine without errors. Finally, in an attempt to debug it (or at least see some output) i typed:
perl feed_db.pl
low and behold it started pulling the packets from the syslog and putting them into the database. Also instantly data showed up on the webpage. Why is this? Do I have to leave this running now? I'm confused as to why the .pl script doesn't just work on its own without being run through what I guess is an interpreter?
Any insight is greatly appreciated.
Lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As a follow up. The only way I can keep iptablelogs working (specifically the feed_db.pl) is to open up a screen session, type 'perl feed_db.pl' and then detach from the screen session. It I've tried typing perl feed_db.pl --background (as what I gathered from the init.d script) but it won't work that way. I've also tried perl 'feed_db.pl &'. It just doesn't work in the background for some reason, any suggestions?
Lee
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok so I posted in the topic by zaterio that I also wasn't able to see anything on the web page, or that anything was going into mysql. I finally narrowed it down to the feed_db.pl file that wasn't working right, although it was running fine without errors. Finally, in an attempt to debug it (or at least see some output) i typed:
perl feed_db.pl
low and behold it started pulling the packets from the syslog and putting them into the database. Also instantly data showed up on the webpage. Why is this? Do I have to leave this running now? I'm confused as to why the .pl script doesn't just work on its own without being run through what I guess is an interpreter?
Any insight is greatly appreciated.
Lee
As a follow up. The only way I can keep iptablelogs working (specifically the feed_db.pl) is to open up a screen session, type 'perl feed_db.pl' and then detach from the screen session. It I've tried typing perl feed_db.pl --background (as what I gathered from the init.d script) but it won't work that way. I've also tried perl 'feed_db.pl &'. It just doesn't work in the background for some reason, any suggestions?
Lee
Lee,
Did you ever figure out why you could not run the perl script in the background?
Thanks,
Josh