Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
check_commands:check_nrpe [2019/08/12 15:55]
Robbie Ferguson
check_commands:check_nrpe [2020/05/26 15:33] (current)
Robbie Ferguson
Line 20: Line 20:
   * [[usage:​nrpe_on_windows|NRPE For Windows Clients]]   * [[usage:​nrpe_on_windows|NRPE For Windows Clients]]
  
-===Fix for NEMS 1.5 and Under===+====Important Note for Users of NEMS 1.5 and Under====
  
 In NEMS Linux 1.5 and lower, an older version of NRPE was used. This can be upgraded by running ''​%%sudo nems-upgrade%%''​ however you must also make a few minor changes in NEMS NConf as follows: In NEMS Linux 1.5 and lower, an older version of NRPE was used. This can be upgraded by running ''​%%sudo nems-upgrade%%''​ however you must also make a few minor changes in NEMS NConf as follows:
Line 27: Line 27:
   * Edit /// Disk Space// and ///var Disk Space// in //Advanced Services//, changing the ARGS to: ''​%%check_disk -a '-w 80 -c 90 -p /'​%%''​ and ''​%%check_disk -a '-w 80 -c 90 -p /​var'​%%''​ respectively.   * Edit /// Disk Space// and ///var Disk Space// in //Advanced Services//, changing the ARGS to: ''​%%check_disk -a '-w 80 -c 90 -p /'​%%''​ and ''​%%check_disk -a '-w 80 -c 90 -p /​var'​%%''​ respectively.
  
 +====Sample Args for check_nrpe====
 +
 +In order to use these commands, NRPE must be installed on the client system using the NEMS Linux installation procedure found here: [[usage:​nrpe_on_linux|NRPE For Linux]]
 +
 +<WRAP center round tip 60%>
 +I suggest you always put NRPE in the service titles you create in order to prevent accidentally assigning a local service to a host who uses NRPE. So instead of calling the advanced service "Check Disk Space /" I'd call it "Check Disk Space / via NRPE".
 +</​WRAP>​
 +
 +<WRAP round box>
 +===Check CPU Temperature of Remote System===
 +
 +  * **Description:​** Detect temperature of remote system CPU.
 +  * **Client Requirements:​** Must have //​lm-sensors//​ installed and working.
 +  * **$ARG1$ Syntax:** check_cpu_temp -a "WARN CRIT"
 +
 +**$ARG1$ Examples:**
 +
 +Warn if CPU is hotter than 40°C and Critical if over 50°C:
 +
 +''​%%check_cpu_temp -a "40 50"​%%''​
 +
 +Warn if CPU is hotter than 35°C and Critical if over 47°C:
 +
 +''​%%check_cpu_temp -a "35 47"​%%''​
 +</​WRAP>​
 +
 +<WRAP round box>
 +===Check Disk Usage of Remote System===
 +
 +  * **Description:​** Determine disk usage by percentage.
 +  * **Client Requirements:​** None.
 +  * **$ARG1$ Syntax:** check_disk -a "-w WARN -c CRIT -p PATH"
 +
 +**$ARG1$ Examples:**
 +
 +Warn if the disk at / is 80% full and Critical if over 90% full:
 +
 +''​%%check_disk -a '-w 80 -c 90 -p /'​%%''​
 +
 +Warn if the disk mounted on /var is 80% full and Critical if over 90% full:
 +
 +''​%%check_disk -a '-w 80 -c 90 -p /​var'​%%''​
 +
 +Warn if the disk mounted on /mnt/backup is 50% full and Critical if over 70% full:
 +
 +''​%%check_disk -a '-w 50 -c 70 -p /​mnt/​backup'​%%''​
 +</​WRAP>​
  • check_commands/check_nrpe.1565639736.txt.gz
  • Last modified: 2019/08/12 15:55
  • by Robbie Ferguson