Pivotal Knowledge Base

Follow

HowTo - Change the snmp healthmon community string on a DCA

Problem

How do I change the snmp community string in the healthmon configuration so that DCA MIB doesn't timeout when accessing the MIB via snmpwalk ? 

Solution

-- The value of the community string on the snmp configuraation file is

[root@mdw ~]# head -3 /etc/snmp/snmpd.conf
com2sec internalUser 172.28.0.0/20 yyyyy
com2sec externalUser default       yyyyy

-- The value of the community string on the healthmon configuration file is

[root@mdw etc]# grep snmp_community /opt/dca/etc/healthmond/healthmond.cnf
snmp_community = public

-- Changing the community string from dca setup

For v1.

[root@mdw ~]# dca_setup
/opt/dca/etc/dca_setup/dca_settings_live.cnf

  ____    ____     _      ____         _
 |  _ \  / ___|   / \    / ___|   ___ | |_  _   _  _ __
 | | | || |      / _ \   \___ \  / _ \| __|| | | || '_ \
 | |_| || |___  / ___ \   ___) ||  __/| |_ | |_| || |_) |
 |____/  \____|/_/   \_\ |____/  \___| \__| \__,_|| .__/
                                                  |_|

*******************************************************************************
Main Menu (Press Ctrl-C to exit)

 1) Install DCA  -- DEFAULT
 2) Modify DCA Settings
 3) DCA Disco

select [1]: 2
*******************************************************************************
DCA Settings Menu

 1) Regenerate DCA Config files
 2) Change DCA Locale
 3) Change DCA Timezone
 4) Clocks Configuration
 5) Regenerate SSH Keys
 6) Change machine passwords
 7) Initialize GPDB
 8) Initialize GPDB Standby Master
 9) Expand DCA
10) Rebalance Mirrors
11) DB Watcher
12) Networking: Masters
13) Networking: Segments
14) Networking: Switches
15) Hadoop
16) Light bars
17) Bios/Firmware/OMSA
18) RAID controller battery
19) Configure Security Settings
20) Health Monitoring

select: 20
*******************************************************************************
Health Monitoring Configuration
*******************************************************************************
Select a health monitoring option to modify

 1) Apply Changes
 2) emcconnect: 				on
 3) warning_disk_space_percentage: 		80
 4) error_disk_space_percentage: 		90
 5) do_periodic_licensing_data_report: 		1
 6) do_periodic_report: 			1
 7) snmp_community: 				public
 8) trapsink_hostname1: 			NOT_SET
 9) trapsink_hostname2: 			NOT_SET
10) trapsink_hostname3: 			NOT_SET
11) trapsink_hostname4: 			NOT_SET
12) trapsink_hostname5: 			NOT_SET
13) trapsink_hostname6: 			NOT_SET

select: 7
*******************************************************************************
Enter the SNMP community string [public]: yyyyy
*******************************************************************************
Health Monitoring Configuration
*******************************************************************************
Select a health monitoring option to modify

 1) Apply Changes
 2) emcconnect: 				on
 3) warning_disk_space_percentage: 		80
 4) error_disk_space_percentage: 		90
 5) do_periodic_licensing_data_report: 		1
 6) do_periodic_report: 			1
 7) snmp_community: 				yyyyy
 8) trapsink_hostname1: 			NOT_SET
 9) trapsink_hostname2: 			NOT_SET
10) trapsink_hostname3: 			NOT_SET
11) trapsink_hostname4: 			NOT_SET
12) trapsink_hostname5: 			NOT_SET
13) trapsink_hostname6: 			NOT_SET

select: 1
*******************************************************************************
The following is the configuration for the cluster:
# of segment hosts       :     8
# of dia hosts           :     0
# of hadoop master hosts :     0
# of hadoop worker hosts :     0
# of hbase worker hosts  :     0
# of racks               :     1
gpdb port                :  5432
san configuration        :    No

The following actions will be performed:
001) generate file: /opt/dca/etc/healthmond/healthmond.cnf
        MODIFY snmp_community = ocbcnisp
002) WARNING: AUTOMATIC GPDB RESTART MAY BE NECESSARY
003) regenerate snmpd conf
004) snmpd restart

Enter yes to continue or no to exit this application: (Yy|Nn): y
*******************************************************************************
Testing connectivity as root
Connectivity test includes the following host types: mdws sdws
connectivity is good.
*******************************************************************************
Update healthmond / dbwatcherd configs
20150410:17:25:55:014375 gpconfig:mdw:gpadmin-[INFO]:-completed successfully
*******************************************************************************
Update snmpd configs
*******************************************************************************
[.....]
[.....]

For v2

[root@mdw etc]# dca_setup
Initialization connection manager

Starting DCA connection manager

Request handler started

*******************************************************************************
*
  ____    ____     _      ____         _
 |  _ \  / ___|   / \    / ___|   ___ | |_  _   _  _ __
 | | | || |      / _ \   \___ \  / _ \| __|| | | || '_ \
 | |_| || |___  / ___ \   ___) ||  __/| |_ | |_| || |_) |
 |____/  \____|/_/   \_\ |____/  \___| \__| \__,_|| .__/
                                                  |_|

*  Main Menu
*******************************************************************************
*
*  1)  Install DCA
*  2)  Modify DCA Settings
*  3)  Host Inventory
*  4)  Application Management (PHD-Application-Suite, GemfireXD-Standalone, PHD-Isilon)
*  5)  Manage RPQ
*
*******************************************************************************
*  Enter 'X' to Exit
*******************************************************************************
> : 2

*******************************************************************************
*  Modify DCA Settings
*******************************************************************************
*
*  1)  Regenerate Hostfiles
*  2)  Set System Information
*  3)  Set DCA Locale
*  4)  Set DCA Timezone
*  5)  Modify NTP/Clock Configuration Options
*  6)  Generate SSH Keys
*  7)  Change Passwords
*  8)  Initialize the GPDB Master and Standby Master
*  9)  Initialize/Synchronize the GPDB Standby Master
*  10) Expand the DCA
*  11) Modify the Master Servers' External Network Settings
*  12) Modify the DNS Settings
*  13) Switch and VLAN Settings
*  14) Modify Hostnames
*  15) Configure Security Settings
*  16) Modify the Health Monitoring Configuration
*  17) Regenerate PXE Boot Configuration Files on All Servers
*  18) Light Bar Controls
*  19) Enable Master Server Auto Failover (currently disabled)
*
*******************************************************************************
*  Enter 'B' to return to the previous menu or 'M' to return to the main menu
*  Enter 'X' to Exit
*******************************************************************************
> : 16

*******************************************************************************
*  Modify the Health Monitoring Configuration
*******************************************************************************
*
*  1)  Enable Connect EMC (dial homes)		on
*  2)  Enable periodic licensing reports	enabled
*  3)  Enable periodic dial home		enabled
*  4)  Configure disk space warning percentage	80
*  5)  Configure disk space error percentage	90
*  6)  Configure the SNMP Community		public
*  7)  trap hosts				None
*
*******************************************************************************
*  Enter 'A' to apply the above settings
*  Enter 'B' to return to the previous menu or 'M' to return to the main menu
*  Enter 'X' to Exit
*******************************************************************************
> : 6

Would you like to modify the SNMP Community?
Current Setting = public. Press Enter to keep this setting or type new setting.
>> yyyyy


*******************************************************************************
*  Modify the Health Monitoring Configuration
*******************************************************************************
*
*  1)  Enable Connect EMC (dial homes)		on
*  2)  Enable periodic licensing reports	enabled
*  3)  Enable periodic dial home		enabled
*  4)  Configure disk space warning percentage	80
*  5)  Configure disk space error percentage	90
*  6)  Configure the SNMP Community		yyyyy
*  7)  trap hosts				None
*
*******************************************************************************
*  Enter 'A' to apply the above settings
*  Enter 'B' to return to the previous menu or 'M' to return to the main menu
*  Enter 'X' to Exit
*******************************************************************************
> : A

Would you like to modify the health monitoring configuration? (Yy|Nn)
Default = No. Press Enter to use this setting or type new setting.
>> y


** Running Prerequisite Checks **
Testing root Connectivity for hosts etl1, etl2, etl3, etl4, etl5, etl6, etl7, etl8, hdm1, hdm2, hdm3, hdm4, hdw1, hdw2, hdw3, hdw4, sdw1, sdw2, sdw3, sdw4, sdw5, sdw6, sdw7, sdw8, and smdw
root Connectivity Test Complete

Modify the Healthmon Configuration Action: Checking the Prerequisites for Modify the Healthmon Configuration Action

** Running Actions **
Modify the Healthmon Configuration Action: Starting to run Modify the Healthmon Configuration Action
Modify the Healthmon Configuration Action: Finished running Modify the Healthmon Configuration Action

Updating the Healthmon Configuration
Restarting Healthmon and snmpd on the masters

Selections Successfully Completed


*******************************************************************************
*  Modify DCA Settings
*******************************************************************************
*
*  1)  Regenerate Hostfiles
*  2)  Set System Information
*  3)  Set DCA Locale
*  4)  Set DCA Timezone
*  5)  Modify NTP/Clock Configuration Options
*  6)  Generate SSH Keys
*  7)  Change Passwords
*  8)  Initialize the GPDB Master and Standby Master
*  9)  Initialize/Synchronize the GPDB Standby Master
*  10) Expand the DCA
*  11) Modify the Master Servers' External Network Settings
*  12) Modify the DNS Settings
*  13) Switch and VLAN Settings
*  14) Modify Hostnames
*  15) Configure Security Settings
*  16) Modify the Health Monitoring Configuration
*  17) Regenerate PXE Boot Configuration Files on All Servers
*  18) Light Bar Controls
*  19) Enable Master Server Auto Failover (currently disabled)
*
*******************************************************************************
*  Enter 'B' to return to the previous menu or 'M' to return to the main menu
*  Enter 'X' to Exit
*******************************************************************************
> : x

Application terminated by user.

. -- Once done restart the healthmond using

dca_healthmon_ctl -d
dca_healthmon_ctl -e

-- And restart snmp services using the steps in the article

Comments

Powered by Zendesk