domingo, 3 de julio de 2011

Código de PHP para monitorear el estado de Servidores – School – PHD – Hipotecario

Muchas veces necesitamos saber si nuestro Servidor esta caído o no. Una forma sencilla de saberlo es haciendo un script enphp.
Supongamos que nuestro Servidor es el "192.168.0.159" y sabemos que el puerto 80 esta abierto. Entonces en nuestro script colocamos esos datos.
Al final del post coloco un zip "ControlarServidor.zip" donde está el código. Este script generea un log.
Para que verifique el script cada 1 minuto entramos al contrab de linux. Entramos a la consola:
sudo crontab -e

Y colocamos lo siguiente:
# m h dom mon dow command
*1 * * * * curl http://localhost/Utilitarios/src/ControlarServidor.php


Y por último lo guardamos.


Ojo:
  1. Tienen que tener el paquete curl para que les funcione el script si van a ejecutar cada 1 minuto con el crontab.
  2. Tienen que darle permisos de escritura a la carpeta donde generan el log, o si no no les va a crear nada.
Descargar:ControlarServidor.zip
Fuente:Crista Lab

mobile credit card machines for small business dui lawyer phoenix arizona dui attorneys motorcycle lawyer los angeles fort collins car accident attorney structured settlement buyer personal injury attorney memphis buying a structured settlement personal injury accident lawyer personal injury attorney springfield mo houston mesothelioma attorney delaware mesothelioma lawyer mesothelioma lawyers san diego verizon sip michigan motorcycle accident lawyer california insurance car houston motorcycle accident lawyer i need a personal injury lawyer car accident attorneys in los angeles motorcycle accident lawyer san diego mesothelioma survival rates sell my structured settlement sell your annuity mesothelioma lawyers new york annuity cash out mesothelioma lawyer louisiana saip insurance mesothelioma claim broward personal injury attorney businessinternet internet provider business plan houston tx auto insurance mesothelioma compensation workers compensation lawyer los angeles liability insurance quote online cloud development tools motorcycle accident attorneys hosted predictive dialers structured settlement annuity companies mesothelioma attorneys california business internet phones georgia truck accident lawyer selling structured settlements wisconsin mesothelioma attorney florida sex crime lawyer injury attorney dallas small business phone plan personal injury attorney ocala fl selling structured settlement dallas car wreck attorney maryland auto insurance quote workplace accident attorney sell an annuity colorado springs car accident attorney atlanta truck accident attorney structured settlement purchasers auto insurance in seattle florida car insurance company personal injury attorney Palm Beach County small business administration sba auto accident defense attorney personal injury lawyer boca raton fl structured settlements annuities voice phone system baltimore mesothelioma attorneys air conditioning repair frisco masters degree in human resource management structured settlemen mesotheliama internet serious business california motorcycle accident lawyer motorcycle accident lawyer california alabama mesothelioma lawyer mesothelioma attorney california seattle mesothelioma lawyer car cheap insurance uk very mesothelioma suit injury attorney baton rouge mesothelioma veterans electric car model long beach accident lawyer hybrid cloud solution car accident lawyers west palm beach motorcycle accident attorney sacramento personal injury lawyer in chicago cash annuity what are structured settlements car isnurance quotes my family app motorcycle accident attorney los angeles alcohol rehabilitation florida addiction treatment program california car accident attorney tucson car accident attorney personal injury attorney orange county ca auto insurance redlands ca saving bank accounts accident attorneys orange county social work degree on line magix phone system structured settlement definition health care reform impact on employers call centers software dui lawyer mesa az highest yield online savings online insurance quote comparison mesothelioma lawyer virginia car insurancs building online stores mesothelioma lawyer texas mesothelioma legal information dui lawyers miami how to sell annuities car accident lawyer houston tennessee mesothelioma lawyer selling my structured settlement online phd programs in public health card services direct login long distance telephone providers mesothelioma attorney illinois family plumber online website store builder selling annuity benign cystic mesothelioma top business apps for iphone cell cycle regulation ppt mesothelioma trial attorney lawsuit mesothelioma earthlink business internet phone and internet service for business philadelphia mesothelioma lawyer internet business plan colorado accident lawyers auto insurance yuba city ca mesothelioma lawyer dallas keller williams insurance south florida detox center car accident lawyer in san diego master in healthcare administration online injury lawyer houston tx car crash attorneys business voip phone service providers mesothelioma care accident attorney san bernardino wireless technology in business private cloud structered settlement mesothlioma auto accident lawyer san francisco structured settlement quote mesothelioma attorney assistance personal injury attorney oklahoma city mesothelioma lawyer asbestos cancer lawsuit structured settlement investments structured settlement companies raid buyer of structured settlement annuity caraccidentlawyer mesothelioma drug mesothelioma lawsuits emergency response plan ppt motorcycle accident lawyers san diego masters degree public administration city college in miami accident attorney florida car accident attorney in dallas supportpeachtreecom structured settlement sell new york mesothelioma law firm business phone direct truck accident attorney texas skype push to talk cash out structured settlement buy hosting company mesothelioma lawyer chicago plueral mesothelioma semi truck accident lawyers truck accident attorney los angeles virtual data room review network coverage comparison non injury accident attorney business phones service asbestos exposure lawyers online graduate programs education motorcycle accident attorney chicago mesothelioma attorneys mesothelioma cases motorcycle accident lawyer los angeles structural settlement auto accident attorney Torrance selling annuity payments for cash structured settlement company auto accident lawyers california tampa car accident auto insurance grand junction car insuarnce quotes average mesothelioma settlement mesothelioma law suit criminal justice bachelor degree online internet business sales attorney philadelphia tampa auto accident lawyer asbestos mesothelioma lawsuit buying an annuity calculator mesothelioma lawsuits settlements mesothelioma lawyer massachusetts dui attorney tempe az irvine car accident lawyer aa accident attorneys buying structured settlements information about car insurance houston truck accident lawyer structured settlement sale attorney baton rouge mesothelioma navy veterans selling a structured settlement car accident attorney tampa structured settlement advance meso lawyer offshore accident lawyer web based tech support buy structured settlements accident attorney orange county colorado auto accident attorney master of business administration online programs mesothelioma litigation mesothelioma settlements amounts alcohol rehab center in florida structured settlement cash out drug rehab centers in orlando florida cyber security small business probability of dying in a car accident structured settlement brokers mesothelioma lawsuit mesothelioma law firms should i be a lawyer new mexico mesothelioma lawyer how do structured settlements work car accident lawyers los angeles bus accident attorney los angeles ft lauderdale personal injury attorney is water damage covered by homeowners insurance cash advance structured settlement mobile business phone car accident lawyer denver ak auto insurance structured settlment what is a business license number purchase structured settlements firm law mesothelioma motorcycle injury lawyer los angeles sacramento car accident attorney mesothelioma lawyer california selling annuity payments mesothelioma specialists public service telephone company mesotheolima los angeles motorcycle accident lawyer mesothelioma attorney florida broward county dui lawyer state of california car insurance best accident attorneys mesothelioma ct personal injury lawyers fort lauderdale houston mesothelioma lawyers hughes net business mesothelioma help buyers of structured settlements washington mesothelioma attorney best mesothelioma lawyers diagnosed with mesothelioma structured settlement purchaser mesothelioma staging residential treatment centers florida structured settlement need cash now mesothelioma settlement amounts all about mesothelioma internet phone service for small business rehab centers in orlando florida fast cash for house drug and alcohol rehab in florida car accident lawyer michigan mesotheioma maritime lawyer houston business voice mail service mesothelioma personal injury lawyers it managing plumbing inspection Los Angeles structured settlements calculator california mesothelioma attorney fastest internet services car insurance seattle washington sell your structured settlement toledo phone company best business telephone service treatments for mesothelioma personal injury lawyers phoenix michigan auto accident lawyer java application performance management best savings accounts online structured settlement illinois mesothelioma lawyer drug programs in schools mesothelioma attorney car insurance Abilene TX cloud computig splunk rex auto insurance cost by state best business voip phone system personal injury lawyer sarasota fl best android business card scanner webmail teamhealth business class internet mesothelioma claims accident lawyers in los angeles car accident attorneys los angeles mesothelioma settlements attorney lawyer mesothelioma colorado mesothelioma lawyers coverdell education savings account calculator highlander the final dimension buy my structured settlement west palm beach criminal lawyer paass dui attorney miami atlanta car accident attorney what is structured settlement integrated ehr i have a structured settlement and i need cash can i sell my annuity colorado springs accident attorney credit card images for website saskatchewan auto insurance mesothelioma fund sell your structured settlement payments utah mesothelioma lawyer auto accident law firms most profitable internet business mesothelioma lawyers santa ana auto accident lawyer fort lauderdale criminal defense lawyer dallas mesothelioma lawyer sell structured settlement calculator arizona auto accident attorney cash out annuity cheaper insurance companies san diego criminal defense attorneys mesothelioma lawyer san diego boca raton personal injury attorney best internet service for business car insurance office dui lawyer scottsdale microsoft private cloud certification structured settlement agreement mesothelioma law suits cloud identity and access management annuity payment accident attorney in los angeles structure settlements business credit car quotes car accident attorney fort lauderdale personal accident attorney boulder personal injury lawyers raid recovery labs personal injury firm mba in health administration drug rehab fl openstack private cloud bus accident attorneys structured settlement blog best voip business phone service buisness internet california motorcycle accident lawyers Palm Beach Criminal Defense Attorney java cloud development metlife structured settlement asterisk call center software business voip service providers structured settlements companies mesothelioma attorney directory companies car insurance multicystic peritoneal mesothelioma best structured settlement companies business administration masters host virtual machine network disaster recovery plan fort lauderdale personal injury lawyer internet phone service business structured settlement broker personal injury attorney torrance california injury lawyer san diego auto accident attorneys motorcycle accident lawyer san francisco phoenix car accident lawyer cash for structured settlements peritoneal mesothelioma causes sell annuity payments los angeles workers compensation lawyers

tom brady draft pick mesothelioma and asbestos exposure texting from the internet to cell phone business credit car california insurance car mesothelioma drug car insurance Abilene TX best business voip phone system mesothelioma lawyer texas structured settlement annuity companies arizona auto accident lawyer hipaa hosting providers caraccidentlawyer injury lawyer houston tx mesothelioma attorneys california business administration masters structured settlements mesothelioma suit mesothelioma attorney california mesothelioma settlements online phd programs in public health mesothelioma survival rates best dui attorney phoenix companies car insurance structured settlement purchasers austin texas personal injury attorney phoenix car accident lawyer new jersey medical malpractice lawyer austin texas bail bonds phone system for small businesses lawsuit mesothelioma coverdell education savings account calculator car insurancs structure settlements truck accident lawyer dallas probability of dying in a car accident mesothelioma lawyer massachusetts injury lawyer tampa attorney for injury mesothelioma metastasis cloud computig motorcycle accident lawyer los angeles lift master garage door opener troubleshooting mesothelioma lawyer dallas hosted virtual desktop services arizona auto accident attorney injury attorney baton rouge personal injury lawyer attorney west palm beach criminal lawyer business phone and internet providers florida car insurance company new mexico mesothelioma lawyer motorcycle injury lawyer los angeles big data analytics software selling an annuity lawyers for mesothelioma la personal injury lawyer structured settlement buyer mesothelioma help injury attorneys orlando alcohol rehab center in florida structured settlement broker colorado springs car accident attorney how do structured settlements work alcohol rehab centers florida houston mesothelioma lawyers enterprise cloud solution cell cycle regulation ppt structure settlement orange county car accident lawyer magix phone system list of structured settlement companies small business voip services internet provider business plan miami workers compensation lawyer quotes car small business phone plan mesothelioma law firms car accident lawyer pittsburgh internet fax telus compare small business phone systems verizon sip mesothelioma settlement amounts structered settlement plumbing company denver accident attorney orange county michigan auto accident lawyer sell my annuity jones act attorney mesothelioma lawyer asbestos cancer lawsuit causes of mesothelioma dallas telephone service companies that buy structured settlements host virtual machine car accident lawyer florida structured settlement funding criminal attorney arizona personal injury attornies new york mesothelioma law firm i got into a car accident without insurance car accident lawyer phoenix structured settlements companies cloud computing companies list dallas car wreck attorney houston maritime lawyers structured settlement buyers sell annuity mesothelioma lawyers san diego structured settlements annuities orlando truck accident attorney california motorcycle accident lawyer houston mesothelioma attorney mesothelioma attorney baltimore houston tx auto insurance mesothelioma claim best savings accounts online small business administration sba colorado auto accident attorney earthlink business internet wisconsin mesothelioma attorney accident attorney in los angeles personal injury attorney clearwater mesotheliama mesothelioma lawyer virginia aa accident attorneys seattle mesothelioma lawyer selling my structured settlement colorado mesothelioma lawyers denver car accident lawyers mesothileoma injury attorney milwaukee criminal justice bachelor degree online sell structured settlement payments mesothelioma attorney illinois mesothelioma litigation selling annuity houston motorcycle accident lawyer mesothelioma trial attorney life contingent structured settlements cash for my structured settlement fort lauderdale personal injury lawyer auto insurance redlands ca lost car insurance card mesothelioma law suit auto accident lawyer san francisco boulder personal injury lawyers criminal defense lawyer dallas structured settlement brokers baltimore mesothelioma attorneys sell my structured settlement fort collins car accident attorney meso lawyer define structured settlement jg wentworth peachtree best mesothelioma lawyers hybrid cloud solution mesothelioma care diagnosed with mesothelioma structured settlement investments asbestos mesothelioma lawsuit structured settlement purchaser information technology colleges in california purchasing annuity dui attorney phoenix structured settlement lump sum los angeles motorcycle accident lawyer business phone service orlando pharmacist jobs in chicago structured settlemen austin car wreck attorney asbestos exposure lawyers business phone service in my area structured settlement sell structural settlement scholarship opportunities for middle school students businessinternet cash out structured settlement should i be a lawyer drug rehab facilities in florida integrated management log saving bank accounts mesothelioma lawyer chicago business voice mail service annuity cash motorcycle accident lawyer san francisco denver auto accident attorneys multicystic mesothelioma dallas mesothelioma attorneys truck accident attorney los angeles semi truck accident lawyers sell structured settlement jg wentworth rip off mesothelioma cases business internet san francisco emergency response plan ppt personal injury lawyer boca raton fl supportpeachtreecom structured settlement quote public service telephone company accidents attorneys skype push to talk auto accident attorney Torrance georgia truck accident lawyer buying structured settlements annuity payment milwaukee injury lawyer dui lawyer phoenix nist cloud security arizona car accident lawyer mental health rehabs structured settlement loans virginia car insurance rates dallas mesothelioma lawyer los angeles auto accident attorneys java cloud development call center agent software sacramento car accident lawyer best android business card scanner online masters degree programs massachusetts mesothelioma attorney assistance criminal defense attorney mesa az tennessee mesothelioma lawyer utah mesothelioma lawyer south florida detox center cash for annuity payment tucson car accident attorney mesothelioma attorney florida mesothelioma attorneys mesothelioma settlements amounts auto accident attorney tampa personal accident attorney wireless security systems for business peruvianconnection co uk alcohol addiction therapy best accident attorneys windows phone for business accident attorneys orange county mesothelioma lawsuit personal injury accident lawyer sacramento car accident attorney purchase structured settlements car accident lawyer michigan email archiving solution firm law mesothelioma how to get a masters in business administration car accident lawyers los angeles mesothelioma lawyers new york structured settlement companies saip insurance personal injury lawyers fort lauderdale cash annuity structured settlement advance structured settlement company nsync bye bye bye mesotheolima t personal injury lawyer boca raton personal injury attorney springfield mo milwaukee personal injury lawyers broward county dui lawyer state of california car insurance selling a structured settlement los angeles car donation mesothelioma foundation accident attorney san bernardino mesothelioma ct selling structured settlement hughes net business structured settlement blog workplace accident attorney online school business management washington mesothelioma attorney car cheap insurance uk very meso attorney mesothelioma lawyer california motorcycle accident attorney chicago sell your structured settlement payments sell annuity for cash structured settlement need cash now mesotheleoma business phone deals phoenix park hotel washington dc bed bugs cash for annuity payments personal injury attorney austin motorcycle accident attorney sacramento car accident lawyer nashville network coverage comparison boost mobile corporate office phone number selling annuity payments for cash average mesothelioma settlement mesothelioma attorney bluehost vs ipage selling annuity payments fast cash for house delaware mesothelioma lawyer california mesothelioma attorney wrongful death lawyer sacramento maritime lawyer houston mesothelioma personal injury lawyers personal injury attorney ocala fl best criminal lawyer in texas start web design business colorado springs car accident lawyer phoenix wrongful death lawyer truck accident attorney texas offshore accident lawyer personal injury lawyers houston buy structured settlements general business credit philadelphia mesothelioma lawyer secure cloud access structured settlement cash out illinois mesothelioma lawyer car accident law firms auto insurance cost by state personal injury lawyer sarasota fl accident lawyers in los angeles online insurance quote comparison most profitable internet business mesothelioma compensation california injury lawyer attorney lawyer mesothelioma accident lawyer houston tx internet phone service for small business mesothelioma lawsuits defense attorney phoenix cloud development tools find personal injury attorney car accident attorneys los angeles best business phone and broadband deals mesothelioma claims citrix blogs integrated ehr virtual call center software reviews motorcycle accident lawyer california st louis mesothelioma attorney feds liability insurance brooks auto insurance dui attorney tempe personal injury attorney torrance bowne virtual data room verizon wireless business phone water damage lawyer cloud call center software business telephone and internet packages alabama mesothelioma lawyer webmail teamhealth mesothelioma lawyer workers compensation attorney atlanta ga cash out annuity

Share:

Popular Posts

Recent Posts

Con la tecnología de Blogger.