Ad Widget

Collapse

perl XML Generators

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BHG_2008
    Junior Member
    • Jan 2008
    • 23

    #1

    perl XML Generators

    We have a large deployment of ZABBIX (1.4.4), and I needed a way to build custom item lists on the fly as we possess a plethera of different routers, firewalls, load-balancers and switches of various breeds across our enterprise. As they all conform to SNMPv2 MIB standards, I thought we should use perl scripts do a few snmpgets to determine machine type (set as variables), and then proceed with further gets, controlled by these variables. In this way, we could build perl scripts to generate custom item lists for hosts that are so unique, a template would be useless. We have one perl script already, in which you set a few preferences, execute the script, and voila, there is an XML file to import. This file adds the host, adds that host to the hostgroup you selected, adds input octet, output octet, admin up/down, up/down and cpu % items to that host, with the sample interval you select, and with triggers at thresholds you select. Done. Want to change all trigger threshold points? Just change preference in perl script, rerun, and re-import (with update selected on import screen). Done.

    I would like to keep separate from templates, although this could be used to generate TEMPLATES as well, just choose "TEMPLATE" hostgroup, run and import XML. Re-use on IDENTICAL hosts.

    After we did this with amazing success, I realized we could use the same theory just about anywhere. Like a bunch of inconsistent servers running different software.... hmmm...

    Sound interesting to anyone?
    18
    Yes, email me when posted.
    100.00%
    18
    No
    0.00%
    0
    Last edited by BHG_2008; 12-09-2008, 13:00. Reason: Added content
  • riegersteve
    Member
    • Oct 2004
    • 68

    #2
    where can one find this perl script ?

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #3
      Would this be Perl Zabbix XML Template Generator #3, then? ;-)

      There are already at least two on here that I know of:



      and



      Perhaps I could suggest writing it in PHP [even though I've already contributed to one of the above], then it could be part of the Zabbix UI itself?

      Comment

      • BHG_2008
        Junior Member
        • Jan 2008
        • 23

        #4
        No, Paul Kennedy (an associate of mine) wrote this one. I was looking for interest. If there was much interest, we could release a compiled executable users could simply execute in Windows, instead of having to configure an entire Perl environment.

        Comment

        • niceguy
          Junior Member
          • Aug 2011
          • 4

          #5
          Few years later....
          ... nothing happened....

          no php, no exec.....

          Comment

          • dima_dm
            Senior Member
            • Dec 2009
            • 2697

            #6
            See

            Comment

            Working...