CFML to check the status of my server...

Hello
I have 3 nameservers and 2 Web servers and 1 SQL Server all to separate IP #' s. I have a set of tools to admin for several websites and I wanted to add an auditor of State to warn users if a given server has been disconnected before they tried to admin their sites (or disable functions that depend on the parity of file etc.) At first, I tried to find CFML 'ping' on servers but no luck. Then I thought skip control of name servers and just check the Web servers. So I put a file on every server I have a cfinclude. I then remembered that I can't use an IP address with cfinclude. So I used an IFRAME to include the file of the intellectual/dir property I wanted. I have this wrapped in a cftry/cfcatch block but of course, failure is page not found when the server is offline and is not a direct cfinclude. So, if I cfinclude a page with a call to the IFRAME a page from IP address and the server is down I get a broken IFRAME. Is there any var CGI or readable by CFML 404 return info I can check for failure to report, rather than missing page error? OR, is there an easier way and smarter to cela? See my current code below:

Figured it out. See final code below.

Tags: ColdFusion

Similar Questions

  • routine to check the status of connecton and perform actions

    I'm looking for a way to check the status of a server about if it is connected or in maintenance mode after I reload a host.

    Here is the excerpt I got so far

    Do

    {

    $GETHOST = get-vmhost $ESXHOST

    $GETSTATE = $GETHOST. State

    If ($GETSTATE - eq 'Maintenance' - or $GETSTATE - eq 'CONNECTED')

    {

    $CONNECT = $True

    }

    on the other

    {

    $CONNECT = $False

    }

    } until ($CONNECT = $True)

    The erroractionpreference will continue: $ErrorActionPreference = "continue".

    But I can't get it to work properly, it does not work after the first cheque and there is the loop.

    Who has a good idea in order to solve this problem?

    Rob, your test in the until loop is not correct.

    This should be "-eq ' instead of '='.

    do{
         $GETHOST = get-vmhost $ESXHOST
         $GETSTATE = $GETHOST.State
    
         if ($GETSTATE -eq "Maintenance" -or $GETSTATE -eq "CONNECTED"){
              $CONNECT = $True
         }
         else{
              $CONNECT = $False
         }
    }until($CONNECT -eq $True)
    
  • Check the status of voice on the 4.0 unit cards (3)

    Hello

    I would like to know how can I test if the voice cards are correctly installed and setup of the unit has completed the installation of the voice card successfully?

    As far as I know is to open the DCM program and check the status of each voice card. Are there other means or tools to check voice cards in more detail?

    Moreover, I found the in Device Manager, the server could only recognize the cards as the unknown PCI devices. Is this normal?

    Thank you

    ---

    Ray

    DCM confirms that the card has been properly installed.

    Regarding the unknown PCI error, it is normal.

    "Note that if you view a voice card using the Windows Device Manager, the card can be displayed as an unknown device PCI with a warning indicating that the drivers for the device are not installed. A found new hardware wizard may also appear for each card during installation or to restart the computer in Cisco Unity. These conditions are the two expected behavior and do not indicate an error or a condition requiring action. You can disable the hardware detected Wizard to prevent it from appearing at restarting the Cisco Unity computer."

    http://www.Cisco.com/en/us/products/SW/voicesw/ps2237/products_installation_guide_chapter09186a00801ba4b6.html#1505050

    H. M.

  • SDK API to use to check the status of the host after RebootHost_Task API perl for VMware

    I use the RebootHost_Task API, ping the server ESX to check if it is in place (using the Net::Ping module), then using ExitMaintenanceMode_Task to get out of the mode of maintenance for the ESX Server.

    I sometimes lack of InvalidHostConnectionState when I trigger ExitMaintenanceMode_Task. This is because even if the ESX host is to ping requests, the SOAP request has failed. What Vmware perl API SDK can be used to check the status of the host before triggering the aPI ExitMaintenanceMode_Task

    Probably the best way is to check the HostSystem runtime.connectionState.

    $host = Vim::find_entity_view (view_type-online 'HostSystem', properties-online ['name', 'runtime.connectionState'], filter => {-online $host_name 'name'});

    $connected = 0;

    until the ($connected) {}

    $host-> update_view_data();

    $connected = $host-> {'runtime.connectionState'};

    # Add a timeout here break

    }

    #.. .do something with newly restarted host

    I also used the runtime.bootTime in the past, where I waited for the value is longer than the previous string XSD time recorded before the restart request (with a long timeout to avoid problems).  It's better than the connectionState option since it manages the window between the restart request and the actual restart.  It * doesn't * updated until the host is connected again (and available to call you to leave the maintenanceMode).

    These values using works even when the host is not connected (cached by the vCenter API service), so you can wait for them to change (and in the case of connectionState, once again).  You'll just take into account the window of the application restart and real reboot before you start querying using connectionState.

    You can probably drop your logic of ping, so if encode you correctly around the State API variables for the host.

  • Simple way to check the status of EPM web services

    Hi all

    I need a shell script that would check the status of all EMP web services (HSS, APS and EAS for now)...

    --

    I notice that the content of the below URL provides a way to check the status of the workspace:

    http://Server1:28080 / status/work space

    <? XML version = "1.0" encoding = "UTF-8"? >

    <Status >

    "<Initialization State="LOAN" attemptCount="1"/ > " "

    <Code >0 < /Code >

    <Message >workspace runs normally. < /Message >

    <Products >

    <Product >bpm < /product >

    <Product >workshop < /product >

    <Product >APS < /product >

    < /Products >

    < /status >


    Note that server1 run HSS, APS and EAS.

    The below URL is not very informative...

    http://Server1:28080 / status

    Status: Active

    -> Someone knows of other ways / URL that can provide a summary of the status of the managed servers? I intend to use a shell script to analyze the rest of these URLs in order to assess the health of services... I guess that there is a way of using WLST to check the status of the managed server, as these services are controlled via the Console of Administration WebLogic web app.

    Thank you!

    Have a read of the following Oracle support doc - "Troubleshooting Oracle Hyperion Enterprise Performance Management 11.1.2.0 or 11.1.2.1 11.1.2.2 utilities 11.1.2.3 [Video] (Doc ID 1303200.1).

    He has a list of URLS to check the status of web applications.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Is there a way to check the status of the battery on an iPad 4gen?

    Is there a way to check the status of the battery on my iPad 4gen?

    Make a booking Genius Bar at your local Apple store and they can run a free diagnostic on the iPad that will determine the State of the battery.

    You will need for your Apple ID to make the reservation:

    http://www.Apple.com/retail/Geniusbar/

  • Checking the status of communication with NI DAQmx or NI6143

    Hello world
     
    I'm working on checking the status of communication with NI DAQmx or NI6143 in Microsoft Visual Studio 6.0 C++ on Windows XP. The communication situation is checked between the DLL and the NOR-DAQmx/NI6143. I wonder what is the command for the control of communication for NI DAQmx or NI6143, and if there is no code available. Any suggestion or advice is greatly appreciated.

    Thanks in advance.

    There are many examples available on your computer that install with NI DAQmx. For examples in C/C++, follow the steps listed in this white paper:

    http://www.NI.com/white-paper/6999/en

    If you are new to data acquisition, that I suggest using LabVIEW. LabVIEW has several examples to begin to use a data acquisition equipment. To find them, open LabVIEW and select help > find examples... > Input and Output material > DAQmx.

    As a note of clarification, NI DAQmx is the driver used to communicate with your device (NI 6143). You do not communicate with OR-DAQmx itself, but use it to send commands and receive data from your device.

    Cameron T

  • Nvy HP 4500: check the status of printing etc.

    How can I check the status of print, for example what are print jobs in the queue?

    Thanks for letting me know who helped @hbf1842.

    Have a wonderful day!

    Think about scoring the Message post that solved the problem like "Accept as Solution" so that someone else in the community of HP who can meet the same or similar problem will know what to do.

    Thank you.

  • How can I check the status of the warranty of my computer laptop vaio?

    How can I check the status of the warranty of my computer laptop vaio?

    alexhrdata,

    Please see this post.

  • ThinkPad R60 could not start beyond "checking the status of the integrated security chip.

    I am unable to load the OS-Windows XP because of the layout I did successfully:

    The system worked more slowly, I went to the troubleshooting of windows... and follow the procedure below:

    "' Help-> Pick a task-> use tools to view your computer information and diagnose problems-> SYSTEM-> Changed CONFIGURATION UTILITY to" START DIAGNOSTICS "and restarted the computer...

    But unfortunately,.

    My system is unable to exceed... "" Checking the status of embedded security chip ' and windows does not load.

    If anyone has the solution pl... answer a few important information lies in...

    Thanks in advance.

    I think that the error message says do not keep your finger on the key during the startup of the whole. Just press it several times in the time the windows logo should normally appear.

  • How do I check the status of the player

    What is the method of checking the status of Player object (as REALIZED, PREFETCHED, etc.) in BB programmatically?

    Player.getState)

  • Where can I check the status of an interruption of a web service from Microsoft?

    Where can I check the status of an interruption of a web service from Microsoft?

    Current service status, please visit https://status.live.com. Please sign in with your Microsoft Account for more specific status related to your service.

  • Check the status of the order and order # confirmation e-mail has not been found.

    Hello

    having my order with my confirmation number but when I check the status of the online order, the order number in the email was not valid you are invited by the site.

    Please help.

    Thank you and best regards,

    Celine

    It could be a problem of activation.

    Please see the below help documents:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Solutions to connection errors, activation and connection with creative Cloud applications and Creative Suite

  • If I buy acrobat from a party private how can I check the status of liscense before buying?

    If I buy acrobat from a party private how can I check the status of liscense before buying?

    1. you can not.

    2. There is a lot of product counterfeit around, even though the seller did not know.

    3. If you do not purchase be sure to get a form to "transfer license" filled in the seller otherwise they maintain (and have not sold) the rights to run the software.

  • I ordered the creative cloud Sunday and received a number control but still cannot open any programs. When I check the status of my order online, he says that he can't find it. Is this normal after 3 days?

    I ordered the creative cloud Sunday and received a number control but still cannot open any programs. When I check the status of my order online, he says that he can't find it. Is this normal after 3 days? I tried to ask in a chat instead of the forum window, but no one answered and after 10 minutes, my screen restarted and closed window cat. It seems a bit frustrating not knowing what happened to my order and not being able to communicate with anyone. This habit with Adobe or are they just of technical problems this week?

    Your subscription to cloud appears on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

Maybe you are looking for

  • You can not post a question here!

    I've been posting and get useful answers, in these Discussions for many years. Today, I posted a technical question about my iPhone, and instead of confirmation of his assignment, I received this error message: You are not allowed to create or update

  • Satellite Pro 6100 - Wireless Lan cannot be activated.

    All afternoon - I have just my hands on a Satellite Pro 6100 and am impressed to bits with it.The only thing that is bothering me is put on the wireless LAN doesn't work. Here is what I tried: (1) use the switch on the left side of the laptop - push

  • prienter does not print

    Hello I have a printer of HP pro 8600 the tech installed wireless and t weas works fine until the computer outage announcement that my compiuter ran troubleshooting program and gthan micro-soft has done more than 199 upgrads and stpped printer work,

  • How to burn audio files to CD in custom order

    Is there a recording program that will allow me to file record music, 'coded' and not in alphabetical order? I can record them scrambled, but when they play, they play in order A to Z... This is the way that they wrap the disk... Thanx

  • Print Spooler service stops still.

    I am facing a very grim situation, because of the Vista PCs always Printer Spooler service stops. After stopping these services all usury priters hidden and I can't add a printer. Aftet I I restart manually from the services but a few seconds it stop