How can I specify that a plugin script needs to be run on a client machine and not the server?
Details:
I am working on configuring my Nagios Core server (CentOS) to monitor the temperatures of an ATI graphics card in one of the client systems (Ubuntu), but I am having some problems.
I am using the script from http://exchange.nagios.org/directory/Pl ... mp/details
On the Nagios Core console I receive the following Status Information for the service: "(No output returned from plugin) It appears you don't have aticonfig installed in /usr/bin/aticonfig"
This is the same output I get when I attempt to manually run the script on the server. This makes sense because the server doesn't have an ATI graphics card and doesn't have aticonfig installed.
I am able to manually run the script successfully on the client system and I have added it to the npre.cfg file (in case that is necessary):
Code: Select all
command[check_gputemp0]=/usr/lib/nagios/plugins/check_gputemp -w 90 -c 95
command[check_gputemp1]=/usr/lib/nagios/plugins/check_gputemp --adapter 1 -w 90 -c 95(As you can see from the commented out 'command_line' line in the file that I tried using the pull path to the location of the check_gputemp script as it is on the client machine. When using that command_line setting I get the Status Information: "Return code of 127 is out of bounds - plugin may be missing")
Code: Select all
# 'check_gpu0' command definition
define command{
command_name check_gputemp0
#command_line /usr/lib/nagios/plugins/check_gputemp -w $ARG1$ -c $ARG2$
command_line $USER1$/check_gputemp -w $ARG1$ -c $ARG2$
}
# 'check_gpu1' command definition
define command{
command_name check_gputemp1
#command_line /usr/lib/nagios/plugins/check_gputemp --adapter 1 -w $ARG1$ -c $ARG2$
command_line $USER1$/check_gputemp --adapter 1 -w $ARG1$ -c $ARG2$
}
Code: Select all
# Define a service to check the ATI GPU 0 temperature.
# Critical if >= 95 degrees Celcius, warning if >= 90 degrees Celcius
define service{
use generic-service ; Name of service template to use
host_name <host_name>
service_description GPU 0 Temperature
check_command check_gputemp0!90!95
}
# Define a service to check the ATI GPU 1 temperature.
# Critical if >= 95 degrees Celcius, warning if >= 90 degrees Celcius
define service{
use generic-service ; Name of service template to use
host_name <host_name>
service_description GPU 1 Temperature
check_command check_gputemp1!90!95
}
All other services (e.g. SSH, PING, Current Load) on this client are working correctly.
----
Sorry for writing a book but if anyone is able to help out I would greatly appreciate it!