Nagios Config File Error

I have a nagios server running on CentOS. Running perfectly except i am trying to implement check_http -H <someipaddress> -S -u <some url> -p <someport> and this works via command line, but when i put it into a define service {} method in the cfg file, it doesnt validate.
therompsterAsked:
Who is Participating?
 
Sebastian TalmonConnect With a Mentor System Engineer Datacenter SolutionsCommented:

you could not use linux executables or scripts directly in a service definition.

first you have do define a "command" for nagios like that:

# 'check_http' command definition
define command{
    command_name    check_http
    command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}

then you could use that "command"  (and not the executable/script) in your service definition.
0
 
Sanga CollinsSystems AdminCommented:
can you post the section of the config where you define the service?
0
 
Sebastian TalmonSystem Engineer Datacenter SolutionsCommented:

do you need additional information on this topic?
0
 
therompsterAuthor Commented:
I've requested that this question be deleted for the following reason:

no naswer, not ONE person could answer this dam,nQS question
0
 
Sebastian TalmonSystem Engineer Datacenter SolutionsCommented:
an answer was given, and there was no response to the question if additional help is needed
0
All Courses

From novice to tech pro — start learning today.