diff --git a/FormMain.kxf b/FormMain.kxf new file mode 100644 index 0000000..e05338b --- /dev/null +++ b/FormMain.kxf @@ -0,0 +1,66 @@ + + + + 611 + 232 + 420 + 331 + ZabbixEasyTool + clBtnFace + DEFAULT_CHARSET + clWindowText + -11 + MS Sans Serif + + False + True + FormMainClose + -1798438912 + 264 + 1.04 + A standard Windows Form. + FormMainMinimize + FormMainRestore + True + True + False + False + 0 + 1 + 0 + 0 + + 96 + 13 + + + + + 0 + 0 + 404 + 84 + 1342308622 + 0 + 0 + DockWidth, DockHeight + + + + + + 0 + 120 + 402 + 134 + 1342373901 + 512 + + + + + + + + + \ No newline at end of file diff --git a/FormSetup.kxf b/FormSetup.kxf new file mode 100644 index 0000000..6a143e0 --- /dev/null +++ b/FormSetup.kxf @@ -0,0 +1,794 @@ + + + + 761 + 298 + 429 + 346 + Setup - ZabbixEasyTool + clBtnFace + DEFAULT_CHARSET + clWindowText + -13 + Arial + + False + poDesktopCenter + True + FormSetupClose + -1798701056 + 256 + 1.04 + Tabbed pages Dialog. + FormSetupMinimize + FormSetupRestore + True + True + False + True + 0 + 1 + 0 + 0 + + 96 + 16 + + + + + 8 + 8 + 396 + 256 + TabSheet1 + 1409482752 + DEFAULT_CHARSET + clWindowText + -13 + Arial + + False + 0 + 1409482752 + 0 + DockWidth, DockHeight + + + + + Zabbix API + + + + + 92 + 36 + 289 + 24 + 0 + https://zabbix.znil.net/api_jsonrpc.php + 1342374016 + 512 + DockHeight + + + + + + 4 + 39 + 82 + 20 + False + URL + clBtnHighlight + False + 1 + False + 1342308610 + 0 + + + + + + + 4 + 71 + 82 + 20 + False + Username + clBtnHighlight + False + 2 + False + 1342308610 + 0 + + + + + + + 92 + 68 + 289 + 24 + 3 + apiuser + 1342374016 + 512 + DockHeight + + + + + + 4 + 103 + 82 + 20 + False + Password + clBtnHighlight + False + 4 + False + 1342308610 + 0 + + + + + + + 92 + 100 + 289 + 24 + 5 + dummy&6 + 1342374048 + 512 + DockHeight + + + + + + 92 + 133 + 139 + 25 + Test Credentials + 6 + clBtnFace + 1342373888 + 0 + DockWidth, DockHeight + + + + + + 4 + 5 + 147 + 18 + False + Credentials + clBtnHighlight + ANSI_CHARSET + clBlack + -16 + Arial + fsUnderline + False + False + 7 + False + 1342308608 + 0 + + + + + + + 242 + 134 + 139 + 23 + False + not tested + clSilver + False + 8 + False + 1350697729 + 0 + + + + + + + + + Maintenance 1 + + + + + 4 + 5 + 147 + 18 + False + Durations + clBtnHighlight + ANSI_CHARSET + clBlack + -16 + Arial + fsUnderline + False + False + 0 + False + 1342308608 + 0 + + + + + + + 4 + 29 + 121 + 182 + 16 + 1 + 1352859651 + 512 + + + + + + + + + Trigger + DEFAULT_CHARSET + clWindowText + -13 + Arial + + False + + + + + 4 + 5 + 147 + 18 + False + Trigger severities + clBtnHighlight + ANSI_CHARSET + clBlack + -16 + Arial + fsUnderline + False + False + 0 + False + 1342308608 + 0 + + + + + + + 4 + 31 + 82 + 20 + False + Not classified + clBtnHighlight + False + 1 + False + 1342308610 + 0 + + FormSetupTriggerLabelNotclassified + + + + + + 92 + 28 + 185 + 24 + 2 + Not classified + 1342374016 + 512 + DockHeight + + + + + + 284 + 28 + 24 + 24 + False + clDefault + False + 3 + False + 1342308608 + 0 + + + + + + + 316 + 28 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 4 + 97AAB3 + 1342374016 + 512 + DockHeight + + + + + + 4 + 63 + 82 + 20 + False + Infomation + clBtnHighlight + False + 5 + False + 1342308610 + 0 + + + + + + + 92 + 60 + 185 + 24 + 6 + Information + 1342374016 + 512 + DockHeight + + + + + + 284 + 60 + 24 + 24 + False + clGradientActiveCaption + False + 7 + False + 1342308608 + 0 + + + + + + + 316 + 60 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 8 + 7499FF + 1342374016 + 512 + DockHeight + + + + + + 4 + 95 + 82 + 20 + False + Warning + clBtnHighlight + False + 9 + False + 1342308610 + 0 + + + + + + + 92 + 92 + 185 + 24 + 10 + Warning + 1342374016 + 512 + DockHeight + + + + + + 284 + 92 + 24 + 24 + False + clFuchsia + False + 11 + False + 1342308608 + 0 + + + + + + + 316 + 92 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 12 + FFC859 + 1342374016 + 512 + DockHeight + + + + + + 4 + 127 + 82 + 20 + False + Average + clBtnHighlight + False + 13 + False + 1342308610 + 0 + + + + + + + 92 + 124 + 185 + 24 + 14 + Average + 1342374016 + 512 + DockHeight + + + + + + 284 + 124 + 24 + 24 + False + clYellow + False + 15 + False + 1342308608 + 0 + + + + + + + 316 + 124 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 16 + FFA059 + 1342374016 + 512 + DockHeight + + + + + + 4 + 159 + 82 + 20 + False + High + clBtnHighlight + False + 17 + False + 1342308610 + 0 + + + + + + + 92 + 156 + 185 + 24 + 18 + High + 1342374016 + 512 + DockHeight + + + + + + 284 + 156 + 24 + 24 + False + clMaroon + False + 19 + False + 1342308608 + 0 + + + + + + + 316 + 156 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 20 + E97659 + 1342374016 + 512 + DockHeight + + + + + + 4 + 191 + 82 + 20 + False + Disaster + clBtnHighlight + False + 21 + False + 1342308610 + 0 + + + + + + + 92 + 188 + 185 + 24 + 22 + Disaster + 1342374016 + 512 + DockHeight + + + + + + 284 + 188 + 24 + 24 + False + clRed + False + 23 + False + 1342308608 + 0 + + + + + + + 316 + 188 + 65 + 25 + ANSI_CHARSET + clWindowText + -15 + Courier New + + False + 24 + E45959 + 1342374016 + 512 + DockHeight + + + + + + + + Intervals + DEFAULT_CHARSET + clWindowText + -11 + MS Sans Serif + + False + + + + + + TabSheet1 + DEFAULT_CHARSET + clWindowText + -11 + MS Sans Serif + + -1 + False + + + + + + + + 166 + 272 + 75 + 25 + &OK + 1342242816 + 1 + FormSetupButtonOKClick + clBtnFace + 1342373888 + 0 + DockWidth, DockHeight + + + + + + 246 + 272 + 75 + 25 + &Cancel + 1342242816 + 2 + FormSetupButtonCancelClick + clBtnFace + 1342373888 + 0 + DockWidth, DockHeight + + + + + + 328 + 272 + 75 + 25 + &Help + 1342242816 + 3 + FormSetupButtonHelpClick + clBtnFace + 1342373888 + 0 + DockWidth, DockHeight + + + + + \ No newline at end of file diff --git a/ZabbixEasyTool.au3 b/ZabbixEasyTool.au3 new file mode 100644 index 0000000..d7143fd --- /dev/null +++ b/ZabbixEasyTool.au3 @@ -0,0 +1,119 @@ +#include +#include +#include +#include +#include +#include +AutoItSetOption("MustDeclareVars", 1) +Opt("GUIOnEventMode", 1) + +#Region Variablen +; ##################################################################################### +; ## ## ### ######## #### ### ######## ## ######## ## ## +; ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## +; ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## +; ## ## ## ## ######## ## ## ## ######## ## ###### ## ## ## +; ## ## ######### ## ## ## ######### ## ## ## ## ## #### +; ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### +; ### ## ## ## ## #### ## ## ######## ######## ######## ## ## +;~ #################################################################################### +#EndRegion Variablen + +#Region Funktionen +; ############################################################################################################################################################################################### +; ######## ## ## ## ## ## ## ######## #### ####### ## ## ######## ## ## +; ## ## ## ### ## ## ## ## ## ## ## ### ## ## ### ## +; ## ## ## #### ## ## ## ## ## ## ## #### ## ## #### ## +; ###### ## ## ## ## ## ##### ## ## ## ## ## ## ## ###### ## ## ## +; ## ## ## ## #### ## ## ## ## ## ## ## #### ## ## #### +; ## ## ## ## ### ## ## ## ## ## ## ## ### ## ## ### +; ## ####### ## ## ## ## ## #### ####### ## ## ######## ## ## +; ############################################################################################################################################################################################### +Func FormMainClose() + Exit +EndFunc +Func FormMainMinimize() + +EndFunc +Func FormMainRestore() + +EndFunc + +Func FormSetupButtonCancelClick() + +EndFunc +Func FormSetupButtonHelpClick() + +EndFunc +Func FormSetupButtonOKClick() + +EndFunc +Func FormSetupClose() + +EndFunc +Func FormSetupMinimize() + +EndFunc +Func FormSetupRestore() + +EndFunc +#EndRegion Funktionen + + + +; ############################################################################################################################################################################################### +; ###### ## ## #### +; ## ## ## ## ## +; ## ## ## ## +; ## #### ## ## ## +; ## ## ## ## ## +; ## ## ## ## ## +; ###### ####### #### +; ############################################################################################################################################################################################### + + + +Global $FormMain, $FormMainPicStatus, $FormMainListViewTriggers +#Region ### START Koda GUI section ### Form=C:\_AutoIt\ZabbixEasyTool\FormMain.kxf +$FormMain = GUICreate("ZabbixEasyTool", 405, 293, 611, 232, BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_THICKFRAME), BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) +GUISetOnEvent($GUI_EVENT_CLOSE, "FormMainClose") +GUISetOnEvent($GUI_EVENT_MINIMIZE, "FormMainMinimize") +GUISetOnEvent($GUI_EVENT_RESTORE, "FormMainRestore") +$FormMainPicStatus = GUICtrlCreatePic("", 0, 0, 404, 84) +$FormMainListViewTriggers = GUICtrlCreateListView("", 0, 120, 402, 134) +GUISetState(@SW_SHOW) +#EndRegion ### END Koda GUI section ### + + + +Opt("GUIOnEventMode", 1) +#Region ### START Koda GUI section ### Form=C:\_AutoIt\ZabbixEasyTool\FormSetup.kxf +$FormSetup = GUICreate("Setup - ZabbixEasyTool", 414, 308, -1, -1) +GUISetOnEvent($GUI_EVENT_CLOSE, "FormSetupClose") +GUISetOnEvent($GUI_EVENT_MINIMIZE, "FormSetupMinimize") +GUISetOnEvent($GUI_EVENT_RESTORE, "FormSetupRestore") +$FormSetupPageControl = GUICtrlCreateTab(8, 8, 396, 256) +$TabSheet1 = GUICtrlCreateTabItem("Zabbix API") +$TabSheet2 = GUICtrlCreateTabItem("Maintenance") +$TabSheet3 = GUICtrlCreateTabItem("Trigger") +GUICtrlCreateTabItem("") +$FormSetupButtonOK = GUICtrlCreateButton("&OK", 166, 272, 75, 25) +GUICtrlSetOnEvent($FormSetupButtonOK, "FormSetupButtonOKClick") +$FormSetupButtonCancel = GUICtrlCreateButton("&Cancel", 246, 272, 75, 25) +GUICtrlSetOnEvent($FormSetupButtonCancel, "FormSetupButtonCancelClick") +$FormSetupButtonHelp = GUICtrlCreateButton("&Help", 328, 272, 75, 25) +GUICtrlSetOnEvent($FormSetupButtonHelp, "FormSetupButtonHelpClick") +GUISetState(@SW_SHOW) +#EndRegion ### END Koda GUI section ### + + + + + + + +While 1 + Sleep(100) +WEnd + +