I have uncomment out those "//TEST" statements and run syslogupd.php manually.pepj wrote:In this way the plugin will copy only one time the traps (the TEMPSyslogCatchAll.txt is a temporary backup) and also not lost a trap that would comes during the process. We can discuss later if you want to keep all the traps in a text file, but normally you don't need this if you have the data in the haloe SQL DB.DrivesMeCrazy wrote: Everytime when kiwi syslogd captured the syslog message and stored in SyslogCatchAll.txt, it gets renamed to TEMPSyslogCatchAll.txt.
SyslogCatchAll.txt will not exists anymore till ...
To check what happend when the data are copied to Haloe:
- remove in the function "syslogupd_poller" of "functions.php" in syslogupd the "//TEST " before the lines which have this.
- create a "SyslogCatchAll.txt" file with a test trap (or from KIWI click test trap)
- start "php syslogupd.php" manually from a command prompt
You should see the parameters from haloe passed to syslogupd, and the result.
Are the parameters OK?
PS: check also the parameters in the Haloe config.php
in my case I had changedCode: Select all
$haloedb_hostname = "localhost"; $haloedb_username = "..."; $haloedb_password = "..."; $haloe_config["haloeTable"] = "syslog";
Got this Fatal Error:
Code: Select all
Fatal error: Call to a member function SetFetchMode() on a non-object in E:\cacti\lib\database.php on line 124
Line 124 on database.php:
$cnn_id->SetFetchMode(ADODB_FETCH_ASSOC);
Code: Select all
(syslogpollerautomatically) actual path=E:\cactisql connect res=1,host=localhost,user=haloeuser,pass=mypasswd,default=haloe,type=mysql
I will try out your latest version once I resolved this. You have been a great help.