From: SourceForge.net <no...@so...> - 2007-03-20 12:43:12
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4216461 By: rob_blake All, As discussed on the mailing list, there is now an initial version of an NRPE-esque daemon checked in. It is part of the Blue Agent code and can be started either as an individual service on the remote host, or can be used in conjunction with dynamic registration to allow for execution of plugins on dynamically registered hosts. NRPE in Blue follows the same stance as NRPE in Nagios. The first of the components is a plugin called check_remote. The plugin has the following options: -H = remote host to check -P = Port of remote host to connect to. -C = Name of check to execute -T = transport to use to connect to remote host (currently socket only) args = anything further is assumed to be args to the remote check. The plugin is executed as with any other in blue, java -jar check-remote.jar and command defintions within Blue should be reflective of their distributed nature i.e. define command{ command_name check_remote_time command_line java -jar blue-check-remote.jar -H $HOSTADDRESS$ -C check_remote_time } With regards to how the command is configured on the remote host, currently it makes use of the configuration files that are associated with the Blue Agent. The configuration of commands is in the following format: command[check_remote_time]=java -jar blue-check-local-time.jar -H europe.pool.ntp.org -w 30 -c 50 when receiving a request to execute a command, the agent will consult it's list of pre-registered commands and then execute them accordingly. The user also has the ability to pass command arguments to the remote command, so the above command definition could be refactored as follows: command[check_remote_time]=java -jar blue-check-local-time.jar -H $ARG1$ -w $ARG2$ -c $ARG3$. For this to work, the user must enabled allow_command_arguments in the configuration file of the Blue Agent. Rob ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=545812 |