Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apfrida
    Junior Member
    • Oct 2011
    • 1

    #211
    snmp_builder blank area

    Hi,
    Just tried to install snmp_builder in zabbix 1.8.4 but does't load anything in the tree field.
    I think I had done every steps from zabbix wiki and several suggestion in the form but still no luck. My test.php works when querying snmptranslate.
    Anybody could help?
    Thanks.

    Comment

    • ksy
      Junior Member
      • Jan 2012
      • 6

      #212
      cannot save itemlist

      Hi everyone!
      I've tried SNMP Builder with Zabbix 1.8.5 and I've experienced a problem - I cannot save item list to a template. I've tried to modify code in snmp_builder.php according to some previous posts, but still I have a problem. When I look for errors in firefox error console I see a message: itemlist.data.toJSON is not a function. Can anybody help me?
      Thanx in advance.

      I've solved the problem. The reasonwas that my javascript didn't support toJSON method. So, I had to replace it with JSON.stringify. I have replaced the string json = itemlist.data.toJSON(); in snmp_builder.js with json = JSON.stringify(itemlist.data, null); and everything is working!

      Maybe this post can be useful for you.
      Last edited by ksy; 05-01-2012, 16:54. Reason: solved!

      Comment

      • zabbixflic
        Member
        • Jan 2012
        • 39

        #213
        snmp_builder blank area on 1.8.10

        Hi everybody,

        same issue as apfrida.
        Zabbix 1.8.10 but does't load anything in the tree field.

        Does it work on 1.8.10 again ?

        I have done all steps and suggestion and test.php works fine.

        Anybody could help or tell me which Zabbix version to install in order
        to have this wonderful (best of!) tool working ?

        I didn't know "how" to catch log or debug info about what snmp_builder has done or where it stucks

        I need it a lot

        Thank you very much in advance.

        Federico

        Comment

        • ksy
          Junior Member
          • Jan 2012
          • 6

          #214
          Zabbix 1.8.10 does't load anything in the tree field.

          Originally posted by zabbixflic
          Hi everybody,

          same issue as apfrida.
          Zabbix 1.8.10 but does't load anything in the tree field.

          Federico
          Do you see any error messages in the bottom of the page? For example "Cannot find module...." or anything else

          Comment

          • zabbixflic
            Member
            • Jan 2012
            • 39

            #215
            Originally posted by ksy
            Do you see any error messages in the bottom of the page? For example "Cannot find module...." or anything else
            Hi ksy,

            not, unfortunately not.

            I solved mib dependency and now I see nothing

            Thnx

            Comment

            • ksy
              Junior Member
              • Jan 2012
              • 6

              #216
              Originally posted by zabbixflic
              Hi ksy,

              not, unfortunately not.

              I solved mib dependency and now I see nothing

              Thnx
              Hi, zabbixfli. You can check for errors using firefox or chrome error console. There you can see errors concerning javascript or php. Check it while choosing MIB and provide me output plz. I've solved a similar problem that way.

              Comment

              • zabbixflic
                Member
                • Jan 2012
                • 39

                #217
                Originally posted by ksy
                Hi, zabbixfli. You can check for errors using firefox or chrome error console. There you can see errors concerning javascript or php. Check it while choosing MIB and provide me output plz. I've solved a similar problem that way.
                Ok ksy, let's start.

                Of course, first of all, thank you !

                Now :

                Uncaught ReferenceError: DynTable is not defined -> error from Chrome console

                points to row 23 :
                var oidview = new DynTable('oidview',{'headers' : ['Oid/Name','Type','Value']});


                It's better I tell you I am using custom snmpbuilder-zabbix1.8.8.tar.gz
                by kostil, at last.

                Second, in order to go on with no feedback (I did not know someone is looking forum ) I was trying to import mib using net-snmp
                by this guide
                http://www.net-snmp.org/wiki/index.p...d_loading_MIBS

                and I found that at this step

                snmptranslate -m +CISCO-RHINO-MIB -IR -On ciscoLS1010ChassisFanLed

                I get this error :


                No log handling enabled - turning on stderr logging
                Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/netsnmp/IP-MIB.my)
                Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/netsnmp/EVENT-MIB.my)
                MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
                Cannot find module (DISMAN-SCHEDULE-MIB): At line 10 in (none)
                Cannot find module (IPV6-ICMP-MIB): At line 10 in (none)
                Cannot find module (IPV6-TCP-MIB): At line 10 in (none)
                Cannot find module (IPV6-UDP-MIB): At line 10 in (none)
                Cannot find module (SNMPv2-TM): At line 10 in (none)
                .1.3.6.1.4.1.9.5.11.1.1.12

                Basically I know Zabbix depends on net-snmp for snmp operation.

                Hoping can help you !

                Thnx

                Comment

                • ksy
                  Junior Member
                  • Jan 2012
                  • 6

                  #218
                  Originally posted by zabbixflic
                  Ok ksy, let's start.

                  Of course, first of all, thank you !

                  Now :

                  Uncaught ReferenceError: DynTable is not defined -> error from Chrome console

                  points to row 23 :
                  var oidview = new DynTable('oidview',{'headers' : ['Oid/Name','Type','Value']});

                  Thnx
                  Have you made any changes in snmp_builder.php? I mean replace
                  page['scripts'] = array('../snmp_builder/Tree.js','../snmp_builder/snmp_builder.js','../snmp_builder/DynTable.js','scriptaculous.js?load=effects,dragdr op');
                  with
                  $page['scripts'] = array('Tree.js','snmp_builder.js','DynTable.js','e ffects.js','dragdrop.js');

                  and to add to jsLoader.php:
                  $availableJScripts = array(
                  'Tree.js' => '../snmp_builder/',
                  'snmp_builder.js' => '../snmp_builder/',
                  'DynTable.js' => '../snmp_builder/',
                  'common.js' => '',
                  'menu.js' => '',
                  'prototype.js' => '',

                  It's described here: http://www.zabbix.com/wiki/howto/mon...p/snmp_builder

                  Comment

                  • zabbixflic
                    Member
                    • Jan 2012
                    • 39

                    #219
                    Originally posted by ksy
                    Have you made any changes in snmp_builder.php? I mean replace
                    page['scripts'] = array('../snmp_builder/Tree.js','../snmp_builder/snmp_builder.js','../snmp_builder/DynTable.js','scriptaculous.js?load=effects,dragdr op');
                    with
                    $page['scripts'] = array('Tree.js','snmp_builder.js','DynTable.js','e ffects.js','dragdrop.js');

                    and to add to jsLoader.php:
                    $availableJScripts = array(
                    'Tree.js' => '../snmp_builder/',
                    'snmp_builder.js' => '../snmp_builder/',
                    'DynTable.js' => '../snmp_builder/',
                    'common.js' => '',
                    'menu.js' => '',
                    'prototype.js' => '',

                    It's described here: http://www.zabbix.com/wiki/howto/mon...p/snmp_builder
                    Great !!!

                    So the second one was missing ! you are much clever than me

                    I saw too many times those files and I loose something...

                    Now, it seems to work but :

                    1) is it normal almost a minute to get query result once I clicked on OID ? (maybe I don't know)

                    2) can I speed up process in some way ? (eg leaving only mibs I need (Cisco MIBs are a lot
                    and I need only Call Managers related)

                    3) Is there a common sense to save an entire list of record (I mean table resulted OID) ?


                    I am trying to make some tests and I will fine tune based on your feed, pls don't leave me again

                    Federico

                    Comment

                    • ksy
                      Junior Member
                      • Jan 2012
                      • 6

                      #220
                      Originally posted by zabbixflic
                      Great !!!

                      So the second one was missing ! you are much clever than me

                      I saw too many times those files and I loose something...

                      Now, it seems to work but :

                      1) is it normal almost a minute to get query result once I clicked on OID ? (maybe I don't know)

                      2) can I speed up process in some way ? (eg leaving only mibs I need (Cisco MIBs are a lot
                      and I need only Call Managers related)

                      3) Is there a common sense to save an entire list of record (I mean table resulted OID) ?


                      I am trying to make some tests and I will fine tune based on your feed, pls don't leave me again

                      Federico
                      I'm very pleased to know that everything worked for you. I'll try to give some suggestions on your questions:
                      1) I also have to wait some time to get a result;
                      2) I don't think that you can speed up this process as it takes some time to send queries to a device and get a reply then.
                      3) Personally I don't save entire list, I just choose the items I want (interface traffic and performance as usual).

                      I have tested SNMP Builder and I'm very satisfied with it. Now I'm trying to find a solution to use OIDs with interface descriptions or aliases to see them on graphs. Maybe you can provide any ideas.

                      Ksenia.

                      Comment

                      • zabbixflic
                        Member
                        • Jan 2012
                        • 39

                        #221
                        Originally posted by ksy
                        I'm very pleased to know that everything worked for you. I'll try to give some suggestions on your questions:
                        1) I also have to wait some time to get a result;
                        2) I don't think that you can speed up this process as it takes some time to send queries to a device and get a reply then.
                        3) Personally I don't save entire list, I just choose the items I want (interface traffic and performance as usual).

                        I have tested SNMP Builder and I'm very satisfied with it. Now I'm trying to find a solution to use OIDs with interface descriptions or aliases to see them on graphs. Maybe you can provide any ideas.

                        Ksenia.
                        Hi Ksenia, I am very satisfied too, I think it's a powerful tool, and it would be better if it was integrated into Zabbix itself (I know there is a new feature request going in that direction).

                        About your question, I will try to check it out.

                        Now I am looking to integrate also a script that retrieves data by Cucm Cisco Call Manager (what kind of equipment do you monitor using Zabbix ?) using
                        AXL language.

                        Many thanks again.

                        Stay tuned and have a good day

                        Federico

                        Comment

                        • ksy
                          Junior Member
                          • Jan 2012
                          • 6

                          #222
                          Originally posted by zabbixflic
                          Hi Ksenia, I am very satisfied too, I think it's a powerful tool, and it would be better if it was integrated into Zabbix itself (I know there is a new feature request going in that direction).

                          About your question, I will try to check it out.

                          Now I am looking to integrate also a script that retrieves data by Cucm Cisco Call Manager (what kind of equipment do you monitor using Zabbix ?) using
                          AXL language.

                          Many thanks again.

                          Stay tuned and have a good day

                          Federico
                          I've just started adding devices to Zabbix. We monitor Cisco and ZTE routers and switches as well as Linux and Windows servers but we don't have Cisco Call Manager. And btw what kind of information would you like to retrieve?

                          I never dealed with AXl, but I have some ideas about a script in perl which would automatically add graphs. I think I'll try to do it in the near future.

                          Comment

                          • zabbixflic
                            Member
                            • Jan 2012
                            • 39

                            #223
                            Originally posted by ksy
                            I've just started adding devices to Zabbix. We monitor Cisco and ZTE routers and switches as well as Linux and Windows servers but we don't have Cisco Call Manager. And btw what kind of information would you like to retrieve?

                            I never dealed with AXl, but I have some ideas about a script in perl which would automatically add graphs. I think I'll try to do it in the near future.
                            Concurrent active calls for example or media-resource activity and so on

                            Have you any ideas about insert many items in an application without make it one by one ? I am working with zabbix db but I don't think it's a good idea..

                            Thnx

                            Comment

                            • zabbixflic
                              Member
                              • Jan 2012
                              • 39

                              #224
                              Hi ksy,

                              just a question : which is the "best" method to handle snmp traps arriving from different devices ?

                              I read this one :

                              http://www.zabbix.com/wiki/howto/mon...p_trap_handler

                              after I see

                              http://www.zabbix.com/wiki/howto/mon...nmptraphandler

                              but I read bad comments so I was going down to bottom but now I am a little confused..

                              Coming back to previous argument I found this post :



                              it could be useful to query Cucm but I must understand how to solve
                              soap dependency completely

                              Thnx !

                              Comment

                              • da_oli
                                Member
                                • Oct 2010
                                • 34

                                #225
                                Hi all,

                                i tried the snmp builder on zabbix 1.8.8 on debian 6

                                i applied all the patches described in wiki
                                at the first time, it was possible to read out something from the device, but i wasn't able to add it as a item.

                                i added some new mibs, like snmpv2 and tried it again, but now there is no result and the window with oid/name remains empty

                                i also waited for about 5 minutes, but there is still nothing to see.

                                does anybody have an idea?

                                greets

                                oliver

                                Comment

                                Working...