Page 1 of 1

Error processing hostexinfo object definition - SOLVED

Posted: Mon Nov 15, 2010 5:57 am
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

Re: Error processing hostexinfo object definition

Posted: Mon Nov 15, 2010 6:35 am
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
	}

Re: Error processing hostexinfo object definition

Posted: Tue Nov 16, 2010 11:34 am
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.