[SOLVED] Define Service and Define Comman Question
Posted: Thu Jan 14, 2016 8:53 am
Hi everyone. I have a question: To define a service I have to define a command, that would be executed by that service, before?
Thx
Thx
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
define command {
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
Code: Select all
define host {
host_name google
alias Google Host
address google.com
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
define service {
use generic-service
host_name google
service_description HTTP
check_command check_http
}
I undestand, really make sense, I ask that because the tutorial that a read before didnt explain me right. In the way, that agent that you said is the NRPE?tmcdonald wrote:That depends on the type of check being performed. Things like HTTP and ping are able to be checked without modifying the client at all, but if you want to check CPU, memory, disk space, or other information that is not available externally, you will need to install an agent that will listen on a port and perform checks on behalf of Nagios.