Syslog monitor addon beta
Moderators: Developers, Moderators
nice plugin
I have a small (?) question:
I am using syslog 0.4 plugin.
I use syslog-ng to concentrate my logs and i save evetything in mysql.
Database name is "syslog". New rows are saved in "syslog_incoming".
Here are 3 rows:
Am i saving the entries in wrong table?
Did i forgot to configure something?
I have a small (?) question:
I am using syslog 0.4 plugin.
I use syslog-ng to concentrate my logs and i save evetything in mysql.
Database name is "syslog". New rows are saved in "syslog_incoming".
Here are 3 rows:
Howerver, when i select syslog tab i get no entries or hostsmysql> select * from syslog_incoming;
+----------+----------+------------+----------+---------------+---------------------------------------------------------------------------+-----+--------+
| facility | priority | date | time | host | message | seq | status |
+----------+----------+------------+----------+---------------+---------------------------------------------------------------------------+-----+--------+
| syslog | notice | 2006-05-20 | 03:42:32 | skilla | syslog-ng[7512]: syslog-ng starting up; version='1.X.X' | 1 | 2 |
| user | notice | 2006-05-20 | 03:52:16 | XX.XX.XXX.XXX10.19.146.161 | system,info,account user test logged in from XX.XX.XXX.XXX via winbox | 2 | 0 |
| user | notice | 2006-05-20 | 03:52:21 | XX.XX.XXX.XXX | system,info,account user test logged out from XX.XX.XXX.XXX via winbox | 3 | 0 |
+----------+----------+------------+----------+---------------+---------------------------------------------------------------------------+-----+--------+
3 rows in set (0.00 sec)
Am i saving the entries in wrong table?
Did i forgot to configure something?
cacti rulez!
-
- Posts: 1
- Joined: Tue May 23, 2006 8:10 am
setup help haloe
I am missing something-----
I copied the files from the Zip as instructed, but now I get "page cannot be displayed" I get nothin, nada, zip. The whole Cacti installation is broken now, Did I missunderstand that, is there some installation guide for this add-on I really want to use it but not at the cost of my entire cacti install....
I copied the files from the Zip as instructed, but now I get "page cannot be displayed" I get nothin, nada, zip. The whole Cacti installation is broken now, Did I missunderstand that, is there some installation guide for this add-on I really want to use it but not at the cost of my entire cacti install....
Re: setup help haloe
I'm guessing you've installed the plugin arch and have used plugins before? Did you unzip it in the plugins directory and then edit cacti's config.php for the plugin? Also did you add the sql tables to your mysql database? I've been meaning to write a how-to, but work is killing mefitzgerald wrote:I am missing something-----
I copied the files from the Zip as instructed, but now I get "page cannot be displayed" I get nothin, nada, zip. The whole Cacti installation is broken now, Did I missunderstand that, is there some installation guide for this add-on I really want to use it but not at the cost of my entire cacti install....
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
-
- Posts: 6
- Joined: Fri May 19, 2006 12:31 pm
- Location: Dayton Ohio
I am running Cacti 8h on a Suse linux kernel 2.6 box with PHP 4.4.0, Apache2 and MySql 4.1.13.
It has been running extremely well, with several other plugins.
Today, I installed syslog-ng and the haloe plugin.
I have the syslog data coming into mysql and at the polling intervals, cacti is moving it from syslog_incoming to syslog.
The problem I have is with viewing the plugin. I edited my php.ini and changed my memory limit to 32 MB.
I get the following:
Warning: main(plugins/haloe/config.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 31
Warning: main(): Failed opening 'plugins/haloe/config.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 31
Warning: main(plugins/haloe/functions.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 32
Warning: main(): Failed opening 'plugins/haloe/functions.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 32
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 67
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Warning: main(plugins/haloe/html/haloe_timespan_settings.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Warning: main(): Failed opening 'plugins/haloe/html/haloe_timespan_settings.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 121
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 128
I checked all permissions on the files and made sure they were RW by the apache user. I attempted to edit the files and use full paths to the plugins, but that didnt help.
The paths that are listed in the error are correct, and the files DO exist in those locations.
I appreciate any feedback or points on what to change next.
It has been running extremely well, with several other plugins.
Today, I installed syslog-ng and the haloe plugin.
I have the syslog data coming into mysql and at the polling intervals, cacti is moving it from syslog_incoming to syslog.
The problem I have is with viewing the plugin. I edited my php.ini and changed my memory limit to 32 MB.
I get the following:
Warning: main(plugins/haloe/config.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 31
Warning: main(): Failed opening 'plugins/haloe/config.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 31
Warning: main(plugins/haloe/functions.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 32
Warning: main(): Failed opening 'plugins/haloe/functions.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 32
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 67
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Warning: main(plugins/haloe/html/haloe_timespan_settings.php): failed to open stream: No such file or directory in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Warning: main(): Failed opening 'plugins/haloe/html/haloe_timespan_settings.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 91
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 121
Notice: Undefined variable: haloe_config in /srv/www/htdocs/cacti/plugins/haloe/haloe.php on line 128
I checked all permissions on the files and made sure they were RW by the apache user. I attempted to edit the files and use full paths to the plugins, but that didnt help.
The paths that are listed in the error are correct, and the files DO exist in those locations.
I appreciate any feedback or points on what to change next.
-
- Posts: 6
- Joined: Fri May 19, 2006 12:31 pm
- Location: Dayton Ohio
syslog W/ MSSQL
Has anyone set this up with MS SQL server instead of MYSQL?
"So Long, and thanks for all the fish!" DA
Data is getting into syslog_incoming and syslog fine. The syslog tab even shows the host, the facilities and so forth in the drop down boxes. However, there are no messages...
...and some of the data shows up in the dynamic widgets:
... but as you can see, there's no message data.
the message data is in the syslog tables though, I can see it.
I'm officially flummoxed.
Code: Select all
$ mysql -u cacti -p syslog
mysql> select * from syslog_incoming;
| facility | priority | date | time | host | message | seq | status |
[...]
5 rows in set (0.00 sec)
mysql> select * from syslog;
| facility | priority | date | time | host | message | seq |
[...]
52 rows in set (0.00 sec)
... but as you can see, there's no message data.
the message data is in the syslog tables though, I can see it.
I'm officially flummoxed.
Last edited by ehall on Mon May 04, 2009 10:29 am, edited 1 time in total.
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
The default view of Last Day doesn't show anything either. None of them do.
I think the problem is the timestamps
I guess I need to investigate the syslog-ng syntax
edit: that fixed it
working woot
I think the problem is the timestamps
Code: Select all
mysql> mysql> select * from syslog;
+----------+----------+------------+----------+---------+----------------------------------------------------------+---------+
| facility | priority | date | time | host | message | seq |
+----------+----------+------------+----------+---------+----------------------------------------------------------+---------+
| daemon | info | 0000-00-00 | 00:00:00 | bulldog | named[6678]: unexpected RCODE (SERVFAIL) resolving [...] | 1799499 |
| cron | info | 0000-00-00 | 00:00:00 | bulldog | /usr/sbin/cron[16649]: (root) CMD (php /var/lib/cac[...] | 1799498 |
edit: that fixed it
working woot
Last edited by ehall on Mon May 04, 2009 10:30 am, edited 1 time in total.
Re: syslog W/ MSSQL
Cacti only works with MySQL, and this plugin is made around that. I'm sure you can get it to work with MS SQL, but it would be a ton of work.pconrad wrote:Has anyone set this up with MS SQL server instead of MYSQL?
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
Who is online
Users browsing this forum: No registered users and 1 guest