Solved

Nagios Config File Error

Posted on 2011-09-09
7
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 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