Solved

Nagios Config File Error

Posted on 2011-09-09
7
461 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
7 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 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now