# Vexor introspect NRPE commands - single-quotes around syntax args so bash # does not interpolate ${status} etc; "$$" -> "$" via naemon macro pass. define command { command_name check_nrpe_cpu command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_cpu -a "$ARG1$" "$ARG2$" 'show-all' 'top-syntax=$${status}: $${list}' 'detail-syntax=$${time} load $${load}%' 'ok-syntax=$${status}: $${list}' } define command { command_name check_nrpe_memory command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_memory -a "$ARG1$" "$ARG2$" 'type=physical' 'show-all' 'top-syntax=$${status}: $${list}' 'detail-syntax=$${type}: Total: $${size} - Used: $${used} ($${used_pct}%) - Free: $${free} ($${free_pct}%)' 'ok-syntax=$${status}: $${list}' } define command { command_name check_nrpe_uptime command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_uptime } define command { command_name check_nrpe_nscp_version command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_nscp_version } define command { command_name check_nrpe_disk command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_drivesize -a "$ARG1$" "$ARG2$" "$ARG3$" 'show-all' 'top-syntax=$${status}: $${list}' 'detail-syntax=$${drive_or_name}: Total: $${size} - Used: $${used} ($${used_pct}%) - Free: $${free} ($${free_pct}%)' 'ok-syntax=$${status}: $${list}' } define command { command_name check_nrpe_service command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_service -a "$ARG1$" 'show-all' 'top-syntax=$${status}: $${list}' 'detail-syntax=$${name}: $${state}' 'ok-syntax=$${status}: $${list}' }