Ad Widget

Collapse

XML Generator for switches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skullone
    Member
    • Mar 2007
    • 46

    #16
    Originally posted by troffasky
    Fixed issue where ifType was 1 ("other"). Not adding ifType 1 as I'm yet to find a host where ifType 1 ever has any traffic.

    Tested with Cisco 877.

    Doesn't work with SNMPv1 agents.
    Nice addons for a nice scripts.
    I looked at it briefly, and it looks like a good script to make XML templates from any number of SNMP enabled devices or servers for hardware monitoring.
    First thought comes to mind, Dell OpenManage SNMP items, Sun Fire SNMP items, Power distribution units (monitor amperage, voltage, watts, temperature).

    I'll try to come up with some stuff later this week and update!

    Comment

    • elg
      Junior Member
      • Feb 2009
      • 2

      #17
      A very big thx, this templater works really fine for me. I am currently installing all switchs we have (22 but 5 differents brand) and make a unique snmp community. My zabbix server is growing everyday

      ++

      Comment

      • consultorpc
        Junior Member
        • Apr 2008
        • 16

        #18
        Thank you ! It works flawlessly.

        Comment

        • erikklaassen
          Junior Member
          • Sep 2007
          • 13

          #19
          Very great tool!

          Some triggers where not working because of the ">" expression. I replaced > with > and that worked fine.

          I also added ifAlias in my port, trigger, graph descriptions.

          Comment

          • troffasky
            Senior Member
            • Jul 2008
            • 565

            #20
            I was wondering what to do with ifAlias vs. ifDescr. I was thinking perhaps use ifDescr by default, but prefer ifAlias if it's there, as ifAlias is usually the user-created description for an interface eg "Fibre link to core switch" vs. "Gi0/1".

            Then again, maybe I should stop wasting time with this perl script and focus on this instead:

            Comment

            • consultorpc
              Junior Member
              • Apr 2008
              • 16

              #21
              Total Bandwidth Calculation for Cisco Switches

              Hello,

              I have been redirected from my Zabbix Cookbook forum thread to this thread. The original post I made is: http://www.zabbix.com/forum/showthre...3896#post43896

              Sorry, if I am doing duplicate posting. I have used the xml file and modified to use with the cisco switch. It is working perfect now. What I would like to do is calculate Total Bandwidth of each interface in daily, weekly and monthly basis.

              I hope I will get a solution from this thread.

              Thanks in advance,

              consultorpc

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 565

                #22
                All the script does is generate XML templates for Zabbix. It can't add functionality to Zabbix that isn't already there. Nelsonab's script presumably works by querying the backend DB, which is something that can't done through an XML template.

                Comment

                • asottomayor
                  Junior Member
                  • Oct 2009
                  • 4

                  #23
                  Modules needed to run script

                  Hi,
                  Could you tell me what modules do I need to install to run your script ?
                  I use fedora core 8, so can use yum to do it.
                  Thanks in advance,
                  Afonso

                  Comment

                  • asottomayor
                    Junior Member
                    • Oct 2009
                    • 4

                    #24
                    Modules needed to run script

                    Hi,
                    Could you tell me what modules do I need to install to run your script ?
                    I use fedora core 8, so can use yum to do it.
                    Thanks in advance,
                    Afonso

                    Comment

                    • troffasky
                      Senior Member
                      • Jul 2008
                      • 565

                      #25
                      These are the modules that the script uses:

                      Code:
                      use Time::localtime;
                      use Net::SNMP;
                      use Getopt::Long;
                      How you install those modules depends on what environment you're running the script in.

                      Comment

                      • asottomayor
                        Junior Member
                        • Oct 2009
                        • 4

                        #26
                        Configuring for script use

                        Ok, after installing CPAN managed to get modules.
                        But what should i put in "Delay factor for all items" ?
                        What does it means ? And what is the utilization Zabbix makes ?

                        I'm almost there, thanks for your help.
                        Afonso

                        Comment

                        • asottomayor
                          Junior Member
                          • Oct 2009
                          • 4

                          #27
                          Errors while importing xml

                          Hi,
                          Managed to get the xml file, it was needed "Y" not "y"....
                          But while importing to zabbix it says several errors like :

                          Added trigger 'Port 029 Vlan109 administrative status has changed' to host 'C355012G-02-A1'
                          Added trigger 'Port 029 Vlan109 status has changed' to host 'C355012G-02-A1'
                          Incorrect trigger expression. [ ... ... ]
                          Incorrect trigger expression. [ ... ... ]

                          And

                          Added trigger 'Port 011 GigabitEthernet0/11 administrative status has changed' to host 'C355012G-02-A1'
                          Added trigger 'Port 011 GigabitEthernet0/11 status has changed' to host 'C355012G-02-A1'
                          Incorrect trigger expression. [ ... ... ]
                          Incorrect trigger expression. [ ... ... ]

                          And

                          Added trigger 'Port 012 GigabitEthernet0/12 administrative status has changed' to host 'C355012G-02-A1'
                          Added trigger 'Port 012 GigabitEthernet0/12 status has changed' to host 'C355012G-02-A1'
                          No such monitored parameter (Port 13 Speed) for host (C355012G-02-A1)
                          No such monitored parameter (Port 13 Speed) for host (C355012G-02-A1)
                          No such monitored parameter (Port 13 State Admin) for host (C355012G-02-A1)
                          No such monitored parameter (Port 13 State) for host (C355012G-02-A1)
                          Incorrect trigger expression. [ ... ... ]
                          Incorrect trigger expression. [ ... ... ]

                          I don't have port 13, only 12 on this host.
                          But it works on zabbix, just don't understand why says this errors.
                          Thanks in advance
                          Afonso

                          Comment

                          Working...