Syslog monitor addon beta

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
nduda78
Cacti User
Posts: 111
Joined: Tue Mar 01, 2005 11:26 am

Post by nduda78 »

egarnel, can you email me, or message me you entire conf file on the working box? maybe between us we can fix it?
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

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
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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 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: 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 fixed this in my current work-in-progress version. I have also made some addition that we needed, and thought others might want.

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?
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

Hi,

Excellent man. Thats good work. I have been anxiously waiting for this.

Please when will you finally release this awsome product?

Thanks
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

Hi,
At the moment, I have many clients and i can not offer syslog plugin to

clients. Because I can not restrict users to view only specific hosts. So,

Would you like to work on restrict users to view only selected hosts under

syslog plugin.
harlequin
Posts: 13
Joined: Wed Nov 09, 2005 11:46 pm

Post by harlequin »

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...
farhan wrote:restrict users to view only selected hosts under syslog plugin.
I am working on this now... :)

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...
nuinco
Posts: 26
Joined: Mon Sep 26, 2005 3:35 pm

Post by nuinco »

Hi, first I love this add on.

I have 2 issues,

I figured both out.

thanks
Last edited by nuinco on Mon Dec 05, 2005 5:27 pm, edited 1 time in total.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

no news

Post by knobdy »

I'm looking to install this add-on, but this conversation dropped off quick - and of those updates been added to the plug-in release...is it ready, I mean...??
harlequin
Posts: 13
Joined: Wed Nov 09, 2005 11:46 pm

h.aloe syslog add-on ver 0.1.2 beta

Post by harlequin »

Here is ver 0.1.2 beta
  • 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
There are two versions:
- 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> :oops: I am just now seeing that the zip file I posted for 1.2b had an old version in it as well? :oops: 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...
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

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
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by 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
harlequin
Posts: 13
Joined: Wed Nov 09, 2005 11:46 pm

Post by harlequin »

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
Sorry about that - I have addressed this issue - please re-download v0.1.2b and let me know if that fixes the errors.

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...
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

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
harlequin
Posts: 13
Joined: Wed Nov 09, 2005 11:46 pm

Post by harlequin »

farhan wrote:Yes thats resolved the problem.
Glad that's fixed it. Thanks for verifying.
File does not exist: /usr/local/cacti/include/menuarrow.gif, referer: http://10.221.114.17/plugins/haloe/haloe.php
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.

Harlequin
mrmee, mrmee, mrmee...
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

Just saying a big thanks. Great addon. Thanks! :)

-J
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests