Re: onApplicationStart and cfmail, when doess server start?
yeah, i thought it would be some thing every one but me has done. a simple email to alert you that the server has started. we have diff monitering in place, but i cant touch it. thanks a bunch. -m On Tue, Apr 1, 2014 at 2:00 PM, Bobby bo...@acoderslife.com wrote: The next thing that comes to mind is to parse the CF server.log file for the instance you are targeting. There are log entries for stopping and starting in there. ButŠI¹m guessing you are wanting this to be used as an alert not post-portem investigation. There are plenty of infrastructure monitoring applications and 3rd party services out there for monitoring your production servers (including the services). My company uses PRTG for performance/service monitoring (http://www.paessler.com/prtg) to cover all of our different servers. Im mostly responsible for the health of our CF servers though and FusionReactor works great for me. If you set it up correctly, it can notify you of service availability changes. None of the above actual means that a server was ³rebooted² though and a CF service stopping/starting also doesn¹t mean that someone manually triggered it. Also, keep in mind that something running ON the server that is supposed to send you this email is probably not going to work if its running on the service you are trying to monitor. On 4/1/14, 12:11 PM, morchella morchella.delici...@gmail.com wrote: looks like onServerStart is turned off. i cant change that on our server. On Tue, Apr 1, 2014 at 11:49 AM, morchella morchella.delici...@gmail.comwrote: thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby bo...@acoderslife.com wrote: The behavior you explained is expected. onApplicationStart() isnšt triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7- 9C8 E-CF1DA8FCA16D.html http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/W S7AC9408A-1AC6-4ab7-9C8E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella morchella.delici...@gmail.com wrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358284 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
ApplicationStart does not fire until the Application is hit. You're looking for onServerStart. On Tue, Apr 1, 2014 at 11:31 AM, morchella morchella.delici...@gmail.comwrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358271 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
That is correct behavior. An application does not start until a page within its scope is requested. You have a few options though. Use onServerStart (CF 9+). Use another server to monitor it. Use a third party program such as FusionReactor. I highly recommend it and it's well worth the money spent. On Tue, Apr 1, 2014 at 10:31 AM, morchella morchella.delici...@gmail.comwrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358272 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
The behavior you explained is expected. onApplicationStart() isn¹t triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7-9C8 E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella morchella.delici...@gmail.com wrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358273 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby bo...@acoderslife.com wrote: The behavior you explained is expected. onApplicationStart() isnšt triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7-9C8 E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella morchella.delici...@gmail.com wrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358274 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
looks like onServerStart is turned off. i cant change that on our server. On Tue, Apr 1, 2014 at 11:49 AM, morchella morchella.delici...@gmail.comwrote: thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby bo...@acoderslife.com wrote: The behavior you explained is expected. onApplicationStart() isnšt triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7-9C8 E-CF1DA8FCA16D.htmlhttp://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7-9C8E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella morchella.delici...@gmail.com wrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358275 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: onApplicationStart and cfmail, when doess server start?
The next thing that comes to mind is to parse the CF server.log file for the instance you are targeting. There are log entries for stopping and starting in there. But I¹m guessing you are wanting this to be used as an alert not post-portem investigation. There are plenty of infrastructure monitoring applications and 3rd party services out there for monitoring your production servers (including the services). My company uses PRTG for performance/service monitoring (http://www.paessler.com/prtg) to cover all of our different servers. Im mostly responsible for the health of our CF servers though and FusionReactor works great for me. If you set it up correctly, it can notify you of service availability changes. None of the above actual means that a server was ³rebooted² though and a CF service stopping/starting also doesn¹t mean that someone manually triggered it. Also, keep in mind that something running ON the server that is supposed to send you this email is probably not going to work if its running on the service you are trying to monitor. On 4/1/14, 12:11 PM, morchella morchella.delici...@gmail.com wrote: looks like onServerStart is turned off. i cant change that on our server. On Tue, Apr 1, 2014 at 11:49 AM, morchella morchella.delici...@gmail.comwrote: thanks guys! i was unfamilar with onServerStart. looking now! Much appreciated! On Tue, Apr 1, 2014 at 11:44 AM, Bobby bo...@acoderslife.com wrote: The behavior you explained is expected. onApplicationStart() isnšt triggered until the first request to the application. Check out onServerStart and Server.cfc http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS7AC9408A-1AC6-4ab7- 9C8 E-CF1DA8FCA16D.htmlhttp://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/W S7AC9408A-1AC6-4ab7-9C8E-CF1DA8FCA16D.html On 4/1/14, 11:31 AM, morchella morchella.delici...@gmail.com wrote: so i am trying some thing out on localhost befor i move to dev i want to know when my cf server was started or restarted. so after my onApplicationStart i put in a cfmail and fir up an instance of cf9 for my localhost. i dont get the email unless i actually goto 127.x.x.x to view a page. i thought i should get it imeditaly when the server starts? how would or should i be doing this. thanks a bunch. will help to know when offshore reboots some thing with out informing us. -m ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358277 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm