How to generate encrypted passwords in the Nagios server?

1

Procedure:
Step 1:
Run the following command and verify that the OpenSSL function exists on the Nagios server:
# rpm -qa | grep openssl
The following information indicates that the OpenSSL function, which meets the encryption requirements, exists on the Nagios server:
openssl-devel-0.9.8a-18.15 openssl-0.9.8a-18.15 compat-openssl097g-0.9.7g-13.5
Step 2:
Run the following command to encrypt a device password, read and write community or trap community name:
# cd /usr/local/nagios/bin/huawei_server
# python genKey.py encryptPwd
Information similar to the following displays the generated password cipher text:
I2FsdGVkX19RU+Tr4ZoLg4Ji2Rpx4ZGAOeOsqLlxKpI=
NOTE:
The current key is encrypted by the default cipher key of the system. To manually generate a new key,
run the following command and then go to Step 2:
# cd /usr/local/nagios/bin/huawei_server
# python keyhandler.py setkey
If information similar to the following is displayed in the command output, the key is successfully
generated and is automatically saved to the configuration file(configInfo.cfg):
45FsdGVk419RU_2344ZoLg4Ji2Rpx4ZGAOeOsqLlx34=
Step 3:
Record the cipher text for the device password, read and write community or trap community name.
You need to enter this cipher text in the configuration file (huawei_hosts.xml) when adding this device during the installation or device monitoring.

Other related questions:
What is the encryption algorithm for encrypted storage of the MCU FTP password?
The encryption algorithm for encrypted storage of the MCU FTP password is AES-256.

What is the default password for logging in to the Nagios server?
huawei123

How to install the Tecal Nagios plug-in?
Step 1 Run the following command to decompress the installation package: # cd /etc # tar -zxf "Huawei eSight Server Management Plug-in (for Nagios).gz" The decompressed files are stored in the Huawei eSight Server Management Plug-in (for Nagios) folder. Step 2 Run the following command to install the plug-in: # cd "Huawei eSight Server Management Plug-in (for Nagios)" # python setup.py install -d 192.168.1.110 [-p 10061]-n /usr/local/nagios The parameters are described as follows: a. The parameter following -d indicates the IP address of the Nagios server. b. The parameter following -n indicates the installation path of the Nagios tool. NOTE: /usr/local/nagios is an installation directory example. c. The parameter on the right of -p indicates the Nagios alarm listening port. The parameter is optional and its default value is 10061.

How to get the Tecal Nagios plug-in software?
Obtain the plug-in installation package Huawei eSight Server Management Plug-in (for Nagios).gz. To download the installation package, visit http://support.huawei.com/enterprise, and choose Software > IT > Server > APP Server > Server Management Software > Tecal Nagios Plugin > Tecal Nagios Plugin V100 > Tecal Nagios Plugin V100R001 >Tecal Nagios Plugin V100R001C00 > Huawei eSight Server Management Plug-in (for Nagios).gz.

How to restart the plug-in service on the Nagios server?
Step 1 Run the following command to check whether the plug-in service has been started: # ps -ef | grep trapd.py | grep -v grep The following information indicates that the plug-in service has been started. If this information is not displayed, wait patiently. The plug-in service will start automatically in two minutes. nagios 22237 1 1 18:06 ? 00:00:00 python /usr/local/nagios/bin/huawei_server/trapd.py NOTE: 22237 in the preceding information is the plug-in process ID. Step 2 Run the following command to stop the plug-in service: # kill -9 22237 Step 3 Wait for one minute, and perform Step 1 to verify that the plug-in service has been started. The plug-in service will start automatically after being stopped.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top