Page 1 of 1

Attribute definition out of object

Posted: Fri Mar 28, 2014 7:17 am
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.

Re: Attribute definition out of object

Posted: Fri Mar 28, 2014 12:42 pm
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?

Re: Attribute definition out of object

Posted: Mon Mar 31, 2014 1:34 am
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.

Re: Attribute definition out of object

Posted: Mon Mar 31, 2014 10:39 am
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> 

Re: Attribute definition out of object

Posted: Wed Apr 02, 2014 2:11 am
by tariqondego
Thank you very much.This fixed the problem.