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

Contents of /rpms/smeserver-zabbix-agent/contribs9/smeserver-zabbix-agent-0.1-userparam_diskio.patch

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


Revision 1.1 - (show annotations) (download)
Tue Feb 9 23:18:27 2016 UTC (8 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-53_el6_sme, smeserver-zabbix-agent--, HEAD
Error occurred while calculating annotation data.
* Wed Feb 10 stephane de Labrusse <stephdl@de-labrusse.fr> - 0.1-53.sme
- New rpm for sme9

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