The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Monitoring additional services

Discussion in 'General Discussion' started by Mark_H, Nov 9, 2010.

  1. Mark_H

    Mark_H Member

    Joined:
    Nov 9, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    Fairly new to using Linux and I'm trying to monitor some additional services in the WHM. I have done some searches on here and managed to get so far but I'm now stuck.

    What I have setup so far:

    In the WHM service manager I have the following new services being monitored:

    [​IMG]

    In service status they are both listed as "up":

    [​IMG]

    However when they fall over they do not get restarted, I suspect the commands I have set-up are incorrect, I have set-up the following:

    In /etc/checksrv.d/

    I have created two files:

    muninnode

    which contains:

    service[Munin]=x,x,x,/etc/init.d/munin-node restart,munin-node,root

    and

    crashplan

    which contains:

    service[CrashPlan]=x,x,x,/etc/init.d/crashplan restart,java,root


    Can anybody spot what I'm doing wrong with them? Whether they are up or down they get reported as being "up" and if they are down they don't get restarted (although that may be because of the above problem).

    Any help appreciated :)
     

    Attached Files:

  2. Mark_H

    Mark_H Member

    Joined:
    Nov 9, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Back to the top :)
     
  3. Mark_H

    Mark_H Member

    Joined:
    Nov 9, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Still nobody out there that knows how to sort this?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello Mark :)

    You wrote:

    This is mostly correct, however the following line will need to be adjusted:

    Code:
    service[Munin]=x,x,x,/etc/init.d/munin-node restart,munin-node,root
    TO

    Code:
    service[muninnode]=x,x,x,/etc/init.d/munin-node restart,munin-node,root
    The service name needs to match the name of the file that you created in the /etc/chkserv.d directory. Once you have made the change, you can monitor the results in the Chkservd log:

    /var/log/chkservd.log

    Thank you :)
     
  5. Mark_H

    Mark_H Member

    Joined:
    Nov 9, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, I'll give that a go! Much appreciated!
     
  6. Mark_H

    Mark_H Member

    Joined:
    Nov 9, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your help, that seems to be working as far as I can tell! :D
     
Loading...

Share This Page