ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Elastix reboot: cron job?

    IT Discussion
    elastix best practice linux best practices unix cron reboots
    5
    24
    8.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by scottalanmiller

      What are the risks of setting a cron job to restart the Elastix system?

      @scottalanmiller
      @JaredBusch

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        To just reboot, very low as long as you have an accepted green zone from the client / business. You would ideally want this done in the middle of a weekend night or something of that nature and even more ideally have some automated checks associated and if at all possible, test calls made. But in most cases, just standard monitoring (is the system up) with a scheduled reboot is fine.

        Doing a cronjob based reboot is very standard.

        1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch
          last edited by

          Yeah, the risk of a reboot is pretty much nothing as long as you know that no one is right in the middle of changing anything.

          Biggest thing to think about on the scheduling is not to put it in the middle of other common maintenance windows.

          Say you normally check backups and other stuff on Saturday nights, do not schedule the automated reboot for the same window. Do it on Sunday night or Friday night instead.

          1 Reply Last reply Reply Quote 1
          • ?
            A Former User
            last edited by

            It's good to build in checks to make sure there are no current connections (or in this case calls). We do this because we have so many people working after hours. But if they can't access a resource when they try, well that's part of working after hours. If they get disconnected or loss work because of that well then that is a problem.

            I personally would use your IT management server if you have one to restart the server remotely rather than on the server itself. Then you can configure checks to make sure it's back up within X mins and send an email alert if not.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • gjacobseG
              gjacobse
              last edited by

              @thecreativeone91 said:

              It's good to build in checks to make sure there are no current connections (or in this case calls). We do this because we have so many people working after hours. But if they can't access a resource when they try, well that's part of working after hours. If they get disconnected or loss work because of that well then that is a problem.

              I personally would use your IT management server if you have one to restart the server remotely rather than on the server itself. Then you can configure checks to make sure it's back up within X mins and send an email alert if not.

              That would be my next question; can you configure the cron to do notification when it was about to restart, and once it came up.

              scottalanmillerS ? 2 Replies Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @gjacobse
                last edited by

                @g.jacobse said:

                That would be my next question; can you configure the cron to do notification when it was about to restart, and once it came up.

                A notification like an email? Just put an email command in the cron job like so...

                email start; command to do something; email end
                
                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @A Former User
                  last edited by

                  @thecreativeone91 said:

                  I personally would use your IT management server if you have one to restart the server remotely rather than on the server itself. Then you can configure checks to make sure it's back up within X mins and send an email alert if not.

                  I've worked in big environments that did this then moved off of it. It creates dependencies that need not exist. It is "easier to manage" in some ways but if the issue is resolving an SSH issue, for example, one can fix it automatically and the other just fails.

                  We found that moving from the jump servers doing it to the systems doing it themselves was a huge win. We had more control over the timing, far more reliable reboots (nothing missed because of a network blip), no extraneous dependencies, deals with SSH failures, etc.

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @scottalanmiller
                    last edited by A Former User

                    @scottalanmiller said:

                    @thecreativeone91 said:

                    I personally would use your IT management server if you have one to restart the server remotely rather than on the server itself. Then you can configure checks to make sure it's back up within X mins and send an email alert if not.

                    I've worked in big environments that did this then moved off of it. It creates dependencies that need not exist. It is "easier to manage" in some ways but if the issue is resolving an SSH issue, for example, one can fix it automatically and the other just fails.

                    We found that moving from the jump servers doing it to the systems doing it themselves was a huge win. We had more control over the timing, far more reliable reboots (nothing missed because of a network blip), no extraneous dependencies, deals with SSH failures, etc.

                    Monitoring it is much easier when centralized. We'll never move to doing tasks on Servers individually.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @gjacobse
                      last edited by

                      @g.jacobse said:

                      @thecreativeone91 said:

                      It's good to build in checks to make sure there are no current connections (or in this case calls). We do this because we have so many people working after hours. But if they can't access a resource when they try, well that's part of working after hours. If they get disconnected or loss work because of that well then that is a problem.

                      I personally would use your IT management server if you have one to restart the server remotely rather than on the server itself. Then you can configure checks to make sure it's back up within X mins and send an email alert if not.

                      That would be my next question; can you configure the cron to do notification when it was about to restart, and once it came up.

                      I wouldn't send an email unless it fails others you're just turning alerts into noise.

                      Also relying on itself to tel you if it's successful or failed isn't that great, you really need another machine they connects to it to make sure it's up and then sends an email if it's not.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @A Former User
                        last edited by

                        @thecreativeone91 said:

                        Monitoring it is much easier when centralized. We'll never move to doing tasks on Servers individually.

                        Monitoring should be centralized, agreed. But the actual maintenance?

                        ? 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @A Former User
                          last edited by

                          @thecreativeone91 said:

                          Also relying on itself to tel you if it's successful or failed isn't that great, you really need another machine they connects to it to make sure it's up and then sends an email if it's not.

                          That's why you use the monitoring system for that, rather than the maintenance system. Let it handle its own maintenance and the centralized monitoring that should exist anyway can handle the monitoring.

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @scottalanmiller
                            last edited by

                            @scottalanmiller said:

                            @thecreativeone91 said:

                            Monitoring it is much easier when centralized. We'll never move to doing tasks on Servers individually.

                            Monitoring should be centralized, agreed. But the actual maintenance?

                            Yes, By saying it's not you are suggestion Group Policy and WSUS are bad.

                            scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @A Former User
                              last edited by

                              @thecreativeone91 said:

                              @scottalanmiller said:

                              @thecreativeone91 said:

                              Monitoring it is much easier when centralized. We'll never move to doing tasks on Servers individually.

                              Monitoring should be centralized, agreed. But the actual maintenance?

                              Yes, By saying it's not you are suggestion Group Policy and WSUS are bad.

                              Group Policy pushes out the changes, but runs them locally. It would be more like having a centralized script that set the crontabs to always be the same (or in a pattern or whatever.) I think that GPO is more as I have described, local maintenance jobs.

                              WSUS is patching which is a little different. I would prefer WSUS use localized patching and centralized reporting and filtering.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller
                                last edited by

                                And don't translate "sub-optimal" as bad. But don't think of GPO as centralized pushes of management either.

                                I'm totally for the cronjobs being pushed out centrally, that makes sense.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @A Former User
                                  last edited by

                                  @thecreativeone91 said:

                                  Yes, By saying it's not you are suggestion Group Policy and WSUS are bad.

                                  If you feel that that was what I was saying, are you implying that you feel that Chef, Puppet, cfEngine and other DevOps tools are bad? (They run locally and only pull centralized configurations.)

                                  1 Reply Last reply Reply Quote 0
                                  • gjacobseG
                                    gjacobse
                                    last edited by

                                    Thanks for the additional tags

                                    As for e mail, it would be nice to get a health report on successful boot.

                                    No report, something is wrong....

                                    scottalanmillerS ? 2 Replies Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @gjacobse
                                      last edited by scottalanmiller

                                      @g.jacobse said:

                                      Thanks for the additional tags

                                      As for e mail, it would be nice to get a health report on successful boot.

                                      No report, something is wrong....

                                      It sounds nicer than it is. But in reality you don't want emails saying that things are okay, that's fundamentally wrong. For a couple of reasons:

                                      • At scale, you will be inundated with "everything is fine" emails. It just doesn't scale.
                                      • It trains you to ignore your email and messages from the server. It's bad conditioning.
                                      • You have to notice the absence of an alert to realize that something is wrong rather than the presence of it. You have no way to verify failure, you have to hope that you remember when success was supposed to, hope that you paid attention, etc.
                                      • This doesn't give you a means of passing off to another person or connecting to other automation.
                                      • You have to maintain a list of people to be alerted of "regular stuff."
                                      • You are attempting to use your email as a logging system rather than as an alerting mechanism.
                                      1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        If you want this kind of information consider something like...

                                        • Using proper logging and looking in the logs for this information rather than in email.
                                        • Posting to a status feed (e.g. Twitter) with status info that anyone can look up if they care to.
                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @gjacobse
                                          last edited by

                                          @g.jacobse said:

                                          Thanks for the additional tags

                                          As for e mail, it would be nice to get a health report on successful boot.

                                          No report, something is wrong....

                                          That's backwards you want emails when something fails. I'd get way too many if I got once when things worked I easily get 200+ per day already.

                                          gjacobseG scottalanmillerS 2 Replies Last reply Reply Quote 1
                                          • gjacobseG
                                            gjacobse @A Former User
                                            last edited by

                                            @thecreativeone91 said:

                                            @g.jacobse said:

                                            Thanks for the additional tags

                                            As for e mail, it would be nice to get a health report on successful boot.

                                            No report, something is wrong....

                                            That's backwards you want emails when something fails. I'd get way too many if I got once when things worked I easily get 200+ per day already.

                                            I rant that over in my mind, and it seemed that if the reboot failed, you would not get any type of email.

                                            ? scottalanmillerS 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post