|
|
| Author |
Message |
ebjers
Joined: 09 Jul 2007 Posts: 3
|
Posted: Mon Jul 09, 2007 8:58 pm Post subject: Syslog plugin help needed |
|
|
OS: Fedora 7
CACTI V 0.8.6j
SYSLOG Plugin 0.4
I have installed the syslog plugin and have the syslog tab on my cacti page. I also have syslog-ng installed.
I am having trouble finding god instructions on how to setup the DB for the syslog plugin and getting syslog-ng to put info in to the DB (once I create it)
the documentation I got with the plugin refers to a file haloe.sql (does not exist, but I do have syslog.sql)
I ran the command mysql -u user -p < syslog.sql but it gives me an error saying there is no DB selected.
any help is appreciated, either post instructions here, or links would be fine
thanks,
eb |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Mon Jul 09, 2007 9:32 pm Post subject: Re: Syslog plugin help needed |
|
|
| ebjers wrote: | OS: Fedora 7
CACTI V 0.8.6j
SYSLOG Plugin 0.4
I have installed the syslog plugin and have the syslog tab on my cacti page. I also have syslog-ng installed.
I am having trouble finding god instructions on how to setup the DB for the syslog plugin and getting syslog-ng to put info in to the DB (once I create it)
the documentation I got with the plugin refers to a file haloe.sql (does not exist, but I do have syslog.sql)
I ran the command mysql -u user -p < syslog.sql but it gives me an error saying there is no DB selected.
any help is appreciated, either post instructions here, or links would be fine
thanks,
eb |
Your MYSQL statement is incorrect:
mysql -u <username> -p <databasename> < <file to import>
so it should look like this when you're done:
mysql -u cactiuser -p cactidb < syslog.sql
It will then prompt you for your database password. Make sure you substitute your actual values in the command. |
|
| Back to top |
|
 |
ebjers
Joined: 09 Jul 2007 Posts: 3
|
Posted: Mon Jul 09, 2007 9:46 pm Post subject: |
|
|
OK That took care of the database, and I now have the syslog tables in my cacti db.
I think I can get the rest with the documents I have.
eb  |
|
| Back to top |
|
 |
|