/[smecontribs]/rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent-0.1-userparam_diskio.patch
ViewVC logotype

Annotation of /rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent-0.1-userparam_diskio.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Aug 4 14:19:32 2010 UTC (14 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-48_el4_sme, smeserver-zabbix-agent-0_1-47_el4_sme, smeserver-zabbix-agent-0_1-46_el4_sme, smeserver-zabbix-agent-0_1-50_el4_sme, smeserver-zabbix-agent-0_1-45_el4_sme, smeserver-zabbix-agent-0_1-51_el4_sme, smeserver-zabbix-agent-0_1-44_el4_sme, smeserver-zabbix-agent-0_1-52_el4_sme, smeserver-zabbix-agent-0_1-49_el4_sme, HEAD
* Wed Aug 04 2010 Daniel B. <daniel@firewall-services.com> 0.1-44
- Support up to 8 disks for I/O monitoring. Report valid 0 value
  for non existing ones to prevent errors in server's log

1 vip-ire 1.1 --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_diskIO.userparam_diskio 2010-08-04 16:16:13.000000000 +0200
2     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_diskIO 2010-08-04 16:17:34.000000000 +0200
3     @@ -0,0 +1,42 @@
4     +# Disk I/O Monitoring
5     +
6     +# Description: Read operations on hdX
7     +# X can be from 1 to 8
8     +# you'll have to create a custom template if
9     +# you want to support more than 8 drives
10     +# You can also monitor raid devices (/dev/md1 for example)
11     +
12     +# Type: Agent or Agent (active)
13     +# Key: vfs.dev.read.hdX vfs.dev.write.hdX
14     +# Type of information: Numeric (Float or integer 64bit)
15     +# Units: bytes/sec
16     +# Use multiplier: 512
17     +# Update interval: 60 (for example)
18     +# Store Value: Delta (speed/sec)
19     +# Show Value: As is
20     +
21     +# For these UserParameter to work, you need to configure the drives you want to monitor
22     +# in the DB:
23     +# db configuration setprop zabbix-agent HardDrives /dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
24     +# signal-event zabbix-agent-update
25     +
26     +{
27     +
28     +my @hd = split( /[,;]/,( ${'zabbix-agent'}{'HardDrives'} || '' ));
29     +
30     +my $cnt = 1;
31     +foreach my $drive (@hd){
32     + if ( -e $drive){
33     + $drive =~ s|/dev/||;
34     + $OUT .= "Alias=vfs.dev.read.hd" . $cnt . ":vfs.dev.read[$drive,sectors]\n";
35     + $OUT .= "Alias=vfs.dev.write.hd" . $cnt . ":vfs.dev.write[$drive,sectors]\n";
36     + $cnt++;
37     + }
38     +}
39     +for (;$cnt < 9; $cnt++){
40     + $OUT .= "UserParameter=vfs.dev.read.hd" . $cnt . ",echo '0'\n";
41     + $OUT .= "UserParameter=vfs.dev.write.hd" . $cnt . ",echo '0'\n";
42     +}
43     +
44     +}
45     +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed