Ad Widget

Collapse

Hosts sorted alphabetically in Monitoring...Overview...Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #1

    Hosts sorted alphabetically in Monitoring...Overview...Triggers

    So if you have alot of hosts, it is most convenient (for me) to see the hosts sorted alphabetically across the top. Also you want the triggers sorted alphabetically in the left column. Here is the line of source code to change to make this happen:

    edit include/triggers.inc.php, line 1101

    Code:
    - ' order by t.description');
    + ' order by h.host,t.description');
    If you name your triggers judiciously they will appear nicely sorted in the left column, such as

    App: SSH server on {HOSTNAME}
    Disk: Low free disk space on {HOSTNAME} volume /
    Disk: Low free disk space on {HOSTNAME} volume /opt
    Disk: Low number of free inodes on {HOSTNAME} volume /
    Disk: Low number of free inodes on {HOSTNAME} volume /opt
    System: /etc/passwd changed alert on server {HOSTNAME}
    System: /usr/sbin/sshd checksum alert on server {HOSTNAME}
    System: Host information was changed on {HOSTNAME}
    System: Hostname was changed on {HOSTNAME}
    System: Lack of free memory on server {HOSTNAME}
    System: Lack of free swap space on {HOSTNAME}
    System: Processor load is too high on {HOSTNAME}
    System: Server {HOSTNAME} is unreachable
    System: Too many processes (>600) on {HOSTNAME}
    System: Too may users (<100) connected on server {HOSTNAME}
    System: {HOSTNAME} has just been restarted

    You get the idea.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I believe it is already normally sorted by host name in 1.1.5 and 1.1.6.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • clahti
      Senior Member
      • Jan 2007
      • 126

      #3
      I am sorry I didn't specify I am using beta 1.3.2, I had to make this change to the php code for proper sorting . Should I post all things related to 1.3.2 such as this in the Beta forum? I am going to be releasing templates and scripts in the cookbook, maybe we need a cookbook for beta versions?

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        These changes are already in pre 1.3.3.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...