Ad Widget

Collapse

command-line import/export facility dynamic items, triggers and graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #91
    I googled your error message

    Typical answer
    Code:
    You need to install the perl module Net::SNMP from CPAN...Here is the command:
    
    #perl -MCPAN -e 'install Net::SNMP'
    ==========================
    Or you can install it from EPEL:
    
    # rpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    # yum install perl-Net-SNMP
    I hope it helps.
    Sincerely yours,
    Aleksey

    Comment

    • mattrk
      Junior Member
      • Mar 2014
      • 18

      #92
      Thanks for the great script. I was successfully able to generate an XML template using the script. However i cannot import that XML using the web gui because the file is too large. I've changed my php.ini file to allow larger uploads but it still doesn't work. Is there a setting in Zabbix i need to change to allow larger imports? Is there another way to import large templates?

      Thanks

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #93
        Do you restart Web server, after change php settings?
        I now use LLD for cisco router and switch monitoring.
        See https://www.zabbix.com/forum/showthread.php?t=28870

        Comment

        • mattrk
          Junior Member
          • Mar 2014
          • 18

          #94
          Originally posted by dima_dm
          Do you restart Web server, after change php settings?
          I now use LLD for cisco router and switch monitoring.
          See https://www.zabbix.com/forum/showthread.php?t=28870
          I did restart. I've restarted the services and the server. To no avail. That's why i was wondering if there is a setting in the configs of Zabbix that also controlled upload size.

          I'll checkout the other thread when i get time. (Also have to translate to English)

          Comment

          • mattrk
            Junior Member
            • Mar 2014
            • 18

            #95
            Quick update: I was able to fix this. See this thread for details. https://www.zabbix.com/forum/showthread.php?p=147132

            Comment

            • smoc
              Junior Member
              • Mar 2012
              • 3

              #96
              Hello,
              I used last script, templates generate ok but when i tried to add template to the host i got this error:

              Cannot find host interface on "host" for item key "CiscoEnvMonState".

              Zabbix v2.2.2

              Edit: I fixed this.
              Last edited by smoc; 22-03-2014, 12:17.

              Comment

              • Carlo
                Junior Member
                • Nov 2009
                • 13

                #97
                Originally posted by smoc
                Hello,
                I used last script, templates generate ok but when i tried to add template to the host i got this error:

                Cannot find host interface on "host" for item key "CiscoEnvMonState".

                Zabbix v2.2.2

                Edit: I fixed this.
                Hi. How do you fix it? I get this error too. Zabbix 2.2.3

                Edit: It is necessary put IP address to SNMP field in host data too.
                Attached Files
                Last edited by Carlo; 15-05-2014, 10:39. Reason: Resolve problem

                Comment

                • kanchan
                  Junior Member
                  • Dec 2013
                  • 23

                  #98
                  Error while importing

                  Dear All,

                  I recently upgraded my zabbix from 1.8.3 to 2.0.9. We were looking for simplest way to add our network devices in zabbix and while searching I read this thread. I found it very interesting...

                  I imported template which I created by using cisco_xml.pl for Cisco Router 1841 and it worked smoothly ..

                  But when I tried to import templates for Cisco 2800 / 3925 router and Cisco 3750 / 6509 switches, I am getting enclosed error. .

                  It will be great if someone help me to fix this...

                  Thanks.
                  Last edited by kanchan; 09-03-2016, 07:17.

                  Comment

                  • kanchan
                    Junior Member
                    • Dec 2013
                    • 23

                    #99
                    Issue solved

                    I missed number 5 while creating template through script so "delay" was getting 0 value...after correcting it getting proper update interval for all devices...

                    Thanks

                    ./$0 cisco 172.16.0.1 75 5 public 5 lab-cisco


                    It will be great if anyone tell me what is use of value 75 and 5 ....

                    Comment

                    • dmitry042
                      Junior Member
                      • Nov 2014
                      • 6

                      #100
                      Have this error when try to import host

                      Undefined offset: 1 [conf.import.php:190 → CFrontendApiWrapper->import() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CConfiguration->import() → CConfigurationImport->import() → CXmlImport18:arseMain() → get_trigger_by_description() in /usr/share/zabbix/include/triggers.inc.php:287]

                      Any idea?

                      Comment

                      • ofaruque
                        Junior Member
                        • May 2015
                        • 1

                        #101
                        Thanks

                        excellent script! Saved a lot of my time.. Thanks!!

                        Comment

                        • wizardvrn
                          Junior Member
                          • Jan 2016
                          • 7

                          #102
                          Hi 2 all!

                          Pls help - zabbix COMPLETELY not importing any templates...

                          Only messages - "ERROR: Import failed "
                          and "Incorrect file upload."

                          I'v tryed any different templates, including Dmitry's - no matter.
                          In apache24 & zabbix logs - no messages.

                          Any ideas?

                          (freebsd 10.2 & fresh install of zabbix 2.4.7)

                          Comment

                          • BttD
                            Junior Member
                            • Mar 2016
                            • 1

                            #103
                            Import problem

                            Hi!

                            I try to import the generated template, but i have problem.

                            This is the error message:


                            Created: Application "Availability" on "Template_Switch".
                            Created: Item "Description" on "Template_Switch".
                            Item will not be refreshed. Please enter a correct update interval.

                            Comment

                            • Carlo
                              Junior Member
                              • Nov 2009
                              • 13

                              #104
                              Hi.
                              For Zabbix 3.0 not working. Anyone trying?

                              Comment

                              • Buyantugs
                                Junior Member
                                • Sep 2017
                                • 1

                                #105
                                Send alert to zabbix when received snmp trap from remote host

                                Hi There,

                                I received snmp trap in /tmp/zabbix_traps.tmp file but no idea how to configure a triiger and send alert to Zabbix when i receive new trap from remote hosts.

                                My zabbix version is 3.2. I don't found good article from Google. Please help me.

                                16:20:00 2017/09/21 ZBXTRAP 192.168.xxx.xxx
                                PDU INFO:
                                notificationtype TRAP
                                version 0
                                receivedfrom UDP: [192.168.xxx.xxx]:53323->[172.30.xx.xx]
                                errorstatus 0
                                messageid 0
                                community public
                                transactionid 10941
                                errorindex 0
                                requestid 0
                                VARBINDS:
                                DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (145574472) 16 days, 20:22:24.72
                                SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.1729.104.0.4
                                SNMPv2-SMI::enterprises.1729.100.1.10.12.0 type=4 value=STRING: "eServicesManager_DR:server is DOWN"
                                SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 192.168.xxx.xxx
                                SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public"
                                SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: SNMPv2-SMI::enterprises.1729.104
                                16:20:00 2017/09/21 ZBXTRAP 192.168.xxx.xxx

                                Comment

                                Working...