Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 22, 2017 2:29 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 738 posts ]  Go to page Previous  1 ... 46, 47, 48, 49, 50  Next
Author Message
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Mon May 05, 2014 6:42 am 
Offline

Joined: Mon May 05, 2014 6:33 am
Posts: 2
My syslogs have been blank after upgrading CactiEZ install from .8.7 c to .8.7 g. I checked the plugin_camm_syslog tables in the cacti database and they are empty. Syslog plugin does not work either. Should I have to change anything after upgrading?


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Thu Jun 19, 2014 1:10 pm 
Offline
Cacti User
User avatar

Joined: Tue May 24, 2005 6:23 pm
Posts: 110
Hi Thanks for the super plugin.

I've almost got it working only everything ends up in either the "Syslogs" tab or in the "Unknown Traps" tab.

How do we get the traps in the "SNMP Traps" tab?


Thanks in advance,

Marcel


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Fri Jun 20, 2014 1:27 am 
Offline

Joined: Fri Jan 31, 2014 8:26 am
Posts: 43
mmartens wrote:
How do we get the traps in the "SNMP Traps" tab?

Use "snmpttconvertmib" from snmptt to convert your MIB. Change your snmptt.ini at Section [TrapFiles] and point to the converted MIB.

http://snmptt.sourceforge.net/docs/snmptt.shtml

_________________
Cacti Version - 0.8.8h - Poller Type - SPINE 0.8.8h
MySQL - 5.0.54 - PHP - 5.1.6 -RRDTool - 1.2.23 - SNMP - 5.1.2
Plugins - Banner 0.32, Camm 1.6.7, Dashboard 1.2, Fix64bit 0.4, Monitor 1.3, Passwd 0.1, Settings 0.71, Tools 0.3, Realtime 0.5, Rrdclean 1.1, Spikekill 1.3, Syslog 1.22, Thold 0.6


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Fri Jun 20, 2014 1:48 am 
Offline
Cacti User
User avatar

Joined: Tue May 24, 2005 6:23 pm
Posts: 110
Hi Thanks for your quick reply.
When i try to convert the mib I get the following output:

    ***** Processing MIB file *****

    snmptranslate version: NET-SNMP version: 5.5
    severity: Normal

    File to load is: /root/sub10e1000.mib
    File to APPEND TO: /etc/snmp/snmptt.conf

    MIBS environment var: /root/sub10e1000.mib
    mib name: SUB10-MIB


    Processing MIB: SUB10-MIB


    Done

    Total translations: 0
    Successful translations: 0
    Failed translations: 0

    The MIB file did not contain any TRAP-TYPE or NOTIFICATION-TYPE definitions,
    so no translations occured. Try another MIB file.

I've attached the mib file.
Can you give me any advice how to convert this?

Thanks in advance


Attachments:
File comment: MIB file
sub10e1000.txt [58.9 KiB]
Downloaded 76 times
Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Fri Jun 20, 2014 2:28 am 
Offline

Joined: Fri Jan 31, 2014 8:26 am
Posts: 43
mmartens wrote:
The MIB file did not contain any TRAP-TYPE or NOTIFICATION-TYPE definitions,
so no translations occured. Try another MIB file.

Do you have another MIB file with trap or notification-types?

_________________
Cacti Version - 0.8.8h - Poller Type - SPINE 0.8.8h
MySQL - 5.0.54 - PHP - 5.1.6 -RRDTool - 1.2.23 - SNMP - 5.1.2
Plugins - Banner 0.32, Camm 1.6.7, Dashboard 1.2, Fix64bit 0.4, Monitor 1.3, Passwd 0.1, Settings 0.71, Tools 0.3, Realtime 0.5, Rrdclean 1.1, Spikekill 1.3, Syslog 1.22, Thold 0.6


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Fri Jun 20, 2014 3:06 am 
Offline
Cacti User
User avatar

Joined: Tue May 24, 2005 6:23 pm
Posts: 110
Hi,

I've tried some from Cisco and they give a positive feedback:
    [root@MIT-MO-01 snmptt_1.4]# ./snmpttconvertmib --in=/usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my --out=/etc/snmp/snmptt.conf


    ***** Processing MIB file *****

    snmptranslate version: NET-SNMP version: 5.5
    severity: Normal

    File to load is: /usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my
    File to APPEND TO: /etc/snmp/snmptt.conf

    MIBS environment var: /usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my
    mib name: CISCO-SYSLOG-MIB


    Processing MIB: CISCO-SYSLOG-MIB
    #
    skipping a TRAP-TYPE / NOTIFICATION-TYPE line - probably an import line.
    #
    Line: 498
    TRAP-TYPE: clogMessageGenerated
    Variables: clogHistFacility clogHistSeverity clogHistMsgName clogHistMsgText clogHistTimestamp
    Looking up via snmptranslate: CISCO-SYSLOG-MIB::clogMessageGenerated
    Cannot find module (SNMPv2-TC-v1): At line 11 in /usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my
    Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my)
    Did not find 'TimeStamp' in module #-1 (/usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my)
    Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my)
    Did not find 'RowStatus' in module #-1 (/usr/share/snmp/mibs/CISCO-SYSLOG-MIB-V1SMI.my)
    OID: .1.3.6.1.4.1.9.9.41.2.0.1


    Done

    Total translations: 1
    Successful translations: 1
    Failed translations: 0

Is there any way of rescanning the unknown traps?

Thanks in advance


Attachments:
Unknown traps.png
Unknown traps.png [ 178.28 KiB | Viewed 5388 times ]
Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Tue Aug 19, 2014 3:02 pm 
Offline

Joined: Tue Aug 19, 2014 2:43 pm
Posts: 1
Hello guys

I am with the following problem when I click on CAM tab the following message appears:

CSRF check failed. Your session may have expired form, or you may not have cookies enabled.

Try again
Debug:

As can be seen in the attached image Error.jpeg

When I close the error message that aparace Loading startup variables, but does not exit this screen.

I use Cacti in version 0.8.8a and the CAM plugin in version 1.6.75.

Please could someone help me :(


Attachments:
Error.jpg
Error.jpg [ 17.46 KiB | Viewed 5308 times ]
Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Tue Sep 23, 2014 12:30 pm 
Offline

Joined: Tue Sep 23, 2014 12:27 pm
Posts: 1
I also am having an issue with just a blank page on the CAMM Tab. Database tables exist, plug in is installed, not seeing any errors in the httpd logs or CACTI Logs.

Did anyone get a resolution on this? This is the only missing part of my CACTI system is SNMP Trap handling.

Thanks for any suggestions.


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Tue Oct 21, 2014 1:12 am 
Offline

Joined: Tue Oct 21, 2014 1:03 am
Posts: 1
camp wrote:
Hello guys

I am with the following problem when I click on CAM tab the following message appears:

CSRF check failed. Your session may have expired form, or you may not have cookies enabled.

Try again
Debug:

As can be seen in the attached image Error.jpeg

When I close the error message that aparace Loading startup variables, but does not exit this screen.

I use Cacti in version 0.8.8a and the CAM plugin in version 1.6.75.

Please could someone help me :(


Hi, looks like U must turn off CSRF check.
In cacti/site/include/csrf/csrf_magic.php put $GLOBALS['csrf']['defer'] = true;


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Wed Dec 03, 2014 8:34 am 
Offline
Cacti User
User avatar

Joined: Tue May 20, 2008 4:09 am
Posts: 266
Location: Italy, Rome
noobsiabot wrote:
Hi, looks like U must turn off CSRF check.
In cacti/site/include/csrf/csrf_magic.php put $GLOBALS['csrf']['defer'] = true;


TOP....your solution did the trick!!!
I had the same problem only with 0.8.8c (with 0.8.8a all is ok) and with your tricks I solved!

Thank you

_________________
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Thu Jan 22, 2015 6:05 am 
Offline

Joined: Thu Jan 22, 2015 5:54 am
Posts: 2
Hello,

I'm running cacti 0.8.7.e on rhel5 and I have to move it to a new rhel6 server. Thing is I didn't install it myself and it's absolutely not documented...

Basically I have installed everything the way it was on the old server, configured snmptt to store received traps in a mysql db. So far it works okayish.

My concerns are about the camm plugin. I can see the expected traps under the "SNMP Traps" tab as well as the already existing rules in the "Rules" tab. The problem is that I can't update a rule, once I clic on save it just doesn't work and resets to the previous values...

It's weird because I can clone a rule and then save, the clone is stored...

Any help would be more than welcomed...

Thanks


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Wed Feb 04, 2015 6:38 am 
Offline

Joined: Thu Jan 22, 2015 5:54 am
Posts: 2
Well apparently there have been some changes in the DB structure, now the problem is solved.

What still bugs me is that :
- even if my user is set as an admin and I can manage rules, I don't have the possibility to duplicate a rule (button not present)
- I can't put multiple mail addresses in the email field of a rule. Neither "," nor ";" are allowed...

Any idea ?


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Thu Apr 02, 2015 11:06 pm 
Offline

Joined: Thu Apr 02, 2015 10:58 pm
Posts: 2
I need help for installation. I am trying to use camm with snmptt only. After installation I didn't see any unknown traps or any traps at all. In /var/log/messages I found snmttrapd messages about receiving trap, but snmptt
cacti snmptt-sys[3561]: Total traps received=0,Total traps translated=0,Total traps ignored=0,Total unknown traps=0

in cacti log in debug these messages
04/03/2015 06:52:04 AM - camm: Poller[0] S4. We have next count of dubled hosts = [0]
04/03/2015 06:52:04 AM - SYSTEM camm General STATS: AllTime:0.0046 PurgeTime:0.0005 RuleTime:0.0026 TreeTime:0.0016
04/03/2015 06:57:14 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/plugins/camm/poller_camm.php]
04/03/2015 06:57:14 AM - camm: Poller[0] S0. Found enabled DEBUG mode. Output will be verbose
04/03/2015 06:57:14 AM - camm: Poller[0] S0. About to enter camm poller processing
04/03/2015 06:57:14 AM - camm: Poller[0] S1. Found 0 camm rules to process
04/03/2015 06:57:14 AM - camm: Poller[0] S1.1 Use SNMPTT component
04/03/2015 06:57:14 AM - camm: Poller[0] S1.2 No enabled rules found
04/03/2015 06:57:14 AM - camm: Poller[0] S2. Checking to determine if it's time to run AutoPurge process.
04/03/2015 06:57:14 AM - camm: Poller[0] S2.1 The next AutoPurge process run time has been determined to be at '2015-04-03 8:42:11'. Last run time was '2015-04-03 6:42:11'
04/03/2015 06:57:14 AM - camm: Poller[0] S3. Checking to determine if it's time to run AutoCreate Tree Menu.
04/03/2015 06:57:14 AM - camm: Poller[0] php [poller_camm.php] The last time the snmptt Tree was recreated at '2015-04-03 6:47:17'.
04/03/2015 06:57:14 AM - camm: Poller[0] S3.1 The next snmptt Tree to DB run time has been determined to be NOW
04/03/2015 06:57:14 AM - camm: Poller[0] php [camm_poller_recreate_tree] The last time the snmptt Tree was recreated at '2015-04-03 6:47:17'.
04/03/2015 06:57:14 AM - camm: Poller[0] S. CAMM [snmptt] Tree was recreated for [0.007] sec with rezult=[1]
04/03/2015 06:57:14 AM - camm: Poller[0] php [camm_poller_recreate_tree] The last time the snmptt Tree was manually recreated at '2015-04-03 6:57:14'.
04/03/2015 06:57:14 AM - camm: Poller[0] S4. We have next count of dubled hosts = [0]
04/03/2015 06:57:14 AM - SYSTEM camm General STATS: AllTime:0.0124 PurgeTime:0.0004 RuleTime:0.0022 TreeTime:0.009

in web interface this messages appear
Notice: Undefined offset: 1 in /usr/share/cacti/plugins/camm/camm_db.php on line 463
{"success":true,"stats":[{"type":"Table plugin_camm_snmptt detailed info","name":"Rows","value":"0"},{"type":"Table plugin_camm_snmptt detailed info","name":"Data Length","value":"0 bytes"},{"type":"Table plugin_camm_snmptt detailed info","name":"Index Length","value":"2 KB"},{"type":"Table plugin_camm_snmptt detailed info","name":"Auto increment","value":"1"},{"type":"Table plugin_camm_snmptt detailed info","name":"Update time","value":"2015-04-03 06:41:40 (5m 39s ago)"},{"type":"Table plugin_camm_snmptt detailed info","name":"Check time","value":"2015-04-03 06:41:40"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Rows","value":"0"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Data Length","value":"0 bytes"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Index Length","value":"2 KB"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Auto increment","value":"1"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Update time","value":"2015-04-03 06:41:40 (5m 39s ago)"},{"type":"Table plugin_camm_snmptt_unk detailed info","name":"Check time","value":"2015-04-03 06:41:40"},{"type":"Table plugin_camm_tree2 detailed info","name":"Rows","value":"0"},{"type":"Table plugin_camm_tree2 detailed info","name":"Data Length","value":"0 bytes"},{"type":"Table plugin_camm_tree2 detailed info","name":"Index Length","value":"2 KB"},{"type":"Table plugin_camm_tree2 detailed info","name":"Auto increment","value":"100"},{"type":"Table plugin_camm_tree2 detailed info","name":"Update time","value":"2015-04-03 06:47:17 (2s ago)"},{"type":"Table plugin_camm_tree2 detailed info","name":"Check time","value":"2015-04-03 06:47:17"},{"type":"1. Stats from SMPTT stat table (since last snmptt service restart) and [from last stat period]","name":"Last stat date","value":null},{"type":"1. Stats from SMPTT stat table (since last snmptt service restart) and [from last stat period]","name":"Total traps received","value":"0 [0]"},{"type":"1. Stats from SMPTT stat table (since last snmptt service restart) and [from last stat period]","name":"Total traps translated","value":"0 [0]"},{"type":"1. Stats from...


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Tue Apr 07, 2015 10:22 pm 
Offline

Joined: Thu Apr 02, 2015 10:58 pm
Posts: 2
Now I have fixed this installation issue. I used two many options in net-snmp (snmptrap) compilation. When I did according instruction at wiki net snmp it is start working. Now it is left to solve description of snmp traps, bit it is other story.


Top
 Profile  
 
 Post subject: Re: CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
PostPosted: Thu Apr 23, 2015 3:03 am 
Offline
Cacti User
User avatar

Joined: Tue May 20, 2008 4:09 am
Posts: 266
Location: Italy, Rome
Hi gthe,
is it possible also to add a field "description" into global search?

Regards
Alessio

_________________
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 738 posts ]  Go to page Previous  1 ... 46, 47, 48, 49, 50  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group