SNMPTT/SYSLOG viewer Plugin for Cacti. v 1.4.3 (2009/02/06)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

In left corner of IE has a icon "Done". Dbclick on it and show error.
One more tip - try use Firefox.

gumis - Ok, I found error. In attach new version of file. Unrar and replace it /snmptt/js/cacti.plugin.snmptt-min.js
I also update first post with fixed version.
Attachments
cacti.plugin.snmptt-min.rar
(43.57 KiB) Downloaded 228 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Re: More Tips and a Tutorial

Post by gthe »

computer_guru wrote:Changing the Unknown MySQL table in Snmptt.ini to the regular traps table solved the problem with unknown traps. I believe that alerting on unknown traps is working now.
Hm, that is one of variants.
computer_guru wrote:A college of mine did mention that it would be nice for the TrapOid column from MySQL to be included in the alert emails. Maybe a more appropriate solution would be for the snmptt options screen in cacti to include some email options. Like what columns to include in an email.
The most simple way - change poller_snmptt.php in line 289-294 and add needed strings.
computer_guru wrote:FYI, I have also created a CactiEZ / SNMPTT tutorial:
http://paulscomputerservice.net/article ... .php?ID=50
Thanks. I add this url to first post.
gumis
Posts: 10
Joined: Sun Nov 09, 2008 9:39 am

Post by gumis »

gthe thanks for your reply and patch.
I'll give it a go tonight and let you know if it fixed the problem.

the error from IE:

Line: 692
Char: 6086
Error: 'console' is undefined
Code: 0
URL: http://xxxxxxxxx/cacti/plugins/snmptt/s ... extjs_main


where 'xxxxxxxxx' is my host.
lints
Cacti User
Posts: 107
Joined: Thu Nov 08, 2007 2:00 pm
Location: Ottawa, Canada

Post by lints »

I'm having the same issue in regards to creating rules.

EDIT: I applied the patch and it creates the rule just fine. Thanks!
lints
Cacti User
Posts: 107
Joined: Thu Nov 08, 2007 2:00 pm
Location: Ottawa, Canada

Post by lints »

OK, now I can create the rules, but I can't delete the new rule right after I create it.

I have to reload the whole page (hit F5), then I can delete it. Attached is the error I get. Changing back and forth between the tabs within the plugin doesn't help.
Attachments
nodelete.JPG
nodelete.JPG (64.01 KiB) Viewed 5960 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Just after you create new rule and click save, in grid new rule exist without rule_id and it is a problem.
You need update/reload grid and after that delete rule.

P.S. not F5, but just reload grid.

It is a limitation of extjs.



Sorry for my English.
Last edited by gthe on Mon Nov 10, 2008 9:43 am, edited 1 time in total.
lints
Cacti User
Posts: 107
Joined: Thu Nov 08, 2007 2:00 pm
Location: Ottawa, Canada

Post by lints »

OK, thanks.
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

alphabetize

Post by computer_guru »

Gthe, Does your SNMPTT tree show up in alphabetical order? I have to change one of the Order By statements in the php to make it work right for me.


P.S. Thanks for the work on this plugin. You are awesome.
gumis
Posts: 10
Joined: Sun Nov 09, 2008 9:39 am

Post by gumis »

Yep. I can confirm that the patch solved my problem with saving new rules. Thank you very much for that.

I'm experiencing different problem now. I have installed snmpttt addon couple of days ago without importing graph templates. I then applied a patch from gthe which solved my savig rules problem, but I still couldn't see anything in my Stats tab ("Cant't find snmptt stats graphs."). I've decided to import all graphs from from snmptt 1.1.0 and... still nothing.

Could anyone please tell me what I'm doing wrong ? Or what I'm missing...
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

gumis
1. Import all snmptt/addons/graph/cacti_graph_template_local_-_snmptt_*.xml
2. Copy snmptt/addons/graph/ss_snmpttpoller.php to cacti/scripts/ss_snmpttpoller.php
3. Go to => Console => New Graph. Select local Cacti host, in Graph Templates dropdown list select all snmptt* graph and Create it.
4. Wait 2-3 poller cycle.
5. Go to Graph Management, search snmptt and check that graph are exists.
6. Go to Cacti snmptt plugin stat tab and check graphs.

computer_guru
For you version of sorting tree (i.e. without first order by device_type_name) tree don't group by device_host_type
gumis
Posts: 10
Joined: Sun Nov 09, 2008 9:39 am

Post by gumis »

gthe thanks a lot.
Now I can see all results on the graphs on both tabs - graphs and snmptt (in status). I have one more question, because I can't see anything on the right side of all graphs under snmptt->status graph. Normalny I should see some statistics there .. am I right? At the moment it's blank. Do I have to enable anything to get that or should it be enerated automatically?

gthe do you still develop this plugin? Would you consider any sugestions from users?

You're doing excellent job.

Best regards,
gumis
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

gumis wrote:... I can't see anything on the right side of all graphs under snmptt->status graph.
Even if You press "Update" menu button ?

Can You show me sql query like this:

Code: Select all

mysql> SELECT * FROM settings where name like '%snmptt%';
+---------------------------+------------------------------+
| name                      | value                        |
+---------------------------+------------------------------+
| snmptt_num_rows           | 50                           |
| snmptt_last_run_time      | 0                            |
| snmptt_collection_timing  | 120                          |
| snmptt_delay_purge_day    | 7                            |
| stats_snmptt_tree         | TreeTime:0.8626              |
| stats_snmptt_time         | Time:0.0139                  |
| stats_snmptt_ruledel      | 0                            |
| stats_snmptt              | del_traps:0 del_unk_traps:0  |
| snmptt_max_row_all        | 0                            |
| snmptt_max_row_per_device | 0                            |
| snmptt_test_row_count     | 1000                         |
| snmptt_version            | 1.1.0rc                      |
| dimpb_use_snmptt_plugin   | on                           |
| snmptt_tables             | 3                            |
| snmptt_tree_width         | 220                          |
| snmptt_tree_update_time   | 300                          |
+---------------------------+------------------------------+
16 rows in set (0.00 sec)
gumis wrote: gthe do you still develop this plugin? Would you consider any sugestions from users?
Yes, but not all in my forces and currently I work on another cacti plugin.
gumis
Posts: 10
Joined: Sun Nov 09, 2008 9:39 am

Post by gumis »

gthe it doesn't show any STATS even after I press Update button. That's the output from MySQL query on my host:

+---------------------------+------------------------------+
| name | value |
+---------------------------+------------------------------+
| snmptt_version | 1.1.0rc |
| snmptt_num_rows | 50 |
| snmptt_last_run_time | 1226428507 |
| snmptt_collection_timing | 120 |
| snmptt_delay_purge_day | 7 |
| snmptt_max_row_all | 0 |
| snmptt_max_row_per_device | 0 |
| snmptt_tables | 3 |
| snmptt_tree_width | 220 |
| snmptt_tree_update_time | 300 |
| stats_snmptt_tree | TreeTime:0.0000 |
| stats_snmptt_time | Time:0.0080 |
| stats_snmptt_ruledel | 1 |
| snmptt_test_row_count | 1000 |
| stats_snmptt | del_traps:0 del_unk_traps:0 |
| snmptt_last_treedb_time | 1226430007 |
| snmptt_tree_update | 300 |
+---------------------------+------------------------------+



regarding sugestions/fixes:
- the screen is divided into two panes in Stats and New Traps tab, but for some reason it doesn't save the possition of them
- new future: in Unknown Traps tab all rows are limited to tree lines (if I'm right). Would it be possible to add something like in New Traps window - magnifier glass icon to each row to view the whole (all details) message (trap)? Because at the moment there is no way to view the whole message.
- new future: in Rules tab, new rule Mode. At the moment you can either delete the trap or e-mail notification to someone. How about if you only want to monitor something ? Would it be possible / how easy / to add third rule mode - 'Monitor only' or something like that, and possibly add it
to 'SNMPTT Poller Rows Statistics' graph
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

gumis, thank you for all your suggestions!
gumis wrote:... I can't see anything on the right side of all graphs under snmptt->status graph.
gumis wrote: regarding sugestions/fixes:
- the screen is divided into two panes in Stats and New Traps tab, but for some reason it doesn't save the possition of them
What browser ? Fac*** IE ? Try FF or Google Chrome (best speed)
gumis wrote: - new future: in Unknown Traps tab all rows are limited to tree lines (if I'm right). Would it be possible to add something like in New Traps window - magnifier glass icon to each row to view the whole (all details) message (trap)? Because at the moment there is no way to view the whole message.
Ok. will be in next version.
gumis wrote: - new future: in Rules tab, new rule Mode. At the moment you can either delete the trap or e-mail notification to someone. How about if you only want to monitor something ? Would it be possible / how easy / to add third rule mode - 'Monitor only' or something like that, and possibly add it
to 'SNMPTT Poller Rows Statistics' graph
I can add new mode and change trap's `alert` field to [-1 ... -1000] value. But you will create new graphs and change ss_snmpttpoller.php.
gumis
Posts: 10
Joined: Sun Nov 09, 2008 9:39 am

Post by gumis »

gthe wrote:gumis, thank you for all your suggestions!
n/p. I just though that it would be great future to your plugin, because (I think) lots of people would like to Monitor something, i.e. see how often the problem or event occurs
What browser ? Fac*** IE ? Try FF or Google Chrome (best speed)
I've tried Chrome as well, still no luck - empty pane on the right.

Ok. will be in next version.
Perfect, thank you. Although I've noticed that 'formatline' field in plugin_snmptt_unknown table has only 255 chars, so that might be the problem (limitation - sounds better).The same field in plugin_snmptt table is Text.
I can add new mode and change trap's `alert` field to [-1 ... -1000] value. But you will create new graphs and change ss_snmpttpoller.php.
I'm not quite sure what exactly do you mean with that `alert` field. I'll have a quick look as soon as I can on the *.php files to see if I could help with that. Can you let me know which files would have to be modified?

Thanks for all your help
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests