the directory objects has been disapeared

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.
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

the directory objects has been disapeared

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: the directory objects has been disapeared

Post 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.
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

Re: the directory objects has been disapeared

Post by slimix00 »

copying them out of Nagios Core source again ??

How ? I don't get it please !
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: the directory objects has been disapeared

Post 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).
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

Re: the directory objects has been disapeared

Post 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 ??
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

Re: the directory objects has been disapeared

Post 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)


????
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: the directory objects has been disapeared

Post 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!
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

Re: the directory objects has been disapeared

Post 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!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: the directory objects has been disapeared

Post by agriffin »

So, nothing happened to the objects directory after all?
slimix00
Posts: 25
Joined: Sun Jul 29, 2012 11:37 am

Re: the directory objects has been disapeared

Post 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
Locked