Error processing hostexinfo object definition - SOLVED

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
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

Error processing hostexinfo object definition - SOLVED

Post by sebastiaopburnay »

Hi!

I was trying to put into the config files hostexinfo related to the hosts.

Wen I ran the command to check the configuration files I got the following error regarding the hostexinfo object.

Code: Select all

...
Processing object config file '/etc/nagios/hosts/localhost.cfg'...
Error: Invalid object definition type 'hostexinfo' in file '/etc/nagios/hosts/localhost.cfg' on line 20.
   Error processing object config files!
I'm guessing this is exteernal to the configuration file the error is ocurring in.

This is my localhost definitios:

Code: Select all

define host{
        use                    linux-server     ; Name of host template to use
							; This host definition will inherit all variables that are defined
							; in (or inherited by) the linux-server host template definition.
        host_name         localhost
        alias                  localhost
        address             127.0.0.1
	action_url		/nagios/pnp/index.php?host=$HOSTNAME$
	#parent		krypton
        }

define hostexinfo{
	host_name		localhost
	notes			Máquina virtual alojada no TOSHIBA, a 
correr o nagios
	icon_image		sme-server.png
	icon_image_alt		SME Server IntranetWare 7.5.1
	statusmap_image	sme-server.png
	}
With my best regards,
sebastiaopburnay
Last edited by sebastiaopburnay on Wed Mar 06, 2013 2:28 pm, edited 1 time in total.
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

Re: Error processing hostexinfo object definition

Post by sebastiaopburnay »

Well, it was, a stupid error, the correct object definition would be hostextinfo.
Though, the resolution of this error lead to a new one very similar

Code: Select all

Processing object config file '/etc/nagios/hosts/localhost.cfg'...
Error: Invalid object definition type 'hostextinfo' in file '/etc/nagios/objects/switch.cfg' on line 34.
   Error processing object config files!
Well, the definition of the switch host and hostextinfo seem fine:

Code: Select all

define host{
	use		generic-switch		; Inherit default values from a template
	host_name	krypton			; The name we're giving to this switch
	alias		Krypton_lab's AP	; A longer name associated with the switch
	address		192.168.1.254		; IP address of the switch
	hostgroups	switches		; Host groups this switch is associated with
	action_url	/nagios/pnp/index.php?host=$HOSTNAME$
	#parents
	}

define hotextinfo{
	host_name krypton
	notes	  	AP da rede 'sand-box' Krypton_lab
	icon_image 	router.gif
	icon_alt	AP da rede 'sand-box' Krypton_lab
	statusmap_image router.gif
	}
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Error processing hostexinfo object definition

Post by tonyyarusso »

I don't think an apostrophe is allowed in the alias, and possibly not the notes either. Could be wrong, but worth a shot.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked