Page 1 of 2
the directory objects has been disapeared
Posted: Mon Aug 13, 2012 5:35 am
by slimix00
Hi !
I have a very strange problem
the directory objects which is located in : /usr/local/nagios/etc/objects has been transformed into a file called objects ( that I can't open )
the directory has been disapeared
plz help hhhh
Re: the directory objects has been disapeared
Posted: Mon Aug 13, 2012 9:56 am
by agriffin
Unfortunately, the files in that directory are probably gone unless you have a backup somewhere. If you do have a backup, just do a restore. Otherwise, you can get the default files from this directory back simply by copying them out of Nagios Core source again, but you will need to redo any custom changes you had made.
Re: the directory objects has been disapeared
Posted: Tue Aug 14, 2012 8:03 am
by slimix00
copying them out of Nagios Core source again ??
How ? I don't get it please !
Re: the directory objects has been disapeared
Posted: Wed Aug 15, 2012 9:53 am
by agriffin
In the Nagios source directory where you originally compiled it, there is a subdirectory sample-config/ which should contain the default configuration. You might need to run './configure && make all' first as if you were reinstalling to get the right files to appear (you don't want the ones with the *.in file extension).
Re: the directory objects has been disapeared
Posted: Fri Aug 17, 2012 9:50 am
by slimix00
Well, trully I have configured some files in that folder so I don't want to reinstall anything
one month of working !!!!!
I'm sad cause I realized that the folder has been transformed into an application ( when I check the proprities, I find TYPE : (application/octet-stream)
How's thaaaaat ???
have you ever got that problem ??
Re: the directory objects has been disapeared
Posted: Fri Aug 17, 2012 9:51 am
by slimix00
But i have to tell you that when I put : ls /usr/local/nagios/etc in the terminal
It tells me that objects is a folder (with blue color)
????
Re: the directory objects has been disapeared
Posted: Fri Aug 17, 2012 9:52 am
by agriffin
I'm not sure what could have caused that. It sucks, but you will probably have to start over... Don't forget to take backups this time!
Re: the directory objects has been disapeared
Posted: Fri Aug 17, 2012 10:07 am
by slimix00
Well
I tried to show my files contained in objects folder by the command
gedit /usr/local/nagios/etc/objects/switch.cfg (for example)
with this solution
I think it's Ok!
Re: the directory objects has been disapeared
Posted: Fri Aug 17, 2012 10:24 am
by agriffin
So, nothing happened to the objects directory after all?
Re: the directory objects has been disapeared
Posted: Sat Aug 18, 2012 10:27 am
by slimix00
Yes
It exists but I can't access to it directly
Actually I noticed that a lot of changes happened since I have installed CENTREON
Thank's a lot for your help