Monitoring additional services

Mark_H

Member
Nov 9, 2010
7
1
53
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:



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



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 :)
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello Mark :)

You wrote:

I have created two files:

muninnode

which contains:

service[Munin]=x,x,x,/etc/init.d/munin-node restart,munin-node,root
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 :)