Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define command{
- command_name check_temp_example
- command_line /var/lib/shinken/libexec/check_temp_example.py -a 5
- }
- define service{
- host_name localhost
- service_description check_temp_example
- check_command check_temp_example
- max_check_attempts 5
- check_interval 1
- retry_interval 1
- check_period 24x7
- notification_interval 30
- notification_period 24x7
- notification_options w,c,r
- contact_groups admins
- icon_set server
- }
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import sys
- import argparse
- from random import randint
- parser = argparse.ArgumentParser()
- parser.add_argument("-a", help="The state of service", type=int)
- args = parser.parse_args()
- state = args.a
- print state
Add Comment
Please, Sign In to add comment