Changeset 805
- Timestamp:
- Sep 13, 2013, 4:09:14 PM (12 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/mkmsg.cmd
r654 r805 1 1 @echo off 2 edit .\rc\lang\smbmon_de.mkm3 edit .\rc\lang\smbmon_en.mkm4 edit .\rc\lang\smbmon_sv.mkm5 edit .\rc\lang\smbmon_fr.mkm6 edit .\rc\lang\smbmon_es.mkm7 2 mkmsgf .\rc\lang\smbmon_de.mkm smbmon_de.msg 8 3 mkmsgf .\rc\lang\smbmon_en.mkm smbmon_en.msg -
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r703 r805 33 33 SMM0028I: wenn minimiert 34 34 SMM0029I: WPS Methode zum Starten/Stoppen/Neustarten/Neu laden benutzen 35 SMM0030 ?:35 SMM0030I: Zombie-Prozesse feststellen 36 36 ; Daemons Context menu 37 37 SMM0031I: Darstellung -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r703 r805 33 33 SMM0028I: when minimized 34 34 SMM0029I: Use WPS method to Start/Stop/Restart/Reload 35 SMM0030 ?:35 SMM0030I: Detect zombies 36 36 ; Daemons Context menu 37 37 SMM0031I: View -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r703 r805 33 33 SMM0028I: mientras est minimizado 34 34 SMM0029I: Utilizar WPS mtodo para Iniciar/Parar/Reiniciar/Recargar 35 SMM0030 ?:35 SMM0030I: Detectar zombies 36 36 ; Daemons Context menu 37 37 SMM0031I: Ver -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r703 r805 35 35 SMM0028I: si rduit 36 36 SMM0029I: Utilisez WPS mthode pout dmarrage/arrt/redmarrage/rechargement 37 SMM0030 ?:37 SMM0030I: Dtecter zombies 38 38 ; Daemons Context menu 39 39 SMM0031I: Afficher -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r703 r805 33 33 SMM0028I: vid minimerad 34 34 SMM0029I: Anvnd WPS metod fr att Start/Stop/Omstart/Omladdning 35 SMM0030 ?:35 SMM0030I: Identifiera Zombies 36 36 ; Daemons Context menu 37 37 SMM0031I: Vy -
trunk/guitools/smbmon/smbmon.rc
r654 r805 10 10 icon 47 .\rc\icons\daemon_off.ico 11 11 icon 48 .\rc\icons\pid.ico 12 icon 49 .\rc\icons\zombie.ico 12 13 BITMAP 111 .\rc\throbber\eBall_01.bmp 13 14 BITMAP 112 .\rc\throbber\eBall_02.bmp -
trunk/guitools/smbmon/smbmon.vrp
r797 r805 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,4083,11226,7372,6589 10 VRXWindow: __VREToolsWindow,1,2156,1494,547 4,166110 VRXWindow: __VREToolsWindow,1,2156,1494,5477,1659 11 11 VRXWindow: __VREWindListWindow,1,964,11708,3132,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_DAEMONS,1 15 UserWindow: SW_SETTINGS,1 -
trunk/guitools/smbmon/smbmon.vrx
r797 r805 330 330 ok = VRSet("PB_Reload", "Enabled", VRFileExists(samba.!smbcmd)) 331 331 332 ok = VRSet("CN_Daemons", "View", DaemonView) 333 ok = VRSet("CN_smbtree", "View", TreeView) 334 ok = VRSet("CB_NoMsgBox","Set", NoMsgBox) 335 ok = VRSet("CB_WPSStartStop","Set", WPSStartStop) 332 ok = VRSet("CN_Daemons", "View", DaemonView) 333 ok = VRSet("CN_smbtree", "View", TreeView) 334 ok = VRSet("CB_NoMsgBox", "Set", NoMsgBox) 335 ok = VRSet("CB_WPSStartStop", "Set", WPSStartStop) 336 ok = VRSet("CB_DetectZombies","Set", DetectZombies) 336 337 337 338 call _INILayoutRead "CN_Users" … … 423 424 if Font.!Status = "" then Font.!Status = "9.WarpSans" 424 425 425 Intervall = VRGetIni( "Settings", "Intervall", OurINI )426 Intervall = VRGetIni( "Settings", "Intervall", OurINI,'NoClose') 426 427 if Intervall = "" then Intervall = 60 427 428 428 IntervallMin = VRGetIni( "Settings", "IntervallMin", OurINI )429 IntervallMin = VRGetIni( "Settings", "IntervallMin", OurINI,'NoClose') 429 430 if IntervallMin = "" then IntervallMin = 180 430 431 431 CurrentPageNr = VRGetIni( "Settings", "CurrentPageNr", OurINI )432 CurrentPageNr = VRGetIni( "Settings", "CurrentPageNr", OurINI,'NoClose') 432 433 if CurrentPageNr = "" then CurrentPageNr = 4 433 434 434 DaemonView = VRGetIni( "Settings", "DaemonView", OurINI )435 DaemonView = VRGetIni( "Settings", "DaemonView", OurINI,'NoClose') 435 436 if DaemonView = "" then DaemonView = "Detail" 436 437 437 TreeView = VRGetIni( "Settings", "TreeView", OurINI )438 TreeView = VRGetIni( "Settings", "TreeView", OurINI,'NoClose') 438 439 if TreeView = "" then TreeView = "IconTree" 439 440 440 NoMsgBox = VRGetIni( "Settings", "NoMsgBox", OurINI )441 NoMsgBox = VRGetIni( "Settings", "NoMsgBox", OurINI,'NoClose') 441 442 if NoMsgBox = "" then NoMsgBox = 1 442 443 443 WPSStartStop = VRGetIni( "Settings", "WPSStartStop", OurINI )444 WPSStartStop = VRGetIni( "Settings", "WPSStartStop", OurINI,'NoClose') 444 445 if WPSStartStop = "" then WPSStartStop = 1 446 447 DetectZombies = VRGetIni( "Settings", "DetectZombies", OurINI,'NoClose') 448 if DetectZombies = "" then DetectZombies = 0 445 449 446 450 options.!debug = VRGetIni( "Options", "Debug", OurINI) … … 490 494 ok = VRSetIni( "Settings", "WPSStartStop", WPSStartStop, OurINI,'NoClose') 491 495 ok = VRSetIni( "Settings", "BigIcons", \VRGet("CN_SMBTREE", "MiniIcons"),OurINI,'NoClose') 496 ok = VRSetIni( "Settings", "DetectZombies",DetectZombies, OurINI,'NoClose') 492 497 493 498 ok = VRSetIni( "Options", "Debug", options.!debug, OurINI, 'NoClose' ) … … 589 594 CALL NLVSetText 'Page_6', 'Hinttext', 60 */ 590 595 591 CALL NLVSetText 'DT_Refresh', 'Caption', 25 592 CALL NLVSetText 'DT_RefreshMin', 'Caption', 25 593 CALL NLVSetText 'DT_Intervall', 'Caption', 26 594 ok = VRSet("DT_IntervallMin","Caption", NLVGetMessage(26)' 'NLVGetMessage(28)) 595 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 596 CALL NLVSetText 'CB_WPSSTARTSTOP','Caption', 29 596 CALL NLVSetText 'DT_Refresh', 'Caption', 25 597 CALL NLVSetText 'DT_RefreshMin', 'Caption', 25 598 CALL NLVSetText 'DT_Intervall', 'Caption', 26 599 ok = VRSet("DT_IntervallMin", "Caption", NLVGetMessage(26)' 'NLVGetMessage(28)) 600 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 601 CALL NLVSetText 'CB_WPSSTARTSTOP', 'Caption', 29 602 CALL NLVSetText 'CB_DetectZombies','Caption', 30 597 603 598 604 CALL NLVSetText 'ContextMenu_Daemons_Sort', 'Caption', 35 … … 846 852 end 847 853 smbdpidhandle.I = VRMethod( "CN_Daemons", "AddRecord", smbdhandle, , 'PID 'word(smbdpids,I)' ('d2x(word(smbdpids,I))'x)', "$48") 854 /* we ping all smbd.exe except the first one */ 855 if DetectZombies = 1 & I > 1 then do 856 ok = VRSet("Main", 'Pointer', 'Wait' ) 857 address cmd samba.!smbcontrolexe' 'word(smbdpids,I)' ping --timeout=2 --debuglevel=0 2>'samba.!error' 1>'samba.!msg 858 ok = VRSet("Main", 'Pointer', '<default>' ) 859 response = linein(samba.!msg) 860 ok = stream(samba.!msg,'c','close') 861 if pos('PONG', response) = 0 then do /* we have a zombie */ 862 ok = VRMethod( "CN_Daemons", "SetRecordAttr", smbdpidhandle.I,"Icon", "$49") 863 say " Found Zombie "word(smbdpids,I) 864 end 865 end 848 866 if Username <> "" then do 849 867 smbdpidhandle.I.user = VRMethod( "CN_Daemons", "AddRecord", smbdpidhandle.I, , Username, "$44") … … 1217 1235 if options.!Debug then ok = VRREdirectStdIO("ON") 1218 1236 else ok = VRREdirectStdIO("OFF") 1237 return 1238 1239 /*:VRX CB_DetectZombies_Click 1240 */ 1241 CB_DetectZombies_Click: 1242 DetectZombies = VRGet("CB_DetectZombies","set") 1243 say 'DetectZombies = "'DetectZombies'"' 1219 1244 return 1220 1245 … … 2229 2254 SW_FILES_Init: 2230 2255 window = VRInfo( "Object" ) 2231 if( \VRIsChildOf( window, " Notebook" ) ) then do2256 if( \VRIsChildOf( window, "TDL" ) ) then do 2232 2257 call VRMethod window, "CenterWindow" 2233 2258 call VRSet window, "Visible", 1 … … 2260 2285 SW_SERVICE_Init: 2261 2286 window = VRInfo( "Object" ) 2262 if( \VRIsChildOf( window, " Notebook" ) ) then do2287 if( \VRIsChildOf( window, "TDL" ) ) then do 2263 2288 call VRMethod window, "CenterWindow" 2264 2289 call VRSet window, "Visible", 1 … … 2291 2316 SW_SETTINGS_Init: 2292 2317 window = VRInfo( "Object" ) 2293 if( \VRIsChildOf( window, " Notebook" ) ) then do2318 if( \VRIsChildOf( window, "TDL" ) ) then do 2294 2319 call VRMethod window, "CenterWindow" 2295 2320 call VRSet window, "Visible", 1 … … 2322 2347 SW_SMBTREE_Init: 2323 2348 window = VRInfo( "Object" ) 2324 if( \VRIsChildOf( window, " Notebook" ) ) then do2349 if( \VRIsChildOf( window, "TDL" ) ) then do 2325 2350 call VRMethod window, "CenterWindow" 2326 2351 call VRSet window, "Visible", 1
Note:
See TracChangeset
for help on using the changeset viewer.