How to change the check load command value as per no of CPUs?
Jump to navigation
Jump to search
Step 1:
Login to the server
Step 2:
Check the no of CPUs in the server using the below command
lscpu
It will show the no CPUs in the server.
Step 3:
Open the nagios configuration file
vim /etc/nagios/nrpe.cfg
Edit the check_load as per the no of CPUs in the server.
Step 4:
If the server has 2 CPUs we can follow this for warning and critical alerts
command[check_load]=/usr/lib/nagios/plugins/check_load -r -w 1.5,1.5,1.5 -c 2,2,2
Step 4:
Save the file and restart the nagios service