Do not use on any
shared computer
August 8, 2008 02:04pm pdt
 
[x]
Attachment Details

NAGIOS: ERROR WHEN RUNNING "NAGIOS -V NAGIOS.CFG"

Tags: nagios, 127, code
Please Help: I am trying to get Nagios running on another box (RedHat) and when I run "/usr/bin/nagios -v /etc/nagios/nagios.cfg" I get the following output:

Running pre-flight check on configuration data...

Checking services...
        Checked 5 services.
Checking hosts...
Warning: Host '01' has no services associated with it!
Warning: Host '02' has no services associated with it!
Warning: Host '03' has no services associated with it!
Warning: Host '04' has no services associated with it!
Warning: Host '05' has no services associated with it!
        Checked 6 hosts.
Checking host groups...
        Checked 1 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 22 commands.
Checking time periods...
        Checked 1 time periods.
Checking extended host info definitions...
        Checked 0 extended host info definitions.
Checking extended service info definitions...
        Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 5
Total Errors:   0


The concern being "Warning: Host X has no services associated with it!" When I check the web interface to view the actual host detail I dfind the following: " (Return code of 127 is out of bounds - plugin may be missing)

I've checked the plugin location: /usr/lib/nagios/plugins/

When I need to run one of the plugins I need to add a ./ in order to run said command: i.e. ./check_http -H www.mydomain.com

I get a valid return from the host. Here is a sample from my "checkcommands.cfg":

# 'check_ping' command definition
define command{
        command_name    check_ping
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
        }

Here is a sample from my hosts.cfg:

define host{
       use                      generic-host
       host_name                01
       alias                    01
       address                  xxx.xxx.xxx.xxx
       check_command            check_ping
       max_check_attempts       10
       notification_interval    120
       notification_period      24x7
       notification_options     d,r
       contact_groups           admins
       }

I've also checked the nagios.cfg and the location of the cfg seems to be ok: cfg_file=/etc/nagios/checkcommands.cfg

Can someone please help: I have no idea what I'm doing wrong and I'm totally new to linux. It took over a day to set this up and I can't figure this one little thing out. I'm sure if i resolve this the hosts will start producing usable data.
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Networking
Question Asked By: TheLank
Solution Provided By: JuanCarniglia
Participating Experts: 4
Solution Grade: A
Views: 35
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by JuanCarniglia
Expert Comment by JuanCarniglia:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by TheLank
Author Comment by TheLank:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by JuanCarniglia
Accepted Solution by JuanCarniglia:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by JuanCarniglia
Expert Comment by JuanCarniglia:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Assisted Solution by lotusleaf6
Assisted Solution by lotusleaf6:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by lotusleaf6
Expert Comment by lotusleaf6:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Assisted Solution by cdjc
Assisted Solution by cdjc:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Assisted Solution by Mehuge
Assisted Solution by Mehuge:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by keith_alabaster
Administrative Comment by keith_alabaster:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Computer101
Administrative Comment by Computer101:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34