Problem: check_openmanage command definition in Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rajib
Posts: 1
Joined: Tue May 19, 2015 5:42 am

Problem: check_openmanage command definition in Nagios Core

Post by rajib »

Hi,
I am using Nagios Core 4.0.8 in CentOS 6.6. I configured the check_openmanage_temparature command line and service definition as follows.

# 'check_openmanage_temparature' command definition
define command{
command_name check_openmanage_temparature
command_line /usr/local/nagios/libexec/check_openmanage -H $HOSTADDRESS$ --only temp
}

#Dell TEMP status
define service{
use generic-service
host_name Application-server
# hostgroup_name dell-servers
# servicegroups dell-openmanage
service_description Temperature
check_command check_openmanage_temperature
}

Then I restart nagios service, I get the following error.

[root@nagioscore objects]# service nagios restart
Running configuration check...

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/dell/config/templates/dell_templates.cfg', starting at line 77)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Error: Service check command 'check_openmanage_temperature' specified in service 'Temperature' for host 'Application-server' not defined anywhere!
Checked 59 services.
Checked 8 hosts.
Checked 4 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 31 commands.
Checked 7 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 8 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 7 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 1

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.


Please help me. How to solve this problem. Your co-operation will be highly appreciated.\


Rajib.
Last edited by tmcdonald on Fri Aug 28, 2015 10:38 am, edited 1 time in total.
Reason: I have moved your post to the appropriate section of the forum.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Problem: check_openmanage command definition in Nagios C

Post by eloyd »

You have posted in the wrong forum, but I will let one of the moderators move the reply.

Your problem is this:
host_name Application-server
Nagios is expecting to find a host definition named "Application-server" when one is not defined. I suspect you need to change that "Application-server" to be the name you assigned in Nagios to the host you really want to monitor.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked