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
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.
edit include/triggers.inc.php, line 1101
Code:
- ' order by t.description'); + ' order by h.host,t.description');
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.
. 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