Results 1 to 2 of 2

Thread: Check application process : example

  1. #1
    Junior Member
    Join Date
    Jan 2015
    Location
    Near Paris (France)
    Posts
    6

    Check application process : example

    1) Create a personnal pack to check process (example for CFT)

    2) create commands.cfg file with defined command :
    ex:
    define command {
    command_name check_process_CFTMAIN
    command_line cat $PLUGINSDIR$/check_procs_x86 | ssh $HOSTADDRESS$ "cat > /tmp/check_procs_x86 && chmod 755 /tmp/check_procs_x86 && /tmp/check_procs_x86 -c 1:1 -a 'CFTMAIN' -u cft"
    }

    See below i copy check_procs_x86 (i'have too check_procs for x86_64 too) to the server i want to check. This is not the best method, but it works well with no particular inpact on network and distant server.
    If you don't have check_procs on local server you want check, you cannot check your procs by ssh ...

    3) create you template and your .pack

    4) create you services files
    ex :
    # This is a check process of CFT PROGICIEL look by ssh
    define service{
    service_description Process CFTMAIN
    use check-process-service
    register 0
    host_name process_cft-ssh
    check_command check_process_CFTMAIN
    }

    5) add you pack in /etc/shinken/hosts/ host file.

    6) restart the arbiter

    Now you're monitoring your process without issues ;-)

    I use to create one pack by application i want to monitor using the same method.
    Last edited by akoustics; 01-29-2015 at 03:28 PM.

  2. #2
    Junior Member
    Join Date
    Jan 2015
    Location
    Near Paris (France)
    Posts
    6
    Screen shoot for result :
    Screen Shot 01-29-15 at 05.21 PM.jpg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •