Ad Widget

Collapse

Create graphs/screens with command line?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jlkaiser
    Junior Member
    • Mar 2008
    • 1

    #1

    Create graphs/screens with command line?

    Hi,

    Is there a way in zabbix to create scripts and/or graphs from the command line in Zabbix. I want to be able to set up a large cluster with things like:

    The load per rack.
    The total load for all racks.

    And then a screen to view those two different loads. I don't want to add 40 machines per rack in 30 racks to a graph and then add each of those graphs together in a screen.

    Is there anyway to do this with scripts?

    Thanks,

    Joe Kaiser
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    I made a PHP script to create a screen automatically, it is made for a screen showing input/output graphs for each port in the switch. The graphs are already made with a template:

    Comment

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

      #3
      Hmmm... You know command line scripting would be a nice thing to be able to do. I'm thinking of something similar to how Zimbra does it. Yes you can admin a Zimbra cluster from the GUI and it's pretty good, but the ability to script and manipulate the server from a command line is nice.

      I could see this most useful in adding items and hosts. Although the more I think about it, it would be most useful in pulling an item out of the database. It would be nice to have a script which would pull an item which I could then use in another script for more complicated alerting or sending to another system.

      Hmm... I think I'll try and hack something out for this. I'll probably have something to post in a few days.
      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

      Working...