All pastes #190094 Raw Edit

Untitled

public text v1 · immutable
·published 2006-10-03 18:31 UTC
rendered paste body
checkcommands.cfg
define command{
        command_name    check_nrpe
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$
}

minimal.cfg
check_command                   check_nrpe!check_asterisk!channels!channels


Oct  3 15:30:12 rapid nrpe[26771]: Connection from 192.168.100.145 port 20397
Oct  3 15:30:12 rapid nrpe[26771]: Host address is in allowed_hosts
Oct  3 15:30:12 rapid nrpe[26771]: Handling the connection...
Oct  3 15:30:12 rapid nrpe[26771]: Host is asking for command 'check_asterisk' to be run...
Oct  3 15:30:12 rapid nrpe[26771]: Running command: /usr/local/bin/flizy_info channels
Oct  3 15:30:12 rapid nrpe[11788]: Command completed with return code 2 and output:
Oct  3 15:30:12 rapid nrpe[11788]: Return Code: 2, Output: NRPE: Command timed out after 60 seconds
Oct  3 15:30:12 rapid nrpe[11788]: Connection from 192.168.100.145 closed.

in nrpe.cfg
command[check_asterisk]=/usr/local/bin/flizy_info $ARG2$ $ARG3$