Skip to main content

I am trying to monitor the service running under systemd on my RHEL 9 and Ubuntu 22.04 servers but I cannot make it work.

I did install nrpe4 on the client machine and I am able to launch some commands from the centreon poller.

However, I cannot find the check commands for systemd :-(

 

Thank you.

Regards.

Hi @c2s_talan did you check this documentation?


Hi, yes I did but it doesn’t talk about systemd and there is nothing regarding ubuntu.

 

Also, on the client side there is only 7 commands available in the /etc/nagios/nrpe.cfg

 

commandocheck_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
commandocheck_load]=/usr/lib64/nagios/plugins/check_load -r -w .15,.10,.05 -c .30,.25,.20
commandocheck_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
commandocheck_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
commandocheck_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
commandocheck_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
commandocheck_procs]=/usr/local/nagios/libexec/check_procs -C $ARG1$

 

I would like a monitor to get an alert when a service is down (sshd or httpd for example).

 

Thank you for your piece of advice.

Regards.
 


You can control process using following plugin: check_procs


Yes but what would be the command to make sure my process is running and how to get an alert when it is no longer running?


Reply