service_check.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. """
  2. Licensed to the Apache Software Foundation (ASF) under one
  3. or more contributor license agreements. See the NOTICE file
  4. distributed with this work for additional information
  5. regarding copyright ownership. The ASF licenses this file
  6. to you under the Apache License, Version 2.0 (the
  7. "License"); you may not use this file except in compliance
  8. with the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. """
  16. from resource_management import *
  17. from resource_management.libraries.functions import get_unique_id_and_date
  18. class ServiceCheck(Script):
  19. def service_check(self, env):
  20. import params
  21. #env.set_params(params)
  22. # Execute(format("which pika_server"))
  23. if __name__ == "__main__":
  24. ServiceCheck().execute()