Permissin denied commands.cfg

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.
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: Permissin denied commands.cfg

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Permissin denied commands.cfg

Post 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.
Former Nagios Employee
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Permissin denied commands.cfg

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: Permissin denied commands.cfg

Post by mfrycke »

ok.. so you mean that i shall install ubuntu server an nagios with a fresh install? or just upgrade nagios
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Permissin denied commands.cfg

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Re: Permissin denied commands.cfg

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Permissin denied commands.cfg

Post 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"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked