Attribute definition out of object

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Attribute definition out of object

Post by tariqondego »

I was in the process of deleting objects which i dont need from my map when I encountered error "Attribute definition out of object. In map opsmain at line #9473",when I deleted this line,the error keeps on moving to a different line up the configuration file.I have read a similar post on this but the solution provided does not appply to my case.

Please advise.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Attribute definition out of object

Post by slansing »

Is this in regards to NagVis? Can you show us the definition of the object at roughly line #9473? Are these objects actually present on the map? Did you move their location to another map and still keep a copy on this one?
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Attribute definition out of object

Post by tariqondego »

Yes its Nagvis,This is the definition of that object:

define line {^M
x=636,706^M
y=305,305^M
line_type=12^M
line_width=1^M
line_color=#000000^M
}^M
^M

I deleted this object from the map itself,actually i deleted a number of objects from the map.when it came up with error,i deleted these object from the cfg file too.But the error just keeps on moving to a different line.

Please advise.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Attribute definition out of object

Post by abrist »

Your file has the wrong line endings - it currently is using dos/windows line endings "^M". This can be caused by using filzilla/winscp in windows to copy/edit files from the nagios server and then writing the file/changes back. Use dos2unix to convert the file back:

Code: Select all

yum install dos2unix
dos2unix </path/to/config/file> 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Attribute definition out of object

Post by tariqondego »

Thank you very much.This fixed the problem.
Locked