Шаблон - Приложения шлюза на ММВБ

Общее

Наблюдение за состоянием приложений на шлюзе ММВБ по следующим параметрам:

  • Количество процессов в памяти
  • Количество занимаемой памяти
  • Kernel- и user-время процессов
  • Наличие в лог-файлах приложений ошибок и дисконнектов

Триггеры установлены на на следующие события:

  • Отсутствие приложенй в памяти
  • Появление в логах программ записей об ошибках и дисконнектах

ToDo: При разрыве соединения шлюзы начинают «кушать» память. При возникновении такой проблемы опытным путем рассчитать дельту на соответствующие триггеры

Требования

  • zabbix-agent 1.8.3 или старше (для наблюдения за логами необходимо наличие агента умеющего работать в активном режиме).

Шаблон для zabbix

template_App_MICEX_Gateway.xml
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>2.0</version>
    <date>2012-05-30T06:56:13Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template_MFCGateway</template>
            <name>Template_MFCGateway</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>MICEX Client1</name>
                </application>
                <application>
                    <name>MICEX Client2</name>
                </application>
                <application>
                    <name>MICEX Order</name>
                </application>
                <application>
                    <name>MICEX StopOrder</name>
                </application>
                <application>
                    <name>MICEX Trassa</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>MICEXClient1 Log Disconnect</name>
                    <type>7</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>logrt[&quot;C:\\Micex\\MicexClient\\1\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>2</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client1</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXClient2 Log Disconnect</name>
                    <type>7</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>logrt[&quot;C:\\Micex\\MicexClient\\2\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>2</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client2</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXClient Processes</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc.num[MicexClient.exe]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client1</name>
                        </application>
                        <application>
                            <name>MICEX Client2</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXClients Kernel Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexClient.exe,ktime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client1</name>
                        </application>
                        <application>
                            <name>MICEX Client2</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXClients Memory Usage</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexClient.exe,wkset,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>b</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1024</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client1</name>
                        </application>
                        <application>
                            <name>MICEX Client2</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXClients User Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexClient.exe,utime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Client1</name>
                        </application>
                        <application>
                            <name>MICEX Client2</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXOrder Kernel Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexOrder.exe,ktime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Order</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXOrder Log Error</name>
                    <type>7</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>logrt[&quot;C:\\Micex\\SiriusClient\\Order\\MicexOrder_.*[0-9]{8}\.log&quot;, &quot;Ошибка&quot;, ,]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>2</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Order</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXOrder Memory Usage</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexOrder.exe,wkset,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>b</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1024</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Order</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXOrder Processes</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc.num[MicexOrder.exe]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Order</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXOrder User Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexOrder.exe,utime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Order</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXStopOrder Kernel Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MonitorStopOrder.exe,ktime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>ms</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX StopOrder</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXStopOrder Log Connection Closed</name>
                    <type>7</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>logrt[&quot;C:\\Micex\\SiriusClient\\Monitor\\MonitorStopOrder_.*[0-9]{8}\.log&quot;, &quot;Соединение с БД Sirius закрыто&quot;, ,]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>2</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX StopOrder</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXStopOrder Memory Usage</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MonitorStopOrder.exe,wkset,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>b</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1024</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX StopOrder</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXStopOrder Processes</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc.num[MonitorStopOrder.exe]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX StopOrder</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXStopOrder User Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MonitorStopOrder.exe,utime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX StopOrder</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXTrassa Kernel Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexTrassa.exe,ktime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Trassa</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXTrassa Log Error</name>
                    <type>7</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>logrt[&quot;C:\\Micex\\SiriusClient\\Trassa\MicexTrassa_.*[0-9{1,8}\.log]&quot;,&quot;Ошибка&quot;,,]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>2</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex></delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Trassa</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXTrassa Memory Usage</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexTrassa.exe,wkset,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>b</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1024</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Trassa</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXTrassa Processes</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>0</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc.num[MicexTrassa.exe]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units></units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>1</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Trassa</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
                <item>
                    <name>MICEXTrassa User Time</name>
                    <type>0</type>
                    <snmp_community></snmp_community>
                    <multiplier>1</multiplier>
                    <snmp_oid></snmp_oid>
                    <key>proc_info[MicexTrassa.exe,utime,max]</key>
                    <delay>60</delay>
                    <history>90</history>
                    <trends>365</trends>
                    <status>0</status>
                    <value_type>3</value_type>
                    <allowed_hosts></allowed_hosts>
                    <units>s</units>
                    <delta>0</delta>
                    <snmpv3_securityname></snmpv3_securityname>
                    <snmpv3_securitylevel>0</snmpv3_securitylevel>
                    <snmpv3_authpassphrase></snmpv3_authpassphrase>
                    <snmpv3_privpassphrase></snmpv3_privpassphrase>
                    <formula>0.01</formula>
                    <delay_flex>3600/6-7,00:00-24:00;900/1-5,00:00-09:30;900/1-5,19:00-24:00</delay_flex>
                    <params></params>
                    <ipmi_sensor></ipmi_sensor>
                    <data_type>0</data_type>
                    <authtype>0</authtype>
                    <username></username>
                    <password></password>
                    <publickey></publickey>
                    <privatekey></privatekey>
                    <port></port>
                    <description></description>
                    <inventory_link>0</inventory_link>
                    <applications>
                        <application>
                            <name>MICEX Trassa</name>
                        </application>
                    </applications>
                    <valuemap/>
                </item>
            </items>
            <discovery_rules/>
            <macros/>
            <templates/>
            <screens/>
        </template>
    </templates>
    <triggers>
        <trigger>
            <expression>{Template_MFCGateway:logrt[&quot;C:\\Micex\\MicexClient\\1\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,].str(&quot;Отключение&quot;)}=1&amp;{Template_MFCGateway:logrt[&quot;C:\\Micex\\MicexClient\\1\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,].nodata(300)}=0</expression>
            <name>MICEXClient1 Disconnected on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>MicexClient1 разорвал подключение</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:logrt[&quot;C:\\Micex\\MicexClient\\2\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,].str(&quot;Отключение&quot;)}=1&amp;{Template_MFCGateway:logrt[&quot;C:\\Micex\\MicexClient\\2\\MicexClient_.*[0-9]{8}\.log&quot;, &quot;Отключение&quot;, ,].nodata(300)}=0</expression>
            <name>MICEXClient2 Disconnected on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>MicexClient2 разорвал подключение</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:proc.num[MicexClient.exe].last(0)}&lt;2</expression>
            <name>MICEXClients is not running on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>Запущено меньше 2-х MicexClients.exe</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Order\\MicexOrder_.*[0-9]{8}\.log&quot;, &quot;Ошибка&quot;, ,].str(&quot;Ошибка&quot;)}=1&amp;{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Order\\MicexOrder_.*[0-9]{8}\.log&quot;, &quot;Ошибка&quot;, ,].nodata(300)}=0</expression>
            <name>MICEXOrder Error on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>Ошибка в логе MicexOrder</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:proc.num[MicexOrder.exe].last(0)}&lt;1</expression>
            <name>MICEXOrder is not running on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>MicexOrder не запущен</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Monitor\\MonitorStopOrder_.*[0-9]{8}\.log&quot;, &quot;Соединение с БД Sirius закрыто&quot;, ,].str(&quot;Соединение с БД Sirius закрыто&quot;)}=1&amp;{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Monitor\\MonitorStopOrder_.*[0-9]{8}\.log&quot;, &quot;Соединение с БД Sirius закрыто&quot;, ,].nodata(300)}=0</expression>
            <name>MICEXStopOrder Disconnect on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>Соединение с БД Sirius закрыто приложением MonitorStopOrder</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:proc.num[MonitorStopOrder.exe].last(0)}&lt;1</expression>
            <name>MICEXStopOrder is not running on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>MicexStopOrder не запущен</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Trassa\MicexTrassa_.*[0-9{1,8}\.log]&quot;,&quot;Ошибка&quot;,,].str(&quot;Ошибка&quot;)}=1&amp;{Template_MFCGateway:logrt[&quot;C:\\Micex\\SiriusClient\\Trassa\MicexTrassa_.*[0-9{1,8}\.log]&quot;,&quot;Ошибка&quot;,,].nodata(300)}=0</expression>
            <name>MICEXTrassa Error on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>Ошибка в логе MicexTrassa</description>
            <type>0</type>
            <dependencies/>
        </trigger>
        <trigger>
            <expression>{Template_MFCGateway:proc.num[MicexTrassa.exe].last(0)}&lt;1</expression>
            <name>MICEXTrassa is not running on {HOSTNAME}</name>
            <url></url>
            <status>0</status>
            <priority>4</priority>
            <description>MicexTrassa не запущен</description>
            <type>0</type>
            <dependencies/>
        </trigger>
    </triggers>
    <graphs>
        <graph>
            <name>Summary Memory Usage</name>
            <width>900</width>
            <height>200</height>
            <yaxismin>0.0000</yaxismin>
            <yaxismax>100.0000</yaxismax>
            <show_work_period>1</show_work_period>
            <show_triggers>1</show_triggers>
            <type>1</type>
            <show_legend>1</show_legend>
            <show_3d>0</show_3d>
            <percent_left>0.0000</percent_left>
            <percent_right>0.0000</percent_right>
            <ymin_type_1>0</ymin_type_1>
            <ymax_type_1>0</ymax_type_1>
            <ymin_item_1>0</ymin_item_1>
            <ymax_item_1>0</ymax_item_1>
            <graph_items>
                <graph_item>
                    <sortorder>0</sortorder>
                    <drawtype>0</drawtype>
                    <color>C80000</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_MFCGateway</host>
                        <key>proc_info[MicexClient.exe,wkset,max]</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>1</sortorder>
                    <drawtype>0</drawtype>
                    <color>00C800</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_MFCGateway</host>
                        <key>proc_info[MicexClient.exe,wkset,max]</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>2</sortorder>
                    <drawtype>0</drawtype>
                    <color>0000C8</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_MFCGateway</host>
                        <key>proc_info[MicexOrder.exe,wkset,max]</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>3</sortorder>
                    <drawtype>0</drawtype>
                    <color>C800C8</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_MFCGateway</host>
                        <key>proc_info[MonitorStopOrder.exe,wkset,max]</key>
                    </item>
                </graph_item>
                <graph_item>
                    <sortorder>4</sortorder>
                    <drawtype>0</drawtype>
                    <color>00C8C8</color>
                    <yaxisside>0</yaxisside>
                    <calc_fnc>2</calc_fnc>
                    <type>0</type>
                    <item>
                        <host>Template_MFCGateway</host>
                        <key>proc_info[MicexTrassa.exe,wkset,max]</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>

Параметры для zabbix-agent'а

Для мониторинга логов необходимо чтобы zabbix-agent работать в активном режиме. Для этого:

  • В файле /etc/zabbix/zabbix-agentd.conf должны быть закомментированы следующие строки
    # DisableActive=1
  • Параметр Hostname в файле /etc/zabbix/zabbix-agentd.conf должен с точностью до регистра совпадать с названием хоста на сервере Zabbix
  • Версия сервера и агента Zabbix должны быть не ниже 1.8.13
shljuz_na_mmvb.txt · Последние изменения: 2013/10/23 15:16 (внешнее изменение)
GNU Free Documentation License 1.3
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Яндекс.Метрика