Ad Widget

Collapse

Zabcon new features!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #1

    Zabcon new features!

    I've been hard at work updating and improving Zabcon and the Ruby API! The two latest features should make this tool much more useful to everyone.

    I would also like to announce that a tarball is now available for download. This tarball will be updated periodically, and the revision number will change appropriately. The link is on the main page for Zabcon http://trac.red-tux.net

    The two features are, Raw API calls and basic variables.

    With the Raw API support it is possible to execute API calls for functions which have not yet been implemented in the API wrapper. This capability is available directly via Zabcon and the API library. There are also two varieties of Raw API calls, one where you provide the method and parameters (raw api) and one where you provide the full JSON call (raw json).

    For example if you wish to use a raw call to show the current list of users you would issue the following in Zabcon:
    Code:
    raw api user.get extendoutput=true limit=100
    This would be the equivilant of the zabcon command:
    Code:
    get user show=all
    You can also make calls to Zabcon from the command line by piping your command to it, this is useful if you wish to use Zabcon inside a script. (I will be removing some of the extraneous text here soon).
    example:
    Code:
     echo "raw api user.get output=extend filter=autologout limit=100"  | ./zabcon -l
    The exciting addition is user defined variables. It is possible to assign a commonly used statement to a variable and then refer to that variable. Variables are prefaced by a $ character. The help menu has more information about variables. I will be adding the ability to save variables soon.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Fixed verbosity. Tarball available on http://trac.red-tux.net along with previous versions.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      i only had a few minutes to play with raw api & json calls, and i can confirm that it works nicely.

      and it is an uwsum feature, which should help a lot in debugging, as well as hopefully adding more directly supported commands to zabcon itself - thanks
      Zabbix 3.0 Network Monitoring book

      Comment

      Working...