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 »

But tree table is not empty - so problem is show data in tree panel.
Here is 2 ways:
1 - You install firebug extension in FF and we are go to search error or see AJAX response
2 - You send to me mysql dump of [plugin_snmptt_tree] table in PM/email.

Now I work on adding syslog messages viewer in plugin and have time to fix You problem too.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

firebug installed!

Post by computer_guru »

I install firebug for Firefox, now what do I do?


Update: Here is some output from Firebug. Does that help?
Attachments
firebut_console_output.txt
(27.31 KiB) Downloaded 269 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Yes, help.
Do you use any modified sorting? Because the tree structure are incorrect.
Mysql dump would be rather desirable.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

update...

Post by computer_guru »

I upgraded to the latest version of the plugin and now the tree is working again. It does show up a little different then expected though.


Current tree looks like this:

Traps
+ IP: hostname1
+ IP: hostname2
+ IP: hostname3
+ Type: Cisco Router
++ Host: Hostname4

Is that how the tree should look? I expected this:

Traps
+ IP: hostname1
+ IP: hostname2
+ IP: hostname3
+ IP: hostname4
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Yes, this is right.
If in trap filed 'hostname' == devices 'hostname', so we know device name and device host template.
If 'hostname' != devices 'hostname' => no device info used and trap show in tree panel like IP:xxxxxx
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

marker number

Post by computer_guru »

Thanks again for all your help.

Quick question:
In the new version, a rule can mark a trap. What number should I put in that field? What is the benefit to using this?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Mark is integer less 20.
Used to graph count of marked traps. Read this thread one page ago.
Last edited by gthe on Thu Dec 18, 2008 4:21 am, edited 1 time in total.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Post by computer_guru »

If I leave the message field blank on the rule, will it email me the message from the trap? I don't want a custom message. I want to see what the trap generated?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

computer_guru wrote:If I leave the message field blank on the rule, will it email me the message from the trap? I don't want a custom message. I want to see what the trap generated?
"Email message" ? Yes, of course.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

hmmm....

Post by computer_guru »

It says I can't leave the "message" field blank when creating a rule. So how do I make the email message contain the trap message?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Re: hmmm....

Post by gthe »

computer_guru wrote:It says I can't leave the "message" field blank when creating a rule. So how do I make the email message contain the trap message?
rule["email_message"] != trap["format_message"]
Just fill it with "0000000" string. In next version this filed will be with

Code: Select all

allow blank=true
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

ok

Post by computer_guru »

So I can put in seven 0's or I can upgrade to the new version after you release it. Both solutions should email me the message that is generated from the snmp trap. Correct?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

yes
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

zeros.....

Post by computer_guru »

When i put in zeros like you suggested this is what I get:

-----------------------------------------------
Hostname : server_name
Date : 2008-12-20 11:32:12
EventName :
TrapOid : alertControllerInformation
Category :
Severity :

Message :
0000000000

I still don't get the trap message in my email. Any ideas?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Try this:
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests