diff --git a/monitoring/mars-status b/monitoring/mars-status index 5e20b4c0..1d93e13c 100755 --- a/monitoring/mars-status +++ b/monitoring/mars-status @@ -1,6 +1,5 @@ #!/usr/bin/perl -w # (c) 2012/2013 Joerg Mann / 1&1 Internet AG -# released under GPL # # last update at now ... @@ -21,7 +20,7 @@ use File::Basename; binmode STDOUT, ":utf8"; ### defaults -my $version = "0.072m"; +my $version = "0.072q"; my $alife_timeout = "30"; # sec for remote-nodes timeout my $is_tty = 0; my $mars_dir = '/mars'; @@ -275,7 +274,7 @@ sub display_partner { $PUDevice = ( grep { /^$PUDevice / } <$fh> )[0]; if ( $PUDevice ) { $PUDevice = ( split / /, $PUDevice )[1]; - print_screen " and mountet as $PUDevice\n", "$Color_blue"; + print_screen " and mounted as $PUDevice\n", "$Color_blue"; } else { print_screen "\n\t\t---> TODO: enable to mount\n", "$Color_green"; } @@ -292,16 +291,18 @@ sub display_partner { ### check sync ### sync - status my $PSyncsize = check_link "$mars_dir/$PRes/syncstatus-$PName"; - my $SStatus = sprintf("%.2f", ($PSyncsize / $PSize * 100)); + my $SStatus = sprintf ("%.2f", ($PSyncsize / $PSize * 100)); print_screen (sprintf "\tSync : %s bytes (%.3fTB) synced = ", $PSyncsize, ( $PSyncsize/1024/1024/1024/1024)); ### sync - speed my $SSpeed = check_link "$mars_dir/$PRes/actual-$PName/sync_rate"; $SSpeed = sprintf ("%.2f", $SSpeed / 1024 / 1024); + my $SEndTime = ($PSize - $PSyncsize ) / 1024 / 1024 / 1024; if ( $SSpeed eq "0.00" ) { $SSpeed = "%"; } else { - $SSpeed = "%, by $SSpeed mb/s"; + $SEndTime = sprintf ("%.2f", $SEndTime / $SSpeed / 60); + $SSpeed = "%, by $SSpeed gb/s (hypothetically ends in $SEndTime min)"; } ### sync - results @@ -340,7 +341,7 @@ sub display_partner { print_screen (sprintf "\tLogfile : %s bytes (%.3fGB) in ", $PLogSize, ( $PLogSize/1024/1024/1024 )); print_screen "$PLogName", "$Color_green"; print_screen " active"; - print_screen ", received with $LogSpeed mb/s" if ( $LogSpeed ne "0.00" ); + print_screen ", received with $LogSpeed gb/s" if ( $LogSpeed ne "0.00" ); print_screen "\n"; if ( $Ljoined eq "0" || $PLogSize eq "0.0001" ) { print_screen "\t\t---> WORK: Logfile wait for starting ...\n", "$Color_red"; @@ -365,7 +366,7 @@ sub display_partner { if ( $RSpeed eq "0.00" ) { $RSpeed = "%"; } else { - $RSpeed = "%, by $RSpeed mb/s"; + $RSpeed = "%, by $RSpeed gb/s"; } ### replay - results @@ -426,7 +427,7 @@ sub display_partner { ### check switches my $SWStatus; print_screen "\tSwitches: Attach="; - if ( readlink "$mars_dir/$PRes/todo-$PName/attach" eq 1 ) { + if ( readlink "$mars_dir/$PRes/todo-$PName/attach" eq 1 ) { ### Use of uninitialized value in string print_screen "on", "$Color_green"; monitoring "", "attached"; } else { @@ -435,7 +436,7 @@ sub display_partner { } print_screen " [masked:" if ( $ActStatus eq 1 ); print_screen " Connect="; - if ( readlink "$mars_dir/$PRes/todo-$PName/connect" eq 1 ) { + if ( readlink "$mars_dir/$PRes/todo-$PName/connect" eq 1 ) { ### Use of uninitialized value in string print_screen "on", "$Color_green"; monitoring "", "connected"; } else { @@ -443,7 +444,7 @@ sub display_partner { monitoring "SwitchOff", "connect off"; } print_screen " Sync="; - if ( readlink "$mars_dir/$PRes/todo-$PName/sync" eq 1 ) { + if ( readlink "$mars_dir/$PRes/todo-$PName/sync" eq 1 ) { ### Use of uninitialized value in string print_screen "on", "$Color_green"; monitoring "", "synced"; } else { @@ -451,7 +452,7 @@ sub display_partner { monitoring "SwitchOff", "sync off"; } print_screen " AllowReplay=" ; - if ( readlink "$mars_dir/$PRes/todo-$PName/allow-replay" eq 1 ) { + if ( readlink "$mars_dir/$PRes/todo-$PName/allow-replay" eq 1 ) { ### Use of uninitialized value in string print_screen "on", "$Color_green"; monitoring "", "replayed"; } else { @@ -971,42 +972,45 @@ sub check_systemstatus { print_screen "---> Systemdata <---\n", "$Color_blue bold"; ### text / sol-file / sol-einheit / ist-file / ist-einheit - check_limit "-> AVG Limit", "loadavg_limit", "loadavg"; + check_limit "-> AVG Limit", "loadavg_limit", "loadavg"; print "\n"; - check_limit "-> Memory Limit", "mem_limit_percent", "%", "mem_used_raw_kb", "kb"; + check_limit "-> Memory Limit", "mem_limit_percent", "%", "mem_used_raw_kb", "kb"; print "\n"; - check_limit "-> Traffic Limit", "tuning/traffic_limit_kb", "kb/s", "tuning/traffic_rate_kb", "kb/s"; + check_limit "-> Traffic Limit Client", "traffic_tuning/client_role_traffic_ratelimit_kb", "kb/s", "traffic_tuning/client_role_traffic_rate_kb", "kb/s"; print "\n"; - check_limit "-> Writeback Limit", "tuning/writeback_limit_kb", "kb/s", "tuning/writeback_rate_kb", "kb/s"; - check_limit "", "", "", "tuning/writeback_until_percent", "%"; + check_limit "-> Traffic Limit Server", "traffic_tuning/server_role_traffic_ratelimit_kb", "kb/s", "traffic_tuning/server_role_traffic_rate_kb", "kb/s"; print "\n"; - check_limit "-> Server-IO Limit", "tuning/server_io_limit_kb", "kb/s", "tuning/server_io_rate_kb", "kb/s"; - check_limit " Flying IO", "", "", "io_flying_count"; + check_limit "-> Traffic Writeback", "traffic_tuning/writeback_ratelimit_kb", "kb/s", "traffic_tuning/writeback_rate_kb", "kb/s"; print "\n"; - check_limit "-> Copy Read: Prio", "copy_read_prio", ""; - check_limit " Flying IO", "", "", "copy_read_max_fly", ""; + check_limit "-> I/O Writeback", "io_tuning/writeback_ratelimit_kb", "kb/s", "io_tuning/writeback_rate_kb", "kb/s"; print "\n"; - check_limit "-> Copy Write: Prio", "copy_write_prio", ""; - check_limit " Flying IO", "", "", "copy_write_max_fly", ""; + check_limit "-> Server-IO Limit", "tuning/server_io_limit_kb", "kb/s", "tuning/server_io_rate_kb", "kb/s"; + check_limit " Flying IO", "", "", "io_flying_count"; print "\n"; - check_limit "-> LoggerMemory", "", "", "logger_mem_used_kb", "kb"; + check_limit "-> Copy Read: Prio", "copy_read_prio", ""; + check_limit " Flying IO", "", "", "copy_read_max_fly"; + print "\n"; + check_limit "-> Copy Write: Prio", "copy_write_prio", ""; + check_limit " Flying IO", "", "", "copy_write_max_fly"; print "\n"; - check_limit "-> FreeSpaceLimit LogRotate", "logrot_auto_gb", "gb"; + check_limit "-> LoggerMemory", "", "", "logger_mem_used_kb", "kb"; print "\n"; - check_limit "-> Network-IO-Timeout", "network_io_timeout", "sec"; + check_limit "-> FreeSpaceLimit LogRotate", "logrot_auto_gb", "gb"; print "\n"; - check_limit "-> Clear Page Cache", "", "", "mapfree_period_sec", "sec"; + check_limit "-> Network-IO-Timeout", "network_io_timeout", "sec"; print "\n"; - check_limit "-> Statusfile Rollover", "", "", "statusfiles_rollover_sec", "sec"; + check_limit "-> Clear Page Cache", "", "", "mapfree_period_sec", "sec"; print "\n"; - check_limit "-> Modus: Fast Full Sync", "", "", "do_fast_fullsync", "on/off"; - check_limit " AIO Sync", "", "", "aio_sync_mode", "on/off"; - check_limit " Delay say Overflow", "", "", "delay_say_on_overflow", "on/off"; - check_limit " Emergency", "", "", "mars_emergency_mode", "on/off"; - check_limit " Logger Resume", "", "", "logger_resume", "on/off"; + check_limit "-> Statusfile Rollover", "", "", "statusfiles_rollover_sec", "sec"; print "\n"; - check_limit "-> LamportClockDifferenz", "lamport_clock", "sec"; - check_limit " Mars Port", "mars_port", ""; + check_limit "-> Modus: Fast Full Sync", "", "", "do_fast_fullsync", "on/off"; + check_limit " AIO Sync", "", "", "aio_sync_mode", "on/off"; + check_limit " Delay say Overflow", "", "", "delay_say_on_overflow", "on/off"; + check_limit " Emergency", "", "", "mars_emergency_mode", "on/off"; + check_limit " Logger Resume", "", "", "logger_resume", "on/off"; + print "\n"; + check_limit "-> LamportClockDifferenz", "lamport_clock", "sec"; + check_limit " Mars Port", "mars_port", ""; print "\n"; my $mars_disk_space = `df '$mars_dir' | grep '$mars_dir'| awk '{print \$2}'`; @@ -1071,13 +1075,14 @@ while(1) { if ( $params->{'system'} ) { check_systemstatus; - ### check system params - check_disk_is_full; - check_jammed; } ########################################################################## + ### check system params + check_disk_is_full; + check_jammed; + ### check resources print_screen "---> Resources <---\n", "$Color_blue bold"; check_ressource; diff --git a/monitoring/zabbix/mars-cron-job b/monitoring/zabbix/mars-cron-job index e7c583db..bfca7cb2 100755 --- a/monitoring/zabbix/mars-cron-job +++ b/monitoring/zabbix/mars-cron-job @@ -1,91 +1,28 @@ #!/bin/bash -# -# Copyright 2013 Joerg Mann / 1&1 Internet AG -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. -##################################################################### -# -# use for mars relase 2013/11/19 -# +# v 0.02 +# modify by jms at Fri Jan 31 14:11:36 CET 2014 +# zabbix mars -LOG="/tmp/zabbix.mars" -MDIR="/proc/sys/mars" -echo "Date: `date`" >$LOG +TEMPFILE="/tmp/zabbix.mars" +echo -n >$TEMPFILE -work() { - if [ -f $MDIR/$FN ]; then - echo "$MDIR/$FN `cat $MDIR/$FN`" >>$LOG - else - echo "$MDIR/$FN 0" >>$LOG - fi -} +if [ "`lsmod|grep mars|grep -v grep`" == "" ]; then + exit 0 +else + # statistic + find /proc/sys/mars -name "*" -nowarn -exec echo -n {}" " \; -exec cat {} \; >$TEMPFILE 2>&1 + + # status + HOSTNAME="`/bin/hostname`" + ls -ld /mars/resource-*|awk '{print $9}'|sed -e 's!.*resource-!!g' | \ + while read RESNAME; do + #echo "-> $HOSTNAME - $RESNAME" + echo "# actual $RESNAME $HOSTNAME" >>$TEMPFILE + ls -ld /mars/resource-$RESNAME/actual-$HOSTNAME/* | sed -e 's!.*/actual-.*/!!g' | awk '{print "status '$RESNAME' " $1 " " $3}' >>$TEMPFILE + echo "# todo $RESNAME $HOSTNAME" >>$TEMPFILE + ls -ld /mars/resource-$RESNAME/todo-$HOSTNAME/* | sed -e 's!.*/todo-.*/!!g' | awk '{print "status '$RESNAME' " $1 " " $3}' >>$TEMPFILE + done -FN="copy_read_max_fly"; work -FN="copy_write_max_fly"; work -FN="io_flying_count"; work -FN="logger_mem_used_kb"; work -FN="logger_replay_timeout_sec"; work -FN="mapfree_period_sec"; work -FN="mem_used_raw_kb"; work -FN="propagate_interval_sec"; work -FN="scan_interval_sec"; work -FN="statusfiles_rollover_sec"; work -FN="sync_flip_interval_sec"; work -FN="tuning/aio_io_r_true_hit"; work -FN="tuning/aio_io_r_factor_percent"; work -FN="tuning/aio_io_w_true_hit"; work -FN="tuning/aio_io_w_factor_percent"; work -FN="tuning/aio_sync_true_hit"; work -FN="tuning/aio_submit_factor_percent"; work -FN="tuning/aio_submit_true_hit"; work -FN="tuning/aio_sync_factor_percent"; work -FN="tuning/bio_io_r_true_hit"; work -FN="tuning/bio_io_r_factor_percent"; work -FN="tuning/bio_io_w_true_hit"; work -FN="tuning/bio_io_w_factor_percent"; work -FN="tuning/bio_submit_factor_percent"; work -FN="tuning/bio_submit_true_hit"; work -FN="tuning/server_io_rate_kb"; work -FN="tuning/traffic_rate_kb"; work -FN="tuning/writeback_rate_kb"; work -FN="tuning/writeback_until_percent"; work -FN="fimem_alloc_count"; work -FN="mem_alloc_max"; work -FN="mem_allow_freelist"; work -FN="tuning/write_throttle_count_ops"; work -FN="tuning/write_throttle_cumul_kb"; work -FN="tuning/write_throttle_end_percent"; work -FN="tuning/write_throttle_maxdelay_ms"; work -FN="tuning/write_throttle_maxwindow_ms"; work -FN="tuning/write_throttle_minwindow_ms"; work -FN="tuning/write_throttle_rate_kb"; work -FN="tuning/write_throttle_ratelimit_kb"; work -FN="tuning/write_throttle_size_threshold_kb"; work -FN="tuning/write_throttle_start_percent"; work -FN="tuning/writeback_count_ops"; work -FN="tuning/writeback_cumul_kb"; work -FN="tuning/writeback_maxdelay_ms"; work -FN="tuning/writeback_maxwindow_ms"; work -FN="tuning/writeback_minwindow_ms"; work -FN="tuning/traffic_count_ops"; work -FN="tuning/traffic_cumul_kb"; work -FN="tuning/traffic_maxdelay_ms"; work -FN="tuning/traffic_maxwindow_ms"; work -FN="tuning/traffic_minwindow_ms"; work -FN="tuning/server_io_count_ops"; work -FN="tuning/server_io_cumul_kb"; work -FN="tuning/server_io_maxdelay_ms"; work -FN="tuning/server_io_maxwindow_ms"; work -FN="tuning/server_io_minwindow_ms"; work -HOSTNAME="`/bin/hostname`" -ls -ld /mars/resource-*|awk '{print $9}'|sed -e 's!.*resource-!!g' | \ -while read RESNAME; do - #echo "-> $HOSTNAME - $RESNAME" - ls -ld /mars/resource-$RESNAME/actual-$HOSTNAME/* | sed -e 's!.*/actual-.*/!!g' | awk '{print "status '$RESNAME' " $1 " " $3}' >>$LOG - ls -ld /mars/resource-$RESNAME/todo-$HOSTNAME/* | sed -e 's!.*/todo-.*/!!g' | awk '{print "status '$RESNAME' " $1 " " $3}' >>$LOG -done +fi diff --git a/monitoring/zabbix/mars.conf b/monitoring/zabbix/mars.conf index 3f8b3144..9321f10f 100644 --- a/monitoring/zabbix/mars.conf +++ b/monitoring/zabbix/mars.conf @@ -1,27 +1,6 @@ -# Copyright 2013 Joerg Mann / 1&1 Internet AG -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. -##################################################################### -# -# zabbix mars config -# +# mars config +# v002 -UserParameter=system.mars[*], echo -n "0"; cat /tmp/zabbix.mars|grep $1|awk '{print $$2}' -UserParameter=system.marsstatus[*], echo -n "0"; cat /tmp/zabbix.mars|grep $1|grep ' $2 '|awk '{print $$4}' - -#status data1 device-data1 1 -#status data1 is-attached 1 -#status data1 is-copying 0 -#status data1 is-primary 1 -#status data1 is-replaying 0 -#status data1 is-syncing 0 -#status data1 open-count 1 -#status data1 replay_rate 0 -#status data1 allow-replay 1 -#status data1 attach 1 -#status data1 connect 1 -#status data1 sync 1 +UserParameter=system.mars[*], ( grep $1 /tmp/zabbix.mars || echo '0 0' ) | awk '{print $$2}' +UserParameter=system.marsstatus[*], grep $1 /tmp/zabbix.mars | grep ' $2 ' | awk '{print $$4}' | head -n 1 diff --git a/monitoring/zabbix/zabbix_mars_template.xml b/monitoring/zabbix/zabbix_mars_template.xml index 2ce276a7..e988e0d4 100644 --- a/monitoring/zabbix/zabbix_mars_template.xml +++ b/monitoring/zabbix/zabbix_mars_template.xml @@ -1,7 +1,7 @@ 2.0 - 2013-12-05T14:13:00Z + 2014-02-05T12:30:02Z Templates @@ -143,12 +143,12 @@ - logger_mem_used_kb + io_tuning/writeback_rate_kb 0 0 - system.mars[logger_mem_used_kb] + system.mars[io_tuning/writeback_rate_kb] 60 90 365 @@ -182,12 +182,90 @@ - logger_replay_timeout_sec + io_tuning/writeback_until_percent 0 0 - system.mars[logger_replay_timeout_sec] + system.mars[io_tuning/writeback_until_percent] + 60 + 90 + 365 + 0 + 3 + + + 0 + + 0 + + + 1 + + + + 0 + 0 + + + + + + + 0 + + + Mars Server Statistics + + + + + + last check running for mars + 0 + + 0 + + vfs.file.time[/tmp/zabbix.mars,change] + 300 + 90 + 365 + 0 + 3 + + unixtime + 0 + + 0 + + + 1 + + + + 0 + 0 + + + + + + + 0 + + + Mars Server Status + + + + + + logger_mem_used_kb + 0 + + 0 + + system.mars[logger_mem_used_kb] 60 90 365 @@ -298,6 +376,45 @@ + + Mars Server Daemon + 0 + + 0 + + proc.num[mars_light] + 60 + 90 + 365 + 0 + 3 + + + 0 + + 0 + + + 1 + + + + 0 + 0 + + + + + + + 0 + + + Mars Server Status + + + + Mars Server Status - allow-replay 0 @@ -727,162 +844,6 @@ - - mem_alloc_count - 0 - - 0 - - system.mars[mem_alloc_count] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - mem_alloc_max - 0 - - 0 - - system.mars[mem_alloc_max] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - mem_allow_freelist - 0 - - 0 - - system.mars[mem_allow_freelist] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - mem_used_raw_kb - 0 - - 0 - - system.mars[mem_used_raw_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - propagate_interval_sec 0 @@ -961,201 +922,6 @@ - - server_io_count_ops - 0 - - 0 - - system.mars[server_io_count_ops] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - server_io_cumul_kb - 0 - - 0 - - system.mars[server_io_cumul_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - server_io_maxdelay_ms - 0 - - 0 - - system.mars[server_io_maxdelay_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - server_io_maxwindow_ms - 0 - - 0 - - system.mars[server_io_maxwindow_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - server_io_minwindow_ms - 0 - - 0 - - system.mars[server_io_minwindow_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - statusfiles_rollover_sec 0 @@ -1235,12 +1001,12 @@ - traffic_count_ops + traffic_tuning/client_role_traffic_rate_kb 0 0 - system.mars[traffic_count_ops] + system.mars[traffic_tuning/client_role_traffic_rate_kb] 60 90 365 @@ -1274,12 +1040,12 @@ - traffic_cumul_kb + traffic_tuning/server_role_traffic_rate_kb 0 0 - system.mars[traffic_cumul_kb] + system.mars[traffic_tuning/server_role_traffic_rate_kb] 60 90 365 @@ -1313,12 +1079,12 @@ - traffic_maxdelay_ms + traffic_tuning/writeback_rate_kb 0 0 - system.mars[traffic_maxdelay_ms] + system.mars[traffic_tuning/writeback_rate_kb] 60 90 365 @@ -1352,12 +1118,12 @@ - traffic_maxwindow_ms + traffic_tuning/writeback_until_percent 0 0 - system.mars[traffic_maxwindow_ms] + system.mars[traffic_tuning/writeback_until_percent] 60 90 365 @@ -1391,12 +1157,12 @@ - traffic_minwindow_ms + traffic_tunning/client_role_traffic_count_ops 0 0 - system.mars[traffic_minwindow_ms] + system.mars[traffic_tunning/client_role_traffic_count_ops] 60 90 365 @@ -1430,870 +1196,12 @@ - tuning/aio_io_r_factor_percent + traffic_tunning/server_role_traffic_count_ops 0 0 - system.mars[tuning/aio_io_r_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_io_r_true_hit - 0 - - 0 - - system.mars[tuning/aio_io_r_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_io_w_factor_percent - 0 - - 0 - - system.mars[tuning/aio_io_w_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_io_w_true_hit - 0 - - 0 - - system.mars[tuning/aio_io_w_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_submit_factor_percent - 0 - - 0 - - system.mars[tuning/aio_submit_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_submit_true_hit - 0 - - 0 - - system.mars[tuning/aio_submit_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_sync_factor_percent - 0 - - 0 - - system.mars[tuning/aio_sync_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/aio_sync_true_hit - 0 - - 0 - - system.mars[tuning/aio_sync_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_io_r_factor_percent - 0 - - 0 - - system.mars[tuning/bio_io_r_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_io_r_true_hit - 0 - - 0 - - system.mars[tuning/bio_io_r_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_io_w_factor_percent - 0 - - 0 - - system.mars[tuning/bio_io_w_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_io_w_true_hit - 0 - - 0 - - system.mars[tuning/bio_io_w_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_submit_factor_percent - 0 - - 0 - - system.mars[tuning/bio_submit_factor_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/bio_submit_true_hit - 0 - - 0 - - system.mars[tuning/bio_submit_true_hit] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/server_io_rate_kb - 0 - - 0 - - system.mars[tuning/server_io_rate_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/traffic_rate_kb - 0 - - 0 - - system.mars[tuning/traffic_rate_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/writeback_rate_kb - 0 - - 0 - - system.mars[tuning/writeback_rate_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - tuning/writeback_until_percent - 0 - - 0 - - system.mars[tuning/writeback_until_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - writeback_count_ops - 0 - - 0 - - system.mars[writeback_count_ops] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - writeback_cumul_kb - 0 - - 0 - - system.mars[writeback_cumul_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - writeback_maxdelay_ms - 0 - - 0 - - system.mars[writeback_maxdelay_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - writeback_maxwindow_ms - 0 - - 0 - - system.mars[writeback_maxwindow_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - writeback_minwindow_ms - 0 - - 0 - - system.mars[writeback_minwindow_ms] + system.mars[traffic_tunning/server_role_traffic_count_ops] 60 90 365 @@ -2365,240 +1273,6 @@ - - write_throttle_cumul_kb - 0 - - 0 - - system.mars[write_throttle_cumul_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_end_percent - 0 - - 0 - - system.mars[write_throttle_end_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_maxdelay_ms - 0 - - 0 - - system.mars[write_throttle_maxdelay_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_maxwindow_ms - 0 - - 0 - - system.mars[write_throttle_maxwindow_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_minwindow_ms - 0 - - 0 - - system.mars[write_throttle_minwindow_ms] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_ratelimit_kb - 0 - - 0 - - system.mars[write_throttle_ratelimit_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - write_throttle_rate_kb 0 @@ -2638,90 +1312,12 @@ - - write_throttle_size_threshold_kb - 0 - - 0 - - system.mars[write_throttle_size_threshold_kb] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - - - write_throttle_start_percent - 0 - - 0 - - system.mars[write_throttle_start_percent] - 60 - 90 - 365 - 0 - 3 - - - 0 - - 0 - - - 1 - - - - 0 - 0 - - - - - - - 0 - - - Mars Server Statistics - - - - {$RESNAME} - data1 + data @@ -2729,32 +1325,12 @@ Mars overview 2 - 5 + 4 0 650 - 200 - 0 - 1 - 1 - 1 - 0 - 1 - 0 - - - 0 - 0 - - mars tuning hits - Template Mars Server - - - - 0 - 650 - 250 + 100 1 1 1 @@ -2767,14 +1343,14 @@ 0 0 - mars tuning percent + mars count percent Template Mars Server 0 650 - 200 + 100 0 0 1 @@ -2787,14 +1363,14 @@ 0 0 - mars sec + mars count sec Template Mars Server 0 650 - 200 + 100 1 0 1 @@ -2807,14 +1383,14 @@ 0 0 - mars tuning kb + mars count kb Template Mars Server 0 650 - 200 + 100 0 2 1 @@ -2827,14 +1403,34 @@ 0 0 - mars tuning count ops + mars count ops Template Mars Server 0 650 - 200 + 100 + 0 + 1 + 1 + 1 + 0 + 0 + 0 + + + 0 + 0 + + mars count io fly + Template Mars Server + + + + 0 + 650 + 100 1 2 1 @@ -2847,67 +1443,7 @@ 0 0 - mars tuning cumul kb - Template Mars Server - - - - 0 - 650 - 200 - 0 - 3 - 1 - 1 - 0 - 0 - 0 - - - 0 - 0 - - mars tuning mem alloc - Template Mars Server - - - - 0 - 650 - 200 - 1 - 3 - 1 - 1 - 0 - 0 - 0 - - - 0 - 0 - - mars tuning maxdelay ms - Template Mars Server - - - - 0 - 650 - 200 - 0 - 4 - 1 - 1 - 0 - 0 - 0 - - - 0 - 0 - - mars tuning max- /min-window_ms + mars count copy fly Template Mars Server @@ -2918,7 +1454,17 @@ - {Template Mars Server:system.marsstatus[{$RESNAME},allow-replay].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:vfs.file.time[/tmp/zabbix.mars,change].fuzzytime(931)}=0 + Mars check not running on {HOST.NAME} + + 0 + 2 + + 0 + + + + {Template Mars Server:system.marsstatus[{$RESNAME},allow-replay].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not allowed replay 0 @@ -2928,7 +1474,7 @@ - {Template Mars Server:system.marsstatus[{$RESNAME},attach].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:system.marsstatus[{$RESNAME},attach].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not attached 0 @@ -2938,7 +1484,7 @@ - {Template Mars Server:system.marsstatus[{$RESNAME},connect].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:system.marsstatus[{$RESNAME},connect].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not connected 0 @@ -2948,7 +1494,7 @@ - {Template Mars Server:system.marsstatus[{$RESNAME},is-attached].last(0)}=0 & {Template Mars Server:system.marsstatus[{$RESNAME},attach].last(0)}=1 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:system.marsstatus[{$RESNAME},is-attached].last(0)}=0 & {Template Mars Server:system.marsstatus[{$RESNAME},attach].last(0)}=1 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not is-attached 0 @@ -2958,17 +1504,17 @@ - {Template Mars Server:system.marsstatus[{$RESNAME},is-replaying].last(0)}=0 & {Template Mars Server:system.marsstatus[{$RESNAME},allow-replay].last(0)}=1 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:system.marsstatus[{$RESNAME},is-replaying].last(0)}=0 & {Template Mars Server:system.marsstatus[{$RESNAME},allow-replay].last(0)}=1 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not is-replaying - 0 + 1 1 0 - {Template Mars Server:system.marsstatus[{$RESNAME},sync].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 + {Template Mars Server:system.marsstatus[{$RESNAME},sync].last(0)}=0 & {Template Mars Server:system.modules[mars].last(0)}=1 & {Template Mars Server:proc.num[mars_light].last(0)}=1 MARS Device on {HOST.NAME} not sync 0 @@ -2978,11 +1524,11 @@ - {Template Mars Server:system.modules[mars].last(0)}=0 - MARS Module on {HOST.NAME} not loaded + {Template Mars Server:system.modules[mars].last(0)}=0 | {Template Mars Server:proc.num[mars_light].last(0)}=0 + MARS Module on {HOST.NAME} not loaded or running 0 - 4 + 5 0 @@ -2990,7 +1536,7 @@ - mars sec + mars count copy fly 900 200 0.0000 @@ -3016,7 +1562,7 @@ 0 Template Mars Server - system.mars[logger_replay_timeout_sec] + system.mars[copy_read_max_fly] @@ -3028,23 +1574,63 @@ 0 Template Mars Server - system.mars[mapfree_period_sec] + system.mars[copy_write_max_fly] + + + + mars count io fly + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + - 2 + 0 0 - 0000C8 + C80000 0 2 0 Template Mars Server - system.mars[propagate_interval_sec] + system.mars[io_flying_count] + + + + mars count kb + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + - 3 + 0 0 C800C8 0 @@ -3052,11 +1638,11 @@ 0 Template Mars Server - system.mars[scan_interval_sec] + system.mars[io_tuning/writeback_rate_kb] - 4 + 1 0 00C8C8 0 @@ -3064,11 +1650,11 @@ 0 Template Mars Server - system.mars[statusfiles_rollover_sec] + system.mars[logger_mem_used_kb] - 5 + 2 0 C8C800 0 @@ -3076,13 +1662,49 @@ 0 Template Mars Server - system.mars[sync_flip_interval_sec] + system.mars[traffic_tuning/client_role_traffic_rate_kb] + + + + 3 + 0 + C8C8C8 + 0 + 2 + 0 + + Template Mars Server + system.mars[traffic_tuning/server_role_traffic_rate_kb] + + + + 4 + 0 + 960000 + 0 + 2 + 0 + + Template Mars Server + system.mars[traffic_tuning/writeback_rate_kb] + + + + 5 + 0 + 009600 + 0 + 2 + 0 + + Template Mars Server + system.mars[write_throttle_rate_kb] - mars tuning count ops + mars count ops 900 200 0.0000 @@ -3102,46 +1724,34 @@ 0 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[server_io_count_ops] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[traffic_count_ops] - - - - 2 - 0 0000C8 0 2 0 Template Mars Server - system.mars[writeback_count_ops] + system.mars[traffic_tunning/client_role_traffic_count_ops] - 3 + 1 0 C800C8 0 2 0 + + Template Mars Server + system.mars[traffic_tunning/server_role_traffic_count_ops] + + + + 2 + 0 + 00C8C8 + 0 + 2 + 0 Template Mars Server system.mars[write_throttle_count_ops] @@ -3150,7 +1760,7 @@ - mars tuning cumul kb + mars count percent 900 200 0.0000 @@ -3170,367 +1780,19 @@ 0 0 - C80000 - 0 - 1 - 0 - - Template Mars Server - system.mars[server_io_cumul_kb] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[traffic_cumul_kb] - - - - 2 - 0 - 0000C8 - 0 - 4 - 0 - - Template Mars Server - system.mars[writeback_cumul_kb] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_cumul_kb] - - - - - - mars tuning hits - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_io_r_true_hit] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_io_w_true_hit] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_submit_true_hit] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_sync_true_hit] - - - - 4 - 0 - 00C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/bio_io_r_true_hit] - - - - 5 - 0 - C8C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/bio_io_w_true_hit] - - - - 6 - 0 - C8C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/bio_submit_true_hit] - - - - - - mars tuning kb - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/server_io_rate_kb] - - - - 1 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/traffic_rate_kb] - - - - 2 - 0 - C8C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/writeback_rate_kb] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_ratelimit_kb] - - - - 4 - 0 - 00C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_rate_kb] - - - - 5 - 0 - C8C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_size_threshold_kb] - - - - - - mars tuning max- /min-window_ms - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[server_io_maxwindow_ms] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[server_io_minwindow_ms] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[traffic_maxwindow_ms] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[traffic_minwindow_ms] - - - - 4 - 0 - 00C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[writeback_maxwindow_ms] - - - - 5 - 0 - C8C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[writeback_minwindow_ms] - - - - 6 - 0 - C8C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_maxwindow_ms] - - - - 7 - 0 960000 0 2 0 Template Mars Server - system.mars[write_throttle_minwindow_ms] + system.mars[io_tuning/writeback_until_percent] - mars tuning maxdelay ms + mars count sec 900 200 0.0000 @@ -3550,201 +1812,17 @@ 0 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[server_io_maxdelay_ms] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[traffic_maxdelay_ms] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[writeback_maxdelay_ms] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[write_throttle_maxdelay_ms] - - - - - - mars tuning mem alloc - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[mem_alloc_count] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[mem_alloc_max] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[mem_allow_freelist] - - - - - - mars tuning percent - 900 - 200 - 0.0000 - 100.0000 - 1 - 1 - 0 - 1 - 0 - 0.0000 - 0.0000 - 0 - 0 - 0 - 0 - - - 0 - 0 - C80000 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_io_r_factor_percent] - - - - 1 - 0 - 00C800 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_io_w_factor_percent] - - - - 2 - 0 - 0000C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_submit_factor_percent] - - - - 3 - 0 - C800C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/aio_sync_factor_percent] - - - - 4 - 0 - 00C8C8 - 0 - 2 - 0 - - Template Mars Server - system.mars[tuning/bio_io_r_factor_percent] - - - - 5 - 0 C8C800 0 2 0 Template Mars Server - system.mars[tuning/bio_io_w_factor_percent] + system.mars[mapfree_period_sec] - 6 + 1 0 C8C8C8 0 @@ -3752,11 +1830,11 @@ 0 Template Mars Server - system.mars[tuning/bio_submit_factor_percent] + system.mars[propagate_interval_sec] - 7 + 2 0 960000 0 @@ -3764,11 +1842,11 @@ 0 Template Mars Server - system.mars[tuning/writeback_until_percent] + system.mars[scan_interval_sec] - 8 + 3 0 009600 0 @@ -3776,11 +1854,11 @@ 0 Template Mars Server - system.mars[write_throttle_end_percent] + system.mars[statusfiles_rollover_sec] - 9 + 4 0 000096 0 @@ -3788,7 +1866,7 @@ 0 Template Mars Server - system.mars[write_throttle_start_percent] + system.mars[sync_flip_interval_sec]