Syslog monitor addon beta
Moderators: Developers, Moderators
Hi,
Syslog plugin is a awsome . It has been running fine at my end .
I have 2 questions.
1) can we restrict cacti users to view only specific host under syslogs tab.
For example I have many clients and every client has its own devices. So I want to restrict cacti users to view only their devices under syslogs tab in cacti.
2) I am getting some errors in error.log in apache as follow.But plugin is working fine
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 7, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 18, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 103, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 104, referer: http://10.221.114.17/plugins/thold/graph_thold.php
Syslog plugin is a awsome . It has been running fine at my end .
I have 2 questions.
1) can we restrict cacti users to view only specific host under syslogs tab.
For example I have many clients and every client has its own devices. So I want to restrict cacti users to view only their devices under syslogs tab in cacti.
2) I am getting some errors in error.log in apache as follow.But plugin is working fine
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 7, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 18, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 103, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 104, referer: http://10.221.114.17/plugins/thold/graph_thold.php
I have been thinking about it, and it should be fairly simple to do. As long as the devices are all in seperated into different trees in the graph view. I will see what I can do.farhan wrote:Hi,
Syslog plugin is a awsome . It has been running fine at my end .
I have 2 questions.
1) can we restrict cacti users to view only specific host under syslogs tab.
For example I have many clients and every client has its own devices. So I want to restrict cacti users to view only their devices under syslogs tab in cacti.
I have fixed this in my current work-in-progress version. I have also made some addition that we needed, and thought others might want.farhan wrote: 2) I am getting some errors in error.log in apache as follow.But plugin is working fine
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 7, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Notice: Undefined variable: where_hostfilter in /usr/local/cacti/plugins/haloe/html/haloe_filter_selector.php on line 18, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 103, referer: http://10.221.114.17/plugins/thold/graph_thold.php
[client 192.168.25.12] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti/plugins/haloe/haloe.php:4) in /usr/local/cacti/include/config.php on line 104, referer: http://10.221.114.17/plugins/thold/graph_thold.php
I have added the ability to specify different rules for removing syslog messages that you don't want to see and to email you when certain messages are seen. The rules allow you to remove messages based on either the host or the contents of the messages (begins with this, contains this, etc...). All the backend work is complete, so its all operational, I just need to finish the GUI stuff for the removal / alerting. Currently the emails are html based, but I will see about adding an option to select text only emails.
I will get this out once it done, anyone else have any ideas on options to add while I am at it?
Hi folks,
Sorry for the late response (been on vacation).
I will be releasing v 0.1.2b shortly. Updates include:
- added host_rows option to config
- fixed output-to-file bit
- reworked interface a bit for better screen real-estate on smaller resolutions
- added elevel_min option - if checked, priority is >= selected
- added seperate meta-refresh setting
- fixed 'Notice: Undefined...' etc. errors
As soon as I have the plugin branch done, I will put them up...
Thanks for all the feedback - please keep it coming.
(BTW, for those with database problems, I'll be happy to help where I can but that is a bit outside my scope - if you haven't gotten it working, I can give some pointers to some useful docs, but h.aloe does somewhat assume a working syslog db...)
Harlequin
Sorry for the late response (been on vacation).
I will be releasing v 0.1.2b shortly. Updates include:
- added host_rows option to config
- fixed output-to-file bit
- reworked interface a bit for better screen real-estate on smaller resolutions
- added elevel_min option - if checked, priority is >= selected
- added seperate meta-refresh setting
- fixed 'Notice: Undefined...' etc. errors
As soon as I have the plugin branch done, I will put them up...
I am working on this now...farhan wrote:restrict users to view only selected hosts under syslog plugin.
Thanks for all the feedback - please keep it coming.
(BTW, for those with database problems, I'll be happy to help where I can but that is a bit outside my scope - if you haven't gotten it working, I can give some pointers to some useful docs, but h.aloe does somewhat assume a working syslog db...)
Harlequin
mrmee, mrmee, mrmee...
h.aloe syslog add-on ver 0.1.2 beta
Here is ver 0.1.2 beta
- a standard 'add-on' version (minor modifications of some Cacti files req'd)
- a plugin version for use with the plugin architecture - Thanks cigamit!
If you are upgrading from ver 0.1.1b, simply backup your current haloe config file, edit the settings in the new one to match, then overwrite the current files with the new ones.
Standard disclaimer follows:
This is a beta version. Comments, criticisms, additions, etc. are welcome, but don't blame me if it breaks something (unlikely) or doesn't work (more likely)
Let me know how it goes for you. Thanks,
Harlequin
<modified 2005-12-03> fixed glitch in plugin version
<modified 2005-12-20> I am just now seeing that the zip file I posted for 1.2b had an old version in it as well? I'm a schmuck Replaced with one containing only what it should
- Changes 2005-12-02:
- added host_rows option to config
- fixed output-to-file bit
- reworked interface for better screen real-estate management
- added elevel_min option - if checked, priority is >= selected
- added seperate meta-refresh setting
- fixed 'Notice: Undefined...',etc. errors
- a standard 'add-on' version (minor modifications of some Cacti files req'd)
- a plugin version for use with the plugin architecture - Thanks cigamit!
If you are upgrading from ver 0.1.1b, simply backup your current haloe config file, edit the settings in the new one to match, then overwrite the current files with the new ones.
Standard disclaimer follows:
This is a beta version. Comments, criticisms, additions, etc. are welcome, but don't blame me if it breaks something (unlikely) or doesn't work (more likely)
Let me know how it goes for you. Thanks,
Harlequin
<modified 2005-12-03> fixed glitch in plugin version
<modified 2005-12-20> I am just now seeing that the zip file I posted for 1.2b had an old version in it as well? I'm a schmuck Replaced with one containing only what it should
- Attachments
-
- h.aloe_v0.1.2b_plugin.zip
- [note: I haven't tested the plugin version (been waiting for 0.9.0) but it should work]
- (20.14 KiB) Downloaded 973 times
-
- h.aloe_v0.1.2b.zip
- (22.08 KiB) Downloaded 841 times
Last edited by harlequin on Tue Dec 20, 2005 4:57 pm, edited 4 times in total.
mrmee, mrmee, mrmee...
Hi,
Thats great. But I could not find calender,button_clear,button_go images.
This is my apache error_log
Notice: Undefined variable: config in /usr/local/cacti/plugins/haloe/html/haloe_timespan_selector.php on line 90, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/calendar.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_clear.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_go.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
One more thing at the moment are you working how can we restrict users to view only specific hosts under syslog plugin?
Great Effort
Thanks,
Farhan
Thats great. But I could not find calender,button_clear,button_go images.
This is my apache error_log
Notice: Undefined variable: config in /usr/local/cacti/plugins/haloe/html/haloe_timespan_selector.php on line 90, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/calendar.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_clear.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_go.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
One more thing at the moment are you working how can we restrict users to view only specific hosts under syslog plugin?
Great Effort
Thanks,
Farhan
Hi,
I got that images under cacti/images directory. But these images should
be under halo plugin directory as well. Otherwise many users could
face this situation.
I have been anxiously waiting user restricting module for syslog plugin.
When will you be able to release this funcationality?
Thanks,
Farhan
I got that images under cacti/images directory. But these images should
be under halo plugin directory as well. Otherwise many users could
face this situation.
I have been anxiously waiting user restricting module for syslog plugin.
When will you be able to release this funcationality?
Thanks,
Farhan
Sorry about that - I have addressed this issue - please re-download v0.1.2b and let me know if that fixes the errors.farhan wrote:Thats great. But I could not find calender,button_clear,button_go images.Notice: Undefined variable: config in /usr/local/cacti/plugins/haloe/html/haloe_timespan_selector.php on line 90, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/calendar.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_clear.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
File does not exist: /usr/local/cacti/plugins/haloe/images/button_go.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
As for user-restriction, I am working on it when I can, but not sure when it will be ready...
Thanks,
Harlequin
mrmee, mrmee, mrmee...
hi harlequin,
Yes thats resolved the problem. But now i am getting another error in apache error_log. But it smees that plugin is working properly. I can see all gif's.
[Sun Dec 04 11:01:27 2005] [error] [client 192.168.25.12] File does not exist: /usr/local/cacti/include/menuarrow.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
And i could not find menuarrow.gif in any directory. But it is not creating any problem.
Thanks that you are working on user authentication.
Farhan
Yes thats resolved the problem. But now i am getting another error in apache error_log. But it smees that plugin is working properly. I can see all gif's.
[Sun Dec 04 11:01:27 2005] [error] [client 192.168.25.12] File does not exist: /usr/local/cacti/include/menuarrow.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
And i could not find menuarrow.gif in any directory. But it is not creating any problem.
Thanks that you are working on user authentication.
Farhan
Glad that's fixed it. Thanks for verifying.farhan wrote:Yes thats resolved the problem.
This error is part of Cacti / calendar itself - you should get the same error in your logs if you open the calendar pop-up from the graph page. Menuarrow.gif is called from Cacti's main.css file - looks like this is getting worked on in the development branches, should be fixed in the next revision of Cacti.File does not exist: /usr/local/cacti/include/menuarrow.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
Harlequin
mrmee, mrmee, mrmee...
Who is online
Users browsing this forum: No registered users and 1 guest