I know that Servers Alive can handle any error level as I once had a check that had multiple error levels. Since then a Com check was released to replace that one. Also my script was returning 1 when it should have been returning 0.
All of that being said it works fine today. The Salive server installed windows updates and rebooted last night. I also rebooted the server (kms) that it was checking against due to some other configuration changes. Then I had password issues with the mapped drive. Now that I got all of that resolved the check is working fine. No idea what fixed it in the end. I did get a return of 4 after creating 4 files in the mail queue directory. Thank you for your help. Jason Passow Mississippi Welders Supply http://www.mwsco.com jas...@mwsco.com ph: (507) 494-5178 fax: (507) 454-8104 -------------------------------------------------------------------------------- From: Mark Perry [mailto:mark.pe...@telephoneticsvip.co.uk] To: Servers Alive Discussion List [mailto:sal...@woodstone.nu] Sent: Fri, 14 Aug 2009 03:15:16 -0500 Subject: RE: [SA-list] Error Level check Doesnât SA only deal with 0 or 1 though to denote success and failure of the check? Your script will return all kinds of values, so SA will either say the check failed in the case of a 0 or convert a positive number to a 1 to denote failure. I could well be wrong as I havenât used the errorlevel check for quite some time due to its limitations so it could all have changed. From: Servers Alive Discussion List [mailto:salive@woodstone.nu (mailto:salive@woodstone.nu)] On Behalf Of Jason Passow Sent: 13 August 2009 21:50 To: Servers Alive Discussion List Subject: [SA-list] Error Level check I have an error level check that is not working. When I run it from the command line it works. When I run it from Server's Alive it gives a 1. The check is a batch file that exits with a code. When run from the command line I can echo back the errorlevel and it is correct. Server's alive always returns 1. Following is batch file: @echo off net use k: \\kms\kerio /yes cd k:\store\queue\ FOR /f "TOKENS=*" %%F in ('dir /s /b /a-d k:\store\queue\^|find "" /c /v') DO SET TOTAL=%%F exit %TOTAL% Jason Passow Mississippi Welders Supply http://www.mwsco.com (http://www.mwsco.com) jas...@mwsco.com (mailto:jas...@mwsco.com) ph: (507) 494-5178 fax: (507) 454-8104 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. -------------------------------------------------------------------------------- Telephonetics VIP is a limited company registered in England and Wales. Registered number: 2831215. Registered office: 7th Floor, Hamilton House, 111 Marlowes, Hemel Hempstead, Hertfordshire, HP1 1BB. The disclaimer available at: http://www.telephoneticsvip.co.uk/telephoneticsvip/emaildisclaimer.jsp (http://www.telephoneticsvip.co.uk/telephoneticsvip/emaildisclaimer.jsp) , applies to this message and any associated files. -------------------------------------------------------------------------------- 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.