CONFIG FILE NIGHTMARE!!!!!
CONFIG FILE NIGHTMARE!!!!!
Hello everyone and thanks for looking,
I recently just finished downloading Nagios core on my ubuntu server, and am having trouble adding/editing switches. I have been following this http://nagios.sourceforge.net/docs/nagi ... uters.html for configuration, and did everything it asked me to do. Now as i go to restart it, i get
"Error: Cannot open config file /etc/nagios3/objects/switch.cfg' for reading: No such file or directory Error processing object config files"
Anyone know how to fix this? thanks in advance for your help
I recently just finished downloading Nagios core on my ubuntu server, and am having trouble adding/editing switches. I have been following this http://nagios.sourceforge.net/docs/nagi ... uters.html for configuration, and did everything it asked me to do. Now as i go to restart it, i get
"Error: Cannot open config file /etc/nagios3/objects/switch.cfg' for reading: No such file or directory Error processing object config files"
Anyone know how to fix this? thanks in advance for your help
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONFIG FILE NIGHTMARE!!!!!
First, just to check the file is located at the following location if you do an ls or ll of that directory correct?:
Second, did you verify your config files?:
http://nagios.sourceforge.net/docs/3_0/ ... onfig.html
Code: Select all
/etc/nagios3/objects/switch.cfghttp://nagios.sourceforge.net/docs/3_0/ ... onfig.html
Re: CONFIG FILE NIGHTMARE!!!!!
thanks for the response
im not entirely sure by what you ment in the first step but i did an ls and and nagios.cfg is there
secondly, the check configuration works perfectly, and no errors are coming up
im not entirely sure by what you ment in the first step but i did an ls and and nagios.cfg is there
secondly, the check configuration works perfectly, and no errors are coming up
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CONFIG FILE NIGHTMARE!!!!!
You should be looking for the switches.cfg file, presumably in:
Code: Select all
/etc/nagios3/objects/Re: CONFIG FILE NIGHTMARE!!!!!
im sorry im not too familiar with all the commands, what exactly do i do?
Re: CONFIG FILE NIGHTMARE!!!!!
Try:
Code: Select all
ls -la /etc/nagios3/objects/
ls -la /etc/nagios3/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.
"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.
Re: CONFIG FILE NIGHTMARE!!!!!
ok so i try the first command and i get a " cannot acesss no file or directory"
and the second command works
and the second command works
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CONFIG FILE NIGHTMARE!!!!!
Can you show the output of that command? As well as
Code: Select all
cat /etc/nagios3/nagios.cfg-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: CONFIG FILE NIGHTMARE!!!!!
Please post the output of the commands so that we can best help. Most likely if you are failing the first command, the user you are running as or the nagios user does not have permission to this directory and its files.
Code: Select all
ls -la /etc/nagios3/objects/
ls -la /etc/nagios3/
cat /etc/passwd | grep nagNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.