Page 2 of 2

Re: Permissin denied commands.cfg

Posted: Wed Mar 22, 2017 4:00 pm
by mfrycke
and when i now try to delete the # an take wq!
452 check_result_path=/usr/local/nagios/var/spool/checkresults
453
454
455
456
457 # MAX CHECK RESULT FILE AGE
458 # This option determines the maximum age (in seconds) which check
459 # result files are considered to be valid. Files older than this
460 # threshold will be mercilessly deleted without further processing.
"nagios.cfg" 1348L, 44829C written
E138: Cannot write viminfo file /.viminfo!
Press ENTER or type command to continue

Re: Permissin denied commands.cfg

Posted: Wed Mar 22, 2017 4:21 pm
by rkennedy
Your install is pretty broken, you're better off following the official guide and starting fresh - https://support.nagios.com/kb/article.p ... ategory=58 - these instructions should work like a charm.

Re: Permissin denied commands.cfg

Posted: Wed Mar 22, 2017 4:26 pm
by cdienger
Agreed. Let's start fresh and see if we get better results. For future reference you can always use a program like winscp to connect to the Nagios server with the root credentials and transfer files to your local machine.

Re: Permissin denied commands.cfg

Posted: Thu Mar 23, 2017 2:26 am
by mfrycke
ok.. so you mean that i shall install ubuntu server an nagios with a fresh install? or just upgrade nagios

Re: Permissin denied commands.cfg

Posted: Thu Mar 23, 2017 9:41 am
by cdienger
I'd suggest reinstalling the OS if possible just to be sure we get everything, otherwise we can just remove the /usr/local/nagios directory. Make sure to follow the steps in https://assets.nagios.com/downloads/nag ... buntu.html. It currently points at slightly older versions of the core and plugins. The latest versions can be found at https://assets.nagios.com/downloads/nag ... 3.1.tar.gz and http://nagios-plugins.org/download/nagi ... 2.0.tar.gz.

Re: Permissin denied commands.cfg

Posted: Fri Mar 24, 2017 8:06 am
by mfrycke
i have now install ubuntu 16.04 abnd try to follow this
https://support.nagios.com/kb/article.p ... ategory=58

but it dosent work :-(
when i come to this download the source

cd /tmp/nagioscore-nagios-4.3.1/
ubuntu say the file or folder not found

Re: Permissin denied commands.cfg

Posted: Fri Mar 24, 2017 10:46 am
by cdienger
Make sure you've uncompressed the file first before trying to cd to the directory:

cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/na ... 3.1.tar.gz
tar xzf nagioscore.tar.gz

If that doesn't work, provide the output of "ls -l /tmp"