From f0d98247c3a2b273aa10319f13fa8ba512f9cd5b Mon Sep 17 00:00:00 2001 From: david hill Date: Mon, 9 May 2016 11:12:18 -0500 Subject: [PATCH] fix um disk prompt check --- oamapps/postConfigure/postConfigure.cpp | 7 ++++++- procmon/processmonitor.cpp | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index 94560d61d..b542c4600 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -756,6 +756,10 @@ int main(int argc, char *argv[]) mysqlRep = true; string answer = "n"; + + cout << "NOTE: Local Query Feature allows the ability to query data from a single Performance" << endl; + cout << " Module" << endl << endl; + while(true) { if ( pmwithum ) prompt = "Local Query feature is Enabled, Do you want to disable? [y,n] (n) > "; @@ -5073,7 +5077,8 @@ void snmpAppCheck() cout << endl << "===== Setup the Network Management System (NMS) Server Configuration =====" << endl << endl; - cout << "This would be used to receive SNMP Traps from InfiniDB, 0.0.0.0 defaults to not sending off the system" << endl; + cout << "This would be used to receive SNMP Traps from InfiniDB." << endl; + cout < "0.0.0.0 defaults to not sending off the system" << endl; prompt = "Enter IP Address(es) of where you want the SNMP Traps went (" + currentNMSIPAddress + ") > "; pcommand = callReadline(prompt.c_str()); if (pcommand) diff --git a/procmon/processmonitor.cpp b/procmon/processmonitor.cpp index 4084ed819..38d09e44b 100644 --- a/procmon/processmonitor.cpp +++ b/procmon/processmonitor.cpp @@ -5575,6 +5575,9 @@ bool ProcessMonitor::amazonVolumeCheck(int dbrootID) system(cmd.c_str()); log.writeLog(__LINE__, "mount cmd: " + cmd, LOG_TYPE_DEBUG); + cmd = "chown mysql:mysql -R " + startup::StartUp::installDir() + "/mysql/db"; + system(cmd.c_str()); + log.writeLog(__LINE__, "amazonVolumeCheck function successfully completed, volume attached: " + volumeName, LOG_TYPE_DEBUG); return true; } @@ -5601,6 +5604,10 @@ bool ProcessMonitor::amazonVolumeCheck(int dbrootID) string cmd = "mount " + deviceName + " " + startup::StartUp::installDir() + "/mysql/db -t ext2 -o defaults > /dev/null"; system(cmd.c_str()); log.writeLog(__LINE__, "mount cmd: " + cmd, LOG_TYPE_DEBUG); + + cmd = "chown mysql:mysql -R " + startup::StartUp::installDir() + "/mysql/db"; + system(cmd.c_str()); + return true; } else