Hi All,
today we were discussing, that nice feature of zabbix would host configuration wizard with combination of zabbix agent.
Here is idea of funcionting:
Zabbix agent could provide system information on demand, when user clicks on wizard button.
Server connects to agent, gathering these data :
1. System parameters -> memory, load, etc
2. Mounted partitions
3. Interfaces
4. List of processes.
5. Open ports and IP's
Wizard creates creates list, where will be these values preconfigured. User checks boxes, which he want to monitor (items) AND some fields, where he can specify
for partitions : Critical free space
for processes: critical low count of each daemon
interfaces: Combination of port and IP and protocol (f.e. checkboxes)
Next step will be automate creation of triggers , which will be created by pattern of values selected at previous wizard step.
Processor load is too high,
free space at partition is less then 10%
Number of process XY is < 2
TCP port not available and so on
and specifying f.e, that these states have to last more then 15 mins.
User checks, which triggers he wants to add.
Then the thirds step should be Configuration of alerts . There should be pattern also, but now I have no idea how to do that now.
We tried to figure linux scripts for Linux agent, so :
List of interfaces:
List of filesystems:
List of applications:
List of opened ports :
System parameters could zabbix also determine. It depends on your experience with zabbix.
It's just an idea of new feature. Could someone try to implement this ? I think such feature could save a lot of time to many people.
Thanks to cripy for help with scripts
today we were discussing, that nice feature of zabbix would host configuration wizard with combination of zabbix agent.
Here is idea of funcionting:
Zabbix agent could provide system information on demand, when user clicks on wizard button.
Server connects to agent, gathering these data :
1. System parameters -> memory, load, etc
2. Mounted partitions
3. Interfaces
4. List of processes.
5. Open ports and IP's
Wizard creates creates list, where will be these values preconfigured. User checks boxes, which he want to monitor (items) AND some fields, where he can specify
for partitions : Critical free space
for processes: critical low count of each daemon
interfaces: Combination of port and IP and protocol (f.e. checkboxes)
Next step will be automate creation of triggers , which will be created by pattern of values selected at previous wizard step.
Processor load is too high,
free space at partition is less then 10%
Number of process XY is < 2
TCP port not available and so on
and specifying f.e, that these states have to last more then 15 mins.
User checks, which triggers he wants to add.
Then the thirds step should be Configuration of alerts . There should be pattern also, but now I have no idea how to do that now.
We tried to figure linux scripts for Linux agent, so :
List of interfaces:
Code:
/sbin/ifconfig -a |/usr/bin/awk '/^[a-z]/ {print $1}'
Code:
/bin/mount | /usr/bin/awk '{ print $1 " " $3 }'
Code:
/bin/ps -e | /usr/bin/awk '{ print $4 }' | /usr/bin/sort | /usr/bin/uniq
Code:
/bin/netstat -nl | /bin/grep -E "^tcp|^udp" | /usr/bin/awk '{print $1 " " $4}' | /usr/bin/sort | /usr/bin/uniq
It's just an idea of new feature. Could someone try to implement this ? I think such feature could save a lot of time to many people.
Thanks to cripy for help with scripts