RE: [SA-list] Powershell scripts for external checks.
We usually use something along this line to execute the powershell script command inside a ServersAlive check: powershell -WindowStyle Hidden &'D:\Program Files (x86)\Woodstone\Servers Alive\external\serversalive_psscript.ps1' Regards, Parry From: Servers Alive Discussion List [mailto:salive@woodstone.nu] On Behalf Of Carroll, Andrew Sent: Wednesday, December 07, 2016 12:06 PM To: Servers Alive Discussion List Subject: RE: [SA-list] Powershell scripts for external checks. *** Exercise caution. This is an EXTERNAL email. DO NOT open attachments or click links from unknown senders or unexpected email. *** Pieter , Thats great, just the sort of stuff I was after a taking a look at. What is the batch script like that you call this from, or can you now call Powershell scripts directly from within Servers Alive? Regards, Andy From: Servers Alive Discussion List [mailto:salive@woodstone.nu (mailto:salive@woodstone.nu)] On Behalf Of Demeulemeester, Pieter Sent: 06 December 2016 14:46 To: Servers Alive Discussion List Subject: RE: [SA-list] Powershell scripts for external checks. Servers Alive Check type : external (errorlevel); alarm when errorlevel <> 0. An example of a PS-script I use : $RemoteServer=$args[0] $RefValue=1 $Value=Invoke-Command -computername $RemoteServer -ScriptBlock {(get-itemproperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\2.0").Forcefixup} if ($Waarde -eq $RefValue) { write-host "OK. Value ForceFixup is $Value. " exit 0 } else { write-host "Error. Value ForceFixup is $Value, must be $RefValue." exit 1 } The script checks if a registry-key still has value 1. If not it ends with an errorlevel 1 and Servers Alive then generates an error. Kind regards. Pieter From: Servers Alive Discussion List [mailto:salive@woodstone.nu (mailto:salive@woodstone.nu)] On Behalf Of Carroll, Andrew Sent: dinsdag 6 december 2016 14:51 To: Servers Alive Discussion List Subject: [SA-list] Powershell scripts for external checks. Mailing List Users, I have been away from Servers Alive external check development for some time and the version of Servers Alive has moved on a fair bit since I was last doing this sort of work. I have had a quick look on the Servers Alive website for information regarding using Powershell for external checks, as this is now my preferred scripting language, but Im not seeing much on the web site or the email list archives. Is anyone making much use of Powershell for their external checking processes, would anyone be will to give me some ideas of the sort of stuff they are doing and how you are wrapping Powershell scripts up so that they can be called from within Servers Alive for performing external checks. Regards, Andy Andy Carroll | Technical Support Analyst Application Services | CGI T: 44 1745-539109 | 44 7833-299741 andrew.carr...@cgi.com (mailto:andrew.carr...@cgi.com) | cgi-group.co.uk CGI IT UK Limited. A CGI Group Inc. Company Registered Office: 250 Brook Drive, Green Park, Reading RG2 6UA, United Kingdom. Registered in England & Wales - Number 947968 CONFIDENTIALITY NOTICE: Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply e-mail. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu (mailto:salive@woodstone.nu) If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list. Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik. De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle berichten verzonden naar dit adres. Le présent message est envoyé d'une adresse e-mail pour usage professionnel. Les responsables de l'organisation peuvent prendre connaissance de tous les messages envoyés à cette adresse. This message is sent from an e-mail address for professional use only. The persons in charge of the organisation may take note of all messages sent to this address. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu (mailto:salive@woodstone.nu) If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual
RE: [SA-list] Powershell scripts for external checks.
Pieter , Thats great, just the sort of stuff I was after a taking a look at. What is the batch script like that you call this from, or can you now call Powershell scripts directly from within Servers Alive? Regards, Andy From: Servers Alive Discussion List [mailto:salive@woodstone.nu] On Behalf Of Demeulemeester, Pieter Sent: 06 December 2016 14:46 To: Servers Alive Discussion List Subject: RE: [SA-list] Powershell scripts for external checks. Servers Alive Check type : external (errorlevel); alarm when errorlevel <> 0. An example of a PS-script I use : $RemoteServer=$args[0] $RefValue=1 $Value=Invoke-Command -computername $RemoteServer -ScriptBlock {(get-itemproperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\2.0").Forcefixup} if ($Waarde -eq $RefValue) { write-host "OK. Value ForceFixup is $Value. " exit 0 } else { write-host "Error. Value ForceFixup is $Value, must be $RefValue." exit 1 } The script checks if a registry-key still has value 1. If not it ends with an errorlevel 1 and Servers Alive then generates an error. Kind regards. Pieter From: Servers Alive Discussion List [mailto:salive@woodstone.nu (mailto:salive@woodstone.nu)] On Behalf Of Carroll, Andrew Sent: dinsdag 6 december 2016 14:51 To: Servers Alive Discussion List Subject: [SA-list] Powershell scripts for external checks. Mailing List Users, I have been away from Servers Alive external check development for some time and the version of Servers Alive has moved on a fair bit since I was last doing this sort of work. I have had a quick look on the Servers Alive website for information regarding using Powershell for external checks, as this is now my preferred scripting language, but Im not seeing much on the web site or the email list archives. Is anyone making much use of Powershell for their external checking processes, would anyone be will to give me some ideas of the sort of stuff they are doing and how you are wrapping Powershell scripts up so that they can be called from within Servers Alive for performing external checks. Regards, Andy Andy Carroll | Technical Support Analyst Application Services | CGI T: 44 1745-539109 | 44 7833-299741 andrew.carr...@cgi.com (mailto:andrew.carr...@cgi.com) | cgi-group.co.uk CGI IT UK Limited. A CGI Group Inc. Company Registered Office: 250 Brook Drive, Green Park, Reading RG2 6UA, United Kingdom. Registered in England & Wales - Number 947968 CONFIDENTIALITY NOTICE: Proprietary/Confidential Information belonging to CGI Group Inc. and its affiliates may be contained in this message. If you are not a recipient indicated or intended in this message (or responsible for delivery of this message to such person), or you think for any reason that this message may have been addressed to you in error, you may not use or copy or deliver this message to anyone else. In such case, you should destroy this message and are asked to notify the sender by reply e-mail. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu (mailto:salive@woodstone.nu) If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list. Dit bericht wordt verzonden vanuit een e-mailadres voor professioneel gebruik. De verantwoordelijken binnen de organisatie kunnen kennis nemen van alle berichten verzonden naar dit adres. Le présent message est envoyé d'une adresse e-mail pour usage professionnel. Les responsables de l'organisation peuvent prendre connaissance de tous les messages envoyés à cette adresse. This message is sent from an e-mail address for professional use only. The persons in charge of the organisation may take note of all messages sent to this address. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu (mailto:salive@woodstone.nu) If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list.
Re: [SA-list] New GUI layout
Hi David, continuing on your MMC layout If you say the groups/checks, then I suppose that the check is or the pretty-name or a little description as we have now in the tree-interface. The center part would then contain all config parameters of the check itself I suppose (just as would be an EDIT of the entry -> check tab?). And what would you see at the right then? And what about the other tabs we currently have in the EDIT screen? dirk On 2016-12-07 09:05, David Wagstaff wrote: > Dirk was asking for suggestions for an updated GUI. > > I know its been around for a while but the Microsoft MMC layout works > very well. > > With the Groups / Checks on the left > > The centre would have the check itself > > And on the right could be dependant on what is selected in the centre > > OR > > Not sure of a layout but what about a client server app with a web > front end? > > David > > David Wagstaff > Systems Engineer > 01543 302253 > david.wagst...@pink.uk.net > http://www.pink.uk.net > > [1] > > [1] > > = > > This e-mail and the information it contains may be privileged and/or > confidential. > It is for the intended addressee(s) only. > The unauthorised use, disclosure or copying of this email, or any > information it contains > is prohibited and could in certain circumstances be a criminal > offence. > If you are not the intended recipient, > please notify systemmanager at pink.uk.net immediately and delete the > message from your system. > > Please note that Pink Home Loans does not enter into any form of > contract by means of Internet email. > None of the staff of Pink Home Loans is authorised to enter into > contracts on behalf of the company in this way. > All contracts to which Pink Home Loans is a party, are documented by > other means. > > Pink Home Loans monitors e-mails to ensure its systems operate > effectively and to minimise the risk of viruses. > Whilst it has taken reasonable steps to scan this email, it does not > accept liability for any virus that it may contain. > > Registered in England and Wales number 2217569. > Registered office Newcastle House,Albany Court,Newcastle Business > Park,Newcastle Upon Tyne,Tyne & Wear. NE4 7YB. > Thank you for your co-operation. > > Pink Home Loans, > > Shire House > Birmingham Road, > Lichfield > WS14 9BW > > Tel: 0330 3030235 > > Pink Home Loans is a trading name of Advance Mortgage Funding Limited > which is authorised and regulated by the Financial Conduct Authority, > registration number 305008. > > > > This message has been scanned for malware by Websense. > www.websense.com [2] > > To unsubscribe send a message with UNSUBSCRIBE in the subject line to > salive@woodstone.nu > If you use auto-responders (like out-of-the-office messages), make > sure that they are not sent to the list nor to individual members. > Doing so will cause you to be automatically removed from the list. > > Links: > -- > [1] http:// > [2] http://www.websense.com/ -- Dirk Bulinckx Servers Alive - http://www.woodstone.nu DNS Hosting on StellarDNS - http://www.stellardns.com To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list.
[SA-list] New GUI layout
Dirk was asking for suggestions for an updated GUI. I know its been around for a while but the Microsoft MMC layout works very well. With the Groups / Checks on the left The centre would have the check itself And on the right could be dependant on what is selected in the centre OR Not sure of a layout but what about a client server app with a web front end? David David Wagstaff Systems Engineer 01543 302253 david.wagst...@pink.uk.net http://www.pink.uk.net (http://) (http://) = This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this email, or any information it contains is prohibited and could in certain circumstances be a criminal offence. If you are not the intended recipient, please notify systemmanager at pink.uk.net immediately and delete the message from your system. Please note that Pink Home Loans does not enter into any form of contract by means of Internet email. None of the staff of Pink Home Loans is authorised to enter into contracts on behalf of the company in this way. All contracts to which Pink Home Loans is a party, are documented by other means. Pink Home Loans monitors e-mails to ensure its systems operate effectively and to minimise the risk of viruses. Whilst it has taken reasonable steps to scan this email, it does not accept liability for any virus that it may contain. Registered in England and Wales number 2217569. Registered office Newcastle House,Albany Court,Newcastle Business Park,Newcastle Upon Tyne,Tyne & Wear. NE4 7YB. Thank you for your co-operation. Pink Home Loans, Shire House Birmingham Road, Lichfield WS14 9BW Tel: 0330 3030235 Pink Home Loans is a trading name of Advance Mortgage Funding Limited which is authorised and regulated by the Financial Conduct Authority, registration number 305008. This message has been scanned for malware by Websense. www.websense.com (http://www.websense.com/) To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list.