emm...
got another question....
after all the installation steps.....i got the help page.....
i added the entries in syslog-ng.conf, i copyed the syslog2mysql.sh to
/root/ and added the entry in crontab @reboot root
/root/syslog2mysql.sh >> /var/log/mysql.log 2>&1, and restarted the
services....
then i looked in /var/log/mysql.log
/bin/sh: /root/syslog2mysql.sh: Permission denied
#!/bin/bash
# If you add this script to cron, be sure to change $config to the
full path name
# ie: /www/php-syslog-ng/html/config/config.php
config="/usr/local/apache2/htdocs/html/config/config.php"
user=`cat $config | grep "'DBADMIN'" | awk -F"'" '{print $4}' `
pw=`cat $config | grep "'DBADMINPW'" | awk -F"'" '{print $4}' `
db=`cat $config | grep "'DBNAME'" | awk -F"'" '{print $4}' `
if [ ! -e /var/log/mysql.pipe ]
then
mkfifo /var/log/mysql.pipe
fi
while [ -e /var/log/mysql.pipe ]
do
mysql -u $user --password=$pw $db < /var/log/mysql.pipe >/dev/null
done
im sure thats the right path for the config.php....
do i need to change something in config.php.....?
i feel like i'm almost there....:)
2007/2/7, Clayton Dukes <[EMAIL PROTECTED]>:
> No problem, glad to hear you got it working :-)
>
>
> On 2/7/07, javier rojas <[EMAIL PROTECTED]> wrote:
> > solved it
> >
> > i set the max_execution_time = 10000
> > restarted the server.....
> >
> > sorry to keep buggin
> >
> >
> > 2007/2/7, javier rojas <[EMAIL PROTECTED]>:
> > > hello...
> > >
> > > i started all over again with the current.tgz...
> > >
> > > i enountered tons of problems with the rpm's of mysql, but its running
> > > ok know....
> > >
> > > however im getting this error on install2.php:
> > >
> > > Fatal error: Maximum execution time of 30 seconds exceeded in
> > > /usr/local/apache2/htdocs/html/install/install2.php on line 184
> > >
> > > more /usr/local/apache2/htdocs/html/install/install2.php
> > > for($i=0; $i<strlen($sql)-1; $i++) { (184)
> > >
> > > didn't see nothing so i re-run it again
> > >
> > > Fatal error: Maximum execution time of 30 seconds exceeded in
> > > /usr/local/apache2/htdocs/html/install/install2.php on line 197
> > >
> > > if(isset($buffer[1])) {
> > >
> > > ummm...different lines??
> > >
> > > what seems to be the problem????...please??...:)
> > >
> > > 2007/2/6, Clayton Dukes <[EMAIL PROTECTED]>:
> > > > Latest version is 2.9.2a (r13)
> > > > Please get it from http://php-syslog-ng.gdd.net/current.tgz
> > > >
> > > > Once you've extracted that to a new directory, just browse to
> > > > http://server/install
> > > > You shouldn't be running dbsetup.sql manually...
> > > > (you might try looking at the README file) :-)
> > > >
> > > >
> > > > On 2/6/07, javier rojas <[EMAIL PROTECTED]> wrote:
> > > > > im sorry to keep buggin, im still having problems, i decided to do a
> > > > > fresh start... i downloaded the version 2.9.1 r10 and when i run the
> > > > > dbsetup.sql i get this error:
> > > > >
> > > > > server:/usr/local/apache2/htdocs/html/install/sql # mysql -uroot -p <
> > > > > dbsetup.sql
> > > > > Enter password:
> > > > > ERROR 1046 (3D000) at line 1: No database selected
> > > > >
> > > > > on line 1 of the .sql is:
> > > > > CREATE TABLE logs (
> > > > >
> > > > > please.... can anyone please help me....
> > > > >
> > > > > 2007/2/5, Clayton Dukes <[EMAIL PROTECTED]>:
> > > > > > http://php-syslog-ng.gdd.net/current.tgz
> > > > > >
> > > > > >
> > > > > > On 2/5/07, javier rojas <[EMAIL PROTECTED]> wrote:
> > > > > > > im using version 2.5.1....
> > > > > > >
> > > > > > > sorry but i didn't see any links on that url to any downloads at
> > > > > > > all,
> > > > > > > im trying to make a test with the machine in which its
> > > > > > > installed...,
> > > > > > > im not gettings logs from any server, just trying ouy php-syslog
> > > > > > > on
> > > > > > > the same machine....
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2007/2/2, Clayton Dukes <[EMAIL PROTECTED]>:
> > > > > > > > What version are you installing?
> > > > > > > > Please use the one located at nms.gdd.net under the syslog
> > > > > > > > category.
> > > > > > > >
> > > > > > > >
> > > > > > > > On 2/2/07, javier rojas <[EMAIL PROTECTED]> wrote:
> > > > > > > > > emmm.....
> > > > > > > > >
> > > > > > > > > not sure.....guess not.... i don't really know what that is
> > > > > > > > >
> > > > > > > > > i can see the page....but if i make a cat /tmp/mysql.pipe i
> > > > > > > > > cant see
> > > > > > > > > anything.... i have set everything as says on
> > > > > > > > > http://gentoo-wiki.com/HOWTO_setup_PHP-Syslog-NG
> > > > > > > > >
> > > > > > > > > although im running suse.....
> > > > > > > > >
> > > > > > > > > any tips??
> > > > > > > > >
> > > > > > > > > 2007/2/2, Clayton Dukes <[EMAIL PROTECTED]>:
> > > > > > > > > > Did you use the install interface to install it?
> > > > > > > > > > http://localhost/install
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On 2/2/07, javier rojas <[EMAIL PROTECTED]> wrote:
> > > > > > > > > > > Hello,
> > > > > > > > > > >
> > > > > > > > > > > im having trouble when trying to get php syslog ng to
> > > > > > > > > > > wirk, on
> > > > > > > > > > > http://localhost/index.php i get
> > > > > > > > > > >
> > > > > > > > > > > device tab
> > > > > > > > > > > *warning: mysql_fetch_array(): supplied argument is not a
> > > > > > > > > > > valid MySQL
> > > > > > > > > > > result resource in /srv/www/htdocs/index.php on line 34
> > > > > > > > > > >
> > > > > > > > > > > date tabs
> > > > > > > > > > > *warning: mysql_fetch_array(): supplied argument is not a
> > > > > > > > > > > valid MySQL
> > > > > > > > > > > result resource in /srv/www/htdocs/index.php on line 52
> > > > > > > > > > > *warning: mysql_fetch_array(): supplied argument is not a
> > > > > > > > > > > valid MySQL
> > > > > > > > > > > result resource in /srv/www/htdocs/index.php on line 69
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > now i have looked inside de index.php and these lines
> > > > > > > > > > > refer to:
> > > > > > > > > > >
> > > > > > > > > > > 34 $aku = mysql_query("SELECT DISTINCT host from logs;");
> > > > > > > > > > > 52 while ($row = mysql_fetch_array($aku))
> > > > > > > > > > > while ($row = mysql_fetch_array($aku))
> > > > > > > > > > >
> > > > > > > > > > > now i know i can mysql -h localhost -u syslog -p
> > > > > > > > > > >
> > > > > > > > > > > and thats the user in db_fns.php....
> > > > > > > > > > >
> > > > > > > > > > > what am i doing wrong??, i havent touched the anything on
> > > > > > > > > > > php....
> > > > > > > > > > >
> > > > > > > > > > > can anyone help me?
> > > > > > > > > > > --
> > > > > > > > > > > Ciao, Javier
> > > > > > > > > > > linux counter #393724
> > > > > > > > > > > GPG Key Fingerprint =
> > > > > > > > > > > 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> > > > > > > > > > >
> > > > > > > > > > > -------------------------------------------------------------------------
> > > > > > > > > > > Using Tomcat but need to do more? Need to support web
> > > > > > > > > > > services, security?
> > > > > > > > > > > Get stuff done quickly with pre-integrated technology to
> > > > > > > > > > > make your job easier.
> > > > > > > > > > > Download IBM WebSphere Application Server v.1.0.1 based
> > > > > > > > > > > on Apache Geronimo
> > > > > > > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Php-syslog-ng-support mailing list
> > > > > > > > > > > [email protected]
> > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/php-syslog-ng-support
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > =============================
> > > > > > > > > > Clayton Dukes
> > > > > > > > > > NMS Consulting Engineer, Advanced Services
> > > > > > > > > > Cisco Systems, Inc.
> > > > > > > > > > Office: 919.392.6122
> > > > > > > > > > Fax: : 919.869.1580
> > > > > > > > > > Cell: 813.545.7373
> > > > > > > > > > Email: [EMAIL PROTECTED]
> > > > > > > > > > MSN: [EMAIL PROTECTED]
> > > > > > > > > > =============================
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Ciao, Javier
> > > > > > > > > linux counter #393724
> > > > > > > > > GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > =============================
> > > > > > > > Clayton Dukes
> > > > > > > > NMS Consulting Engineer, Advanced Services
> > > > > > > > Cisco Systems, Inc.
> > > > > > > > Office: 919.392.6122
> > > > > > > > Fax: : 919.869.1580
> > > > > > > > Cell: 813.545.7373
> > > > > > > > Email: [EMAIL PROTECTED]
> > > > > > > > MSN: [EMAIL PROTECTED]
> > > > > > > > =============================
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Ciao, Javier
> > > > > > > linux counter #393724
> > > > > > > GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > =============================
> > > > > > Clayton Dukes
> > > > > > NMS Consulting Engineer, Advanced Services
> > > > > > Cisco Systems, Inc.
> > > > > > Office: 919.392.6122
> > > > > > Fax: : 919.869.1580
> > > > > > Cell: 813.545.7373
> > > > > > Email: [EMAIL PROTECTED]
> > > > > > MSN: [EMAIL PROTECTED]
> > > > > > =============================
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Ciao, Javier
> > > > > linux counter #393724
> > > > > GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> > > > >
> > > > > -------------------------------------------------------------------------
> > > > > Using Tomcat but need to do more? Need to support web services,
> > > > > security?
> > > > > Get stuff done quickly with pre-integrated technology to make your
> > > > > job easier.
> > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > > > Geronimo
> > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > > _______________________________________________
> > > > > Php-syslog-ng-support mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/php-syslog-ng-support
> > > > >
> > > >
> > > >
> > > > --
> > > > =============================
> > > > Clayton Dukes
> > > > NMS Consulting Engineer, Advanced Services
> > > > Cisco Systems, Inc.
> > > > Office: 919.392.6122
> > > > Fax: : 919.869.1580
> > > > Cell: 813.545.7373
> > > > Email: [EMAIL PROTECTED]
> > > > MSN: [EMAIL PROTECTED]
> > > > =============================
> > > >
> > >
> > >
> > > --
> > > Ciao, Javier
> > > linux counter #393724
> > > GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> > >
> >
> >
> > --
> > Ciao, Javier
> > linux counter #393724
> > GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
> >
>
>
> --
> =============================
> Clayton Dukes
> NMS Consulting Engineer, Advanced Services
> Cisco Systems, Inc.
> Office: 919.392.6122
> Fax: : 919.869.1580
> Cell: 813.545.7373
> Email: [EMAIL PROTECTED]
> MSN: [EMAIL PROTECTED]
> =============================
>
--
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Php-syslog-ng-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/php-syslog-ng-support