Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Nagios Config File Error

Posted on 2011-09-09
7
Medium Priority
?
470 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:therompster
  • 3
5 Comments
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 36511995
can you post the section of the config where you define the service?
0
 
LVL 5

Accepted Solution

by:
Sebastian Talmon earned 2000 total points
ID: 36515361

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
 
LVL 5

Expert Comment

by:Sebastian Talmon
ID: 36568072

do you need additional information on this topic?
0
 

Author Comment

by:therompster
ID: 37222171
I've requested that this question be deleted for the following reason:

no naswer, not ONE person could answer this dam,nQS question
0
 
LVL 5

Expert Comment

by:Sebastian Talmon
ID: 37222172
an answer was given, and there was no response to the question if additional help is needed
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
In this article, WatchGuard's Director of Security Strategy and Research Teri Radichel, takes a look at insider threats, the risk they can pose to your organization, and the best ways to defend against them.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question