Configuring proxy on Nagios Linux CentOS

source link

Problems Using Nagios XI With Proxies
We do not officially support Nagios XI when you install and use proxy software that restricts traffic to or from the Nagios XI server. There are several reasons for this. First, Nagios XI requires external access for package installation and updates. Package installation and updates may not work when proxies are used. Additionally, the Nagios XI code makes several internal HTTP calls to the local Nagios XI server to import configuration data, apply configuration changes, process AJAX requests, etc. These functions may not work properly when you deploy a proxy, which would result in a non-functional Nagios XI installation.

There are two things that need to be configured to make XI installation work with a proxy; the yum and wget configurations. Do both of these before starting anything about the installation process.

In /etc/yum.conf :
 proxy=http://someproxyserver:port/ # Shouldn't need to be quoted, remember the trailing slash
 proxy_username=myname  # The username you authenticate to your proxy with, if applicable
 proxy_password=mypass  # The password you provide to your proxy, if applicable
 
In /etc/wgetrc :
 http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
 no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying
 
If you are using an https proxy:
 https_proxy=https://myname:mypass@someproxyserver:port/ 
Quoting is not needed (or helpful) in any of these, but if you have special characters in passwords (especially : or @) and are having problems you probably need to escape them with backslashes.

Linux open-vm-tools

Open-VM-Tools (OVT): The Future of VMware Tools for Linux
http://blogs.vmware.com/vsphere/2015/09/open-vm-tools-ovt-the-future-of-vmware-tools-for-linux.html

Installation guide
http://partnerweb.vmware.com/GOSIG/home.html
 

curl: (1) Protocol 'http not supported or disabled in libcurl

source link

Direct quote from source link
"

To test a REST API I’m building, I decided to use curl.
From the website:
“curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.”
So after downloading the curl version for Windows, I opened a command prompt and browsed to the folder where I extracted the zip file.
I started with a simple command to invoke a PUT request to my API:
curl -XPUT 'http://localhost:9200/api/twittervnext/tweet'

Woops, first try and already an error:
curl: (1) Protocol 'http not supported or disabled in libcurl

The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands. So the correct command is:
curl –XPUT “http://localhost:9200/api/twittervnext/tweet”

"

Microsoft Office 2007 or 2010 suite program will not restart after an initial installation is interrupted

Source link


The 2007 Office suite or the 2010 Office suite Setup program will not restart after an initial installation is interrupted

Symptoms
Consider the following scenario. When you install a Microsoft Office suite or an Office program, the installation process is interrupted. Additionally, the Setup program is prevented from rolling back the Office installation. In this scenario, when you try to install the same Office suite or the Office program again, you receive the following error message:
Microsoft Office suite_name encountered an error during setup.
Cause
This problem may occur if the Rgstrtn.lck file is not removed from the computer. If this file is present when you try to install the same Office suite or the Office program that you previously tried to install, the Setup program detects the file. Then, the Setup program stops the installation.
Workaround
To work around this problem, delete the Rgstrtn.lck file. To do this, follow the steps, as appropriate for the operating system that you are using.

Warning If you install another Microsoft program after you receive the error message that is mentioned in the "Symptoms" section, you may experience problems with the program's Help system if you follow these steps. If you installed another Microsoft program after you receive the error message that is mentioned in the "Symptoms" section, uninstall the program before you follow these steps.

To have us work around this problem for you, go to the "Fix it for me" section. If you prefer to work around this problem yourself, go to the "Let me fix it myself" section.


Fix it for me

To fix this problem, click the Fix it button or link. Then click Run in the File Download dialog box, and follow the steps in the Fix it wizard.

For Windows 8

For Windows 7, Windows Vista, Windows XP, Windows Server 2008 or Windows Server 2003

Notes
  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.
  • We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email message.

Let me fix it myself

To work around this problem, delete the Rgstrtn.lck file. To do this, follow the steps, as appropriate for the operating system that you are using.
In Windows XP
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type cd "%allusersprofile%\Application Data\Microsoft Help", and then press ENTER.
  3. Type attrib -h rgstrtn.lck, and then press ENTER.
  4. Type del rgstrtn.lck, and then press ENTER.
  5. Type dir /b /od /ad, and then press ENTER.
  6. Type rd /q /s "", and then press ENTER.


    Note
    The are the folder names that are listed after you run the command in step 5. There should be a space between each folder-name. For example: rd /q /s "foldername1" "foldername2" "foldername3".
  7. Type exit, and then press ENTER.
In Windows Vista and Windows 7
  1. Click StartStart button, and then type cmd in the Start Search box, and then click OK.
  2. Type cd "%allusersprofile%\Microsoft Help", and then press ENTER,
  3. Type attrib -h rgstrtn.lck, and then press ENTER.
  4. Type del rgstrtn.lck, and then press ENTER.
  5. Type dir /b /od /ad, and then press ENTER.
  6. Type rd /q /s "", and then press ENTER.


    Note
    The are the folder names that are listed after you run the command in step 5. There should be a space between each folder-name. For example: rd /q /s "foldername1" "foldername2" "foldername3"
  7. Type exit, and then press ENTER.
After you perform these steps, you can try to install the Office suite or the Office program that you tried to install earlier.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties
Article ID: 927153 - Last Review: 01/23/2013 01:10:00 - Revision: 4.0
  • Microsoft Office Professional Plus 2007
  • Microsoft Office Enterprise 2007
  • Microsoft Office Ultimate 2007
  • Microsoft Office Professional 2007
  • Microsoft Office Standard 2007
  • Microsoft Office Home and Student 2007
  • Microsoft Office Basic 2007
  • Microsoft Office Professional 2010
  • Microsoft Office Professional Plus 2010
  • Microsoft Office Standard 2010
  • Microsoft Office Home and Student 2010
  • Microsoft Office Home and Business 2010
  • Microsoft Internet Information Services Media Services 2.0

Problem staging VMWare patches due to SSL inspection


Error:
Download patch definitions
Web sites: 
https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml;https://hostupdate.vmware.com/software/VUM/PRODUCTION/cscomain/cscodepot-index.xml; 
hosting the patch definitions and patches cannot be accessed or have no patch data. Check the Internet connectivity.

 Solution:

VMWARE KB:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2009000


Update Manager 5.0 introduces a new setting that verifies the SSL certificates during download. By default, this value is set to 1 or enabled.
 
To disable this behavior:
  1. Click Start > Run, type regedit, and click OK. The Registry Editor window opens.
  2. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Update Manager  key. 
  3. Right-click the value of the SslVerifyDownloadCertificate key and click Modify.
  4. Change the Value data field value to 0.
  5. Click OK.
  6. Click Start > Run, type services.msc , and click OK.
  7. Right-click VMware vSphere Update Manager Service and click Restart.   

Solution 2

Trust the certificate for the site that is failing by installing it into the trusted certificate store for the local computer. You could also download and trust the CA certificates that were used in signing the site certificate into the local computer certificate store.
 
You might also want to update the root certificates on the Microsoft Windows operating system. For more information, go to the Microsoft Download Center.

Note: You must download the corresponding version of root certificates for your operating system. For more information, refer to Microsoft support documentation.