CFML to check my Server Status..

Hello,
I have 3 Name servers and 2 Web Servers and 1 SQL server all
at seperate IP #'s. I have a admin toolset for several websites and
I wanted to add a Status checker to alert the users if any given
server was offline before they tried to admin their sites (Or
disable functions that rely on file parity, etc.) At first I tried
to find CFML to "ping" the servers but no luck. Then i thought I
would skip the Nameservers check and just check the webservers. So
I put a file on each server that I could cfinclude. Then i
remembered I can't use an IP address with cfinclude. So I used an
IFRAME to include the file from the IP/dir I wanted. I wrapped this
in a cftry/cfcatch block, but of course the failure is page not
found when the server is offline and is not a direct cfinclude. So
if I cfinclude a page with a IFRAME call to an IP addressed page
and the server is down I get a broken IFRAME. Is there any CGI var
or CFML readable info in a 404 return I can check for to report
failure, rather than missing page error? OR, is there an easier
more intelligent way to do this? See my current code below:

That link was great, it solved most of the problem. I
obviously run a query on the SQL Server to test it, and the CFHTTP
routine worked great for the webservers. Now is their any way to
ping a DNS server? From cf I mean? Below is the trimmed code I
garnered from the EasyCFM link you gave;

Similar Messages

  • Script for Checking the Server Status

    Hi All,
         I just need the script for monitoring the server status through the WLST.My scenario:I have 2 server in Running State.If any one of the server get failed or in not RUNNING state then i use the script for starting that server automatically.I tried some of the script but it is not working properly .If any one have the sample script please share with me.
    Regards,
    Ove.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

  • How to check if server is up?

    I have my own server (using no-ip) with my system but sometimes it might no be up and running, in that case all system should still continue working, and they do, the only problem is the system takes ages to really start - it seems that it keeps checking the server status for a long period of time.
    My Question is: how can I set my JNLP to no keep checking server status if it not up and running?
    Here is my JNLP file:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp
        spec="1.5+"
        codebase="http://_MY_SERVER_/sistemas"    href="SIKGET_INSTALAR-SERVIDOR.jnlp">
        <information>
            <title>Transis</title>
            <vendor>Francisco Vieira Souza</vendor>
            <homepage href="docs/help.html"/>
            <description>ERP Para Transportadoras</description>
            <description kind="short">Transis</description>
            <icon href="imagens/icone_sikget.gif"/>
            <icon href="imagens/sikget-logo.png" kind="splash"/>
            <offline-allowed/>
            <shortcut online="true">
                <desktop/>
                <menu submenu="ERP Transis"/>
            </shortcut>
        </information>
        <security>
            <all-permissions/>
        </security>
        <update check="timeout" policy="always"/>   
        <resources>
            <j2se version="1.5.0+" java-vm-args="-esa -Xnoclassgc -Xms256m -Xmx256m" href="http://java.sun.com/products/autodl/j2se" />
            <jar href="http://_MY_SERVER_/sistemas/SikGet10Y.jar" main="true" download="eager" />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-beanutils.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-collections-3.1.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-digester.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-lang-2.0.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-logging-1.0.3.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-logging.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-logging-api.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/commons-net-ftp-current.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/jakarta-oro-2.0.8.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/firebirdsql-full.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/binding-2.0.1.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/beansbinding-1.2.1.jar"  />   
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/formsrt.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/jasperreports-2.0.4.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/itext-1.3.1.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/jcommon-1.0.0-rc1.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/jdt-compiler.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/jfreechart-1.0.0-rc1.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/Lib.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/looks-2.1.4.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/log4j-1.2.14.jar"  />       
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/swingx-0.8.0.jar"  />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/mail.jar" download="eager" />
            <jar href="http://_MY_SERVER_/sistemas/libs/libs10anos/pop3.jar" download="eager" />
        </resources>
        <application-desc main-class="main.Main"/>
    </jnlp>

    .

  • Store server status....failed

    Hi I recently had a JMS failer, it just stopped working and I noticed my /var directory was maxed out. I found huge log/stats files under /var/opt/SUNWam/stats/, so I moved these to a filesystem with more space so I can examine them later [does anybody know what they monitor and how to configure the monitoring intervals etc]. I restarted the system and then started directory server, I noticed entries were being made to these files [so I think they are ok].
    The big problem now is Messenger's store server status fails so it will not start at all. This is what I get:
    # /opt/SUNWmsgsr/sbin/start-msg
    Connecting to watcher ...
    Launching watcher ...
    Starting ens server ... 1627
    Starting store server .... 1628
    checking store server status ............ failed
    So I got no email :^(
    Does anybody have an idea what might be the problem. Is the store corrupted? how can I fix this?
    Thanks in advance.
    -James

    Thanks Jay what I think happend was the /var went to 100% and mail stopped [I cleared out some am stats/logs]. Now I am not sure why stored would want to write to this partition I have store [all my users] on another disk, but maybe I left a few test accounts on the original default partition. Here is what I got from the logs.
    # more /opt/SUNWmsgsr/log/default
    [25/Oct/2006:15:15:01 -0400] correo msprobe[27193]: General Information: Log created (1161803701)
    [25/Oct/2006:15:15:01 -0400] correo msprobe[27193]: General Warning: alarmid=diskavail|instance=Mboxlist Directory|time=25/Oct/2006:15:15:01 -0400
    |value=0|low=0|high=62|threshold(below)=10|count below threshold=42|warning sent=92
    [25/Oct/2006:15:25:01 -0400] correo msprobe[27202]: General Warning: alarmid=diskavail|instance=default|time=25/Oct/2006:15:25:01 -0400|value=0|lo
    w=0|high=60|threshold(below)=10|count below threshold=42|warning sent=92
    [25/Oct/2006:23:00:00 -0400] correo imexpire[27410]: General Notice: Expire started (0)
    [25/Oct/2006:23:00:23 -0400] correo imexpire[27410]: General Notice: Expire finished
    [26/Oct/2006:10:44:57 -0400] correo stored[1824]: Store Warning: Database snapshot failed: snapshot copy log file failed
    [26/Oct/2006:10:45:34 -0400] correo stored[1824]: Store Critical: Mailbox database error: write: 0xfd9a03e4, 1774: No space left on device
    [26/Oct/2006:11:27:23 -0400] correo imsched[1829]: General Notice: shutting down
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Error: mshttpd process 1827 is running, cannot start/stop stored
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Warning: ims_master process 28043 exited abnormally
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Warning: ims_master process 28049 exited abnormally
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Warning: ims_master process 28165 exited abnormally
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Warning: ims_master process 28163 exited abnormally
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: General Warning: ims_master process 28166 exited abnormally
    [26/Oct/2006:11:27:23 -0400] correo stored[1824]: Store Notice: Cannot stop stored when other message store processes are running. Please stop the
    other message store processes before stopping stored
    [26/Oct/2006:11:29:28 -0400] correo stored[1824]: General Warning: imapd process 1825 exited abnormally
    [26/Oct/2006:11:29:28 -0400] correo stored[1824]: General Warning: popd process 1826 exited abnormally
    [26/Oct/2006:11:29:28 -0400] correo stored[1824]: General Warning: mshttpd process 1827 exited abnormally
    I have checked and stored is not running nor anything by mailsrv. I am not sure where store.pid is?
    There are 2 of those log files:
    # ls /var/opt/SUNWmsgsr/store/mboxlist/
    __db.001 __db.003 __db.005 folderlock log.0000000076 peruser.db subscr.db
    __db.002 __db.004 folder.db log.0000000075 lright.db quota.db
    I have fsck all my disks [var, /opt, /export/home etc] and all is well. I have also been able to start with start-msg:
    sched, ens, dispatcher, job_contriller
    - pop and imap don't start without store.
    I don't know what to do next thanks again
    -james

  • When I try to sign into iCloud from Windows PC I get the message "You can't sign in because of a server error." When I check the iCloud status, all is Green.

    When I try to sign into iCloud from Windows PC I get the message "You can't sign in because of a server error."  When I check the iCloud status, all is Green.  What is the fix?

    Hi spillgar,
    If you are having issues signing in to iCloud from your Windows machine, you may find the following articles helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    iCloud: If you can’t sign in to iCloud.com
    http://support.apple.com/kb/ph2611
    Regards,
    - Brenden

  • Need a bat script to check Server status remotly.

    Hi,
    I need bat script to check server status remotly (Ping) for multiple servers. It should generate a txt file for result.
    Thanks.

    Hi Ravi,
    To ping multiple computers and generate report cia cmd, please refer to the script below, the "fnm" is computer name list and the "lnm" is the result, and you can save the script below as .bat file:
    @echo off
    set fnm=d:\test1\computers.txt
    set lnm=d:\test1\ping.txt
    if exist %fnm% goto Label1
    echo.
    echo Cannot find %fnm%
    echo.
    Pause
    goto :eof
    :Label1
    echo PingTest STARTED on %date% at %time% > %lnm%
    echo ================================================= >> %lnm%
    echo.
    for /f %%i in (%fnm%) do call :Sub %%i
    echo.
    echo ================================================= >> %lnm%
    echo PingTest ENDED on %date% at %time% >> %lnm%
    echo ... now exiting
    goto :eof
    :Sub
    echo Testing %1
    set state=alive
    ping -n 1 %1
    if errorlevel 1 set state=dead
    echo %1 is %state% >> %lnm%
    Refer to:
    Explain the Batch script to ping multiple computers
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.

    The command TfsAdmin ProjectServer /RegisterPWA causes next error:
    TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.
    Project Server returned the following error: "Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.".
     (type ProvisionException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.HandleSoapException(SoapException soapException, String errorResourceString)
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.IsDBSchemaProvisioned()
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionManager.Provision()
    I installed SharePoint 2013 and Project Server 2013 as farm and TFS 2012 and my account has permissions everywhere. I read article
    http://msdn.microsoft.com/en-us/library/gg412653.aspx and gave full permissions for TFS account to SQL and Project, Project app pool account to SQL, but still have an error.
    How can I find out what exactly permissions are not enough???

    The problem was in claims authentication. Changed to Windows and all worked out.

  • How can I check the return status of a request using URLConnection?

    Hi,
    I am using the classes URL and URLConnection to connect to a remote server and make a POST request. The code extract is:
    URL u = new URL("http://.....");
    URLConnection con = u.openConnection();
    con.setDoInput(true);
    con.setDoOutput(true);
    con.setUseCaches(false);
    con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    DataOutputStream out = new DataOutputStream(con.getOutputStream());
    out.writeBytes(........);
    out.flush();
    out.close();
    Next, I would like to check the return status of my request. I need to see if the server returned status 200 (OK) or an error (e.g. 404). Is there a way to check this?
    If you are aware of another way I can achieve this whole thing I would be grateful if you could let me know.
    Thanks very much for your help!

    URLConnection doesn't have a getResponseCode
    method...
    But I found a link
    http://bugs.sun.com/bugdatabase/view_bug.do;:WuuT?bug_
    id=4191207
    that helped me found out that there is another class
    called HttpURLConnection:
    ((HttpURLConnection)conn).getResponseCode( )You should read the API:
    http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html#openConnection()
    "If for the URL's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned,..."

  • Question:managed server status display unknown ??

    platform: AS5 weblogic8.16 cluter
    when managed server startup,status ok,but after some days,managed server status is unknown or shutdown in console web
    I check process "ps -ef|grep java" managed server process exit
    and application on managed server is ok
    this is log in domain.log
    ####<2009-9-9 <Warning> <Management> <web3> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <BEA-141138> <Managed Server web03 is disconnected from the admin server. This may be either due to a managed server getting temporarily partitioned or the managed server process exiting.>
    after restart managed server ,status running
    so why managed server status display unknown/shutdown after some days?? how can i solve this problem??

    Status unknown means that node manager can't establish contact with the mgd server. If your server is dropping out of the cluster, that would result in Unknown.
    Your server could be dropping out of the cluster for many, many reasons. If it is always the same server dropping out, that points to a particular node in your cluster.

  • SOA server status

    I am new in SOA 11g.
    I run scripts:
    startWebLogic.cmd
    startManagedWebLogic.cmd soa_server1
    startManagedWebLogic.cmd bam_server1
    Then, I login to the EM.
    Under the Resource Adapters in the left, the oracle-bam(11.1.1) and soa-infra are down.
    Under the BAM, OracleBamServer (bam_server1) is down.
    Others are up.
    Are these server status correct?
    How to change the the status of these servers from down to up?

    Are you able to access SOA Infra/BAM page?
    If not, check your server logs for any exceptions/errors.
    If there are no errors, try starting your servers from EM (You need to run node manager for this operation).

  • Checking the connection Status

    Is anyone using the cocoaDev NetSocket? I try difficulty in checking the connection status using NetSocket...i open the socket and the connection, but when i'm perfmorming some action that waits for a server response, there's no automatic timeout that control if the connection is up or down after many seconds waited by the same action...

    We are using Outlook 2010
    I have removed the entry in the LAB using ADSIEdit following this procedure:
    http://exchangeserverpro.com/remove-default-public-folder-database-exchange-mailbox-database/
    This has resolved the issue there. Why are you opposed to me running this in Production?
    Thanks
    shapi
    I wanted to verify that you weren't using any org forms first!
    Since you are using Outlook2010, why not remove the PF distribution on that 2007 OAB as well?
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Script to check RDP connection status

    Hi all,
    Could anyone provide me a script to check whether multiple remote servers are able to RDP or not. I just want to check the connectivity status. I have checked with past threads available in form, but none has worked for me. Powershell or Batch or VBS scripts
    ... anything would be good....
    I am not that much good at writing scripts.. So please help me.
    Thanks in Advance..
    Vinay..

    Run this script on one of the servers:
    Get-Wmiobject -Class Win32_Terminal -Property *
    It should return a number of information including, fEnableTerminal. For servers that have RDP enabled, fEnableTerminal should be 1, for the servers with RDP not enabled, fEnableTerminal should be 0.
    Once you can confirm that this is the case, I will provide the full script to run this on multiple servers with input from AD query of text file
    That still won't tell you if the TS is accessible.  PortQry or Net Tcp are the fastest and easiest ways to do this.
    Your code also only orks on WS2008R2 and later but, s posted, ill not work on any system.  Have you actually tried it?
    The other bigger issue is that the Win32_Terminal class will always return enabled on any server even if the terminal server is inaccessible and even if it is in Admin mode.  All Servers since 2003 have Terminal Server running by default but not in
    Terminal Server mode.
    PortQry to 3389 will tell us that the TS is alive and available.  Win32_Terminal will report enabled even if the service is stopped.
    Win32_Terminal is only useful to admins and PortQry can be used by anyone.
    The above PowerShell code can be run on any system instead of installing PortQry or other software.
    The original question was "Check RDP connection".  RDP is available on all systems since XP.  The Win32_Terminal class is only available on Server class machines and it does not check to see if the RDP connection is available.
    ¯\_(ツ)_/¯

  • CVP Call Server Status Down in CVP OAMP

    Hi,
    We have installed new CVP server and added it in CVP OAMP server. Call Server is running fine but it is not updating its status on OAMP and showing still down. We have also verified it by putting calls from gateways to this specific CVP server. Please advise how can i get it UP in OAMP. Also advise how can we see the status of Call Server ports through CVP, not through OAMP.
    Regards,
    Hammad.

    Try the following steps
    1- Check if the correct license file is loaded on call server
    2- If an OAMP is showing Partial then check the PIM status is UP
    3- Did you restat both OAMP and newly installed CVP call server after adding it into the OAMP server. If not then restart both the servers and it will come up.
    About the ports for Call Server you can check the ports from the License file you got from cisco for CVP but for VXML there is s path where you can check VXML ports.
    C:\Cisco\CVP\VXMLServer\admin -> run status.bat file

  • Essbase Java Apis- Checking the Load status of Cube

    Hi all,I am using Essbase 7.1 Java Apis.I want to check the Load status of the Cube.I have used the following Api.Cube.getCubeLoadStatus() However there is problem with this Api.If the Cube is not loaded then when I use this Api for the first time, it shows the status as "Not Loaded".However subsequent calls to the same Api shows that the same Cube is "Loaded".Clearly use of this Api results in loading of a Cube which was initilally unloaded.(I belive, in Administrative console right click on Cube -> Stop results in unloading of the Cube)Please answer my following questions :1) Which Api should I use to check the Cube's load status without affecting its current load state.2)I tried using Cube.isActive() Api.However this Api throws an exception for all states of the Cube.3)What is the diffence between a "Loaded" Cube and an "Active" CubeThanks

    1) Which Api should I use to check the Cube's load status without affecting its current load state. <<I don't know the answer to this one.. It seems to me that it may be a bug. You should report this one to Hyperion Tech Support.>>2)I tried using Cube.isActive() Api.However this Api throws an exception for all states of the Cube. <<I haven't tried this one either..>>3)What is the diffence between a "Loaded" Cube and an "Active" Cube <<Finally one I think I can answer.. A loaded cube means, I believe, that the cube has been loaded by the server and is immediately available. An 'active' cube, on the other hand, is the terminology used to specify that a specific connection is connected to, and using, a specific cube. I know several of the VB/C APIs specify that you must set a cube active (on the connection) before you can use the API.Tim TowApplied OLAP, Inc

  • Server Status Widget Login

    I am having an issue logging into the Server Status Widget. The login window asks for 3 things ...1) Server:  2) User Name:  3) Password:  ...what do I type in box 1? The name given to my server or the URL? And can box 2 & 3 be any user with administrative privileges or just the server admin name and password? I've tried just about every combination and I always come up with a "Network Error" message.

    Enter the DNS host name for the target server, an administrative user, and the password associated with that user.  Just as you would expect.
    This then implies an obvious mistake with the credentials and which you've likely already verified and ruled out, or that there's some sort of a network or DNS or firewall issue here (which tracks with that "network error"), or you're attempting to monitor across (too many) Mac OS X versions, or a dependency on some some other configuration detail that's been omitted here.
    This widget is based on Server Preferences, and all of the Server Admin tools are very sensitive to invalid DNS configurations, and to problems with the local network configuration.
    If you're attempting this monitoring remotely, please configure the widget directly on the server, and see if that works; if you can monitor the status directly from the dashboard on the server.
    And also to verify your DNS and (secondary to checking DNS) your local network, launch Terminal.app and post the output of sudo changeip -checkhostname issued on the server, and also of dig server.example.com and dig -x server.ip.address issued on the client.

Maybe you are looking for

  • Classic does not run in 10.3.9

    hello, i'm trying to realize why my iMac graphite running 10.3.9 is not able to run the Classic environment. the dialog box says " classic doesn't have translated versions of the files it needs to update in "system forder" on mac hd. does it means my

  • Log in SQLplus Worksheet

    Hi, I have Juts installedOracle 91 and the SQLplus seems to be wking fine .I can log in using scoot /tiger as the user nae /passowrd. I cannot log in the sqlplus worksheet which when i try to connect using the change database connection,i cannot log

  • No sound with facetime

    was using facetime and suddenly there was no sound. i have checked volume - what else can i do? help! the person on the other end can hear me but i cannot hear them.

  • Wacom GD-0912-U driver for Mac OS X 10.9.1

    Hi-- Trying to use my Wacom GD-0912-U with Aperture Need a driver for Mac OS X 10.9.1 (afraid to update to Yosemite :>)) Have been through Wacom community and tried with no luck W 6.1.5-2 6.3.7-3 6.3.9 w3 Anyone here able to help? Thanks for your tim

  • Trying to submit a podcast to iTunes

    I'm trying to submit a podcast to iTunes and I get this error message. Does anyone know what I should be doing differently? "We require that feeds include a title" The url that I am submitting is http://mediumrare.podbus.com/mediumrare/Podcast/rss.xm