Available in Classic and VPC
The Monitoring service, which was available in the Classic environment of NAVER Cloud Platform, will only be available until October 20, 2023. After October 19, 2023, monitoring of Server and Auto Scaling services in the Classic environment can only be performed with Cloud Insight, an integrated monitoring service of NAVER Cloud Platform.
Use this guide to learn how to migrate the monitoring to Cloud Insight. To avoid any disruption to your service, migrate it before October 19, 2023.
Server(Classic)
Monitoring and Cloud Insight collect performance information by installing the Agent on the server. The Agents used by Monitoring and Cloud Insight are different and are not compatible with each other. Therefore, refer to the following guide to remove the Monitoring Agent from your existing server and install the Cloud Insight Agent:
You don't need to reboot the server for the migration.
It is not recommended to update the Agent on the Server (Classic) in an Auto Scaling Group created in Auto Scaling (Classic).
- Currently, Cloud Insight does not support monitoring and policy execution for Auto Scaling (Classic).
- Also, if the Monitoring and Cloud Insight Agents are mixed across Server (Classic) instances in an Auto Scaling Group, performance information for the Auto Scaling Group cannot be collected properly.
- As a result, if a metric-based Auto Scaling Policy is applied to an Auto Scaling Group (e.g., scale out when the group monitoring CPU Usage is 50% or higher), the Auto Scaling Policy may be triggered unexpectedly.
The schedule for Cloud Insight support for Auto Scaling (Classic) and Agent updates for Server (Classic) instances in Auto Scaling Groups will be announced separately.
How to check the Agent version installed on the server
You can check whether the Monitoring Agent is installed as follows.
If the Monitoring Agent is installed, you need to remove it and install the Cloud Insight Agent to enable monitoring through Cloud Insight.
Linux
Run the following command. If the noms_nsight -start process is running, the Monitoring Agent is operating and needs to be updated.
#ps -ef | grep noms_nsight
Windows
Check the status of the Windows service.
- Check the service status of noms_nsight. If the service is running, the Monitoring Agent is operating and needs to be updated.
Removing the Monitoring Agent and installing the Cloud Insight Agent
You can remove the Monitoring Agent and install the Cloud Insight Agent as follows:
Linux
For Linux, see the following:
Remove the Monitoring Agent and install the Cloud Insight Agent
To remove the Monitoring Agent and install the Cloud Insight Agent:
Save the following script as a file on the server, and then run it. The entire process must be performed with root permissions.
% bash uninstall_nsight1_install_nsight2.sh
If you run the script with the sh command in Ubuntu, a Bash syntax error may occur. In this case, run the script using the bash command.
Alternatively, you can download the file from the following path:
uninstall_nsight1_install_nsight2.sh
#!/bin/bash
# variable
if [ -f /etc/redhat-release ]; then
OS=$( cat /etc/redhat-release | awk '{print $1}' )
OS_MAJOR=$( cat /etc/redhat-release | grep -Po '(?<=release )\d+' )
elif [ $( command -v lsb_release ) ]; then
OS=$( lsb_release -i 2> /dev/null | awk '{print $3}' )
OS_MAJOR=$( /bin/cat /etc/lsb-release | grep "DISTRIB_RELEASE" | cut -d '=' -f2 | cut -d '.' -f1 )
fi
if [ "$( dmidecode -s system-manufacturer )" == "Xen" ] || [ $(/usr/sbin/virt-what 2> /dev/null | grep -i -c xen) -ge 1 ] || [ -d /sys/bus/xen/devices/vif-0 ] || [ $(ps -ef |grep /usr/sbin/xe-daemon | grep -v grep | wc -l ) -ge 1 ]; then
AGENT_DIR="/home1/nbpmon"
if [ "$OS_MAJOR" = 12 ] || [ "$OS_MAJOR" = 6 ] || [ "$OS" = "Debian" ] ; then # eol
AGENT_FILE="agent_controller_linux_ncp_eol.tar.gz"
else
AGENT_FILE="agent_controller_linux_ncp.tar.gz"
fi
AGENT_INSTALL_PARAMETER="pub-classic"
else
AGENT_DIR="/"
if [ "$OS_MAJOR" = 12 ] || [ "$OS_MAJOR" = 6 ] || [ "$OS" = "Debian" ] ; then # eol
AGENT_FILE="agent_controller_linux_pub_eol_bm.tar.gz"
else
AGENT_FILE="agent_controller_linux_pub_common_bm.tar.gz"
fi
AGENT_INSTALL_PARAMETER="classic"
fi
AGENT_INSTALLER="https://repo-nsight.ncloud.com/$AGENT_FILE"
# rc.local modify
function rc_local_remove() {
RC_LOCAL=$( cat /etc/rc.local | grep nsight )
if [ -n "$RC_LOCAL" ]; then
sed --follow-symlinks -i '/nsight/d' /etc/rc.local
echo
echo "Delete nsight_updater in /etc/rc.local >> Success"
echo
fi
}
# nsight service remove
function nsight_remove() {
[ -f /home1/nbpmon/noms/nsight/bin/noms_nsight ] && /home1/nbpmon/noms/nsight/bin/noms_nsight -stop
[ -f /etc/systemd/system/noms_nsight.service ] && systemctl stop noms_nsight.service
[ -f /etc/systemd/system/noms_nsight.service ] && systemctl disable noms_nsight.service
rm -rf /home1/nbpmon/noms
[ -f /home1/nbpmon/nsight_agent_installer.bin ] && rm -f /home1/nbpmon/nsight_agent_installer.bin
[ -f /home1/nbpmon/nsight_linux_agent_setup.sh ] && rm -f /home1/nbpmon/nsight_linux_agent_setup.sh
[ -f /home1/nbpmon/nsight_agent_installer.bin.backup ] && rm -f /home1/nbpmon/nsight_agent_installer.bin.backup
[ -f /home1/nbpmon/nsight_linux_agent_setup.sh.backup ] && rm -f /home1/nbpmon/nsight_linux_agent_setup.sh.backup
[ -f /etc/init.d/noms_nsight ] && rm -f /etc/init.d/noms_nsight
[ -f /usr/sbin/nsight_updater ] && rm -f /usr/sbin/nsight_updater
echo
echo "Delete NSight Agent(V1) Files >> Success"
echo
}
# nsight updater cronjob remove
function nsight_updater_remove() {
if [ $OS == "CentOS" ]; then
sed -i '/nsight\|MAILTO/d' /var/spool/cron/root
echo
echo "Delete nsight_updater in crontab >> Success"
echo
elif [ $OS == "Ubuntu" ]; then
sed -i '/nsight\|MAILTO/d' /var/spool/cron/crontabs/root
echo
echo "Delete nsight_updater in crontab >> Success"
echo
fi
}
# cloud insight install
function cloud_insight_install() {
if [ -d /home1/nbpmon/agent_controller_linux ]; then
systemctl stop nsight-agent
rm -rf /home1/nbpmon/agent_controller_linux
fi
wget -t 1 --timeout=5 --spider ${AGENT_INSTALLER} --no-check-certificate
if [[ 0 -eq $? ]]; then
wget -nv -t 1 --timeout=5 -O ${AGENT_DIR}/${AGENT_FILE} ${AGENT_INSTALLER} --no-check-certificate
tar zxvf ${AGENT_DIR}/${AGENT_FILE} -C ${AGENT_DIR}
bash ${AGENT_DIR}/agent_controller_linux/install_agent.sh ${AGENT_INSTALL_PARAMETER}
echo
echo "Install Cloud Insight(V3) Agent Files >> Success"
echo
fi
}
function cleansing() {
local NOMS_NSIGHT="K01noms_nsight"
REMOVE_FILE_LIST="$AGENT_DIR/$AGENT_FILE"
for REMOVE_FILE in $REMOVE_FILE_LIST
do
rm -f $REMOVE_FILE
done
if [ $OS == "CentOS" ]; then
for ((i=0; i<=6; i++))
do
rm -f /etc/rc.d/rc$i.d/$NOMS_NSIGHT
done
elif [ $OS == "Ubuntu" ]; then
for ((i=0; i<=6; i++))
do
rm -f /etc/rc$i.d/$NOMS_NSIGHT
done
fi
}
# ====================
# | Main Logic Start |
# ====================
rc_local_remove
nsight_remove
nsight_updater_remove
cloud_insight_install
cleansing
Check normal operation
Run the following command to verify that the Agent process is running:
% ps -ef | grep agent
If the agent_updater.py, agent.py processes are running, the Agent is working normally.
Use Cloud Insight to confirm that Metric Data for the server is displayed.
Windows
For Windows, see the following:
Remove the Monitoring Agent and install the Cloud Insight Agent
To remove the Monitoring Agent and install the Cloud Insight Agent:
1. Using a PowerShell script
You can also download the file from the following path:
uninstall_nsight1_install_nsight2.ps1
Function Uninstall_Nsight()
{
# nsight uninstall
if(Test-Path "C:\Program Files (x86)\NBP\NSight\uninst.exe") {
Start-Process "C:\Program Files (x86)\NBP\NSight\uninst.exe" -PassThru -Verbose -NoNewWindow -Wait -ErrorAction Ignore
}
# Unregister - Nsight ScheduledTask
if ($(Get-ScheduledTask -TaskName "nsight" -ErrorAction SilentlyContinue).TaskName -eq "nsight") {
Unregister-ScheduledTask -TaskName "nsight" -Confirm:$False
}
}
Function Install_CloudInsight()
{
if(!(Test-Path "C:\Program Files (x86)\NBP\agent_controller_windows\agent.bat")) {
#Performance Table Restore
Start-Process "C:\Windows\SysWOW64\lodctr.exe" -ArgumentList "/R"
Invoke-WebRequest -uri https://repo-nsight.ncloud.com/agent_controller_windows_ncp.zip | Out-Null
# Install CloudInsight
if ((Get-CimInstance -ClassName Win32_BIOS).Manufacturer -eq 'Xen') {
$nsight_source = "https://repo-nsight.ncloud.com/agent_controller_windows_ncp.zip"
$nsight_opt = "/pub-classic"
$wget = "C:\Windows\System32\wget.exe"
}
else {
$nsight_source = "https://repo-nsight.ncloud.com/agent_controller_windows_pub_bm.zip"
$nsight_opt = "/classic"
$wget = "C:\Windows\System32\GroupPolicy\Machine\Scripts\startup\wget.exe"
}
if(!(Test-Path "C:\Program Files (x86)\NBP")) {
New-Item "C:\Program Files (x86)\NBP" -ItemType Directory
}
$sourceFile = "C:\Program Files (x86)\NBP\agent_controller_windows.zip"
$targetFile = 'C:\Program Files (x86)\NBP'
Start-Process $wget -NoNewWindow -PassThru -Wait -ArgumentList "$nsight_source -q -O ""$sourceFile"" --no-check-certificate"
$file = Get-ChildItem -Path $sourceFile
$shell = new-object -com shell.application
$destination = $shell.Namespace($targetFile)
$zip = $shell.NameSpace($file.FullName)
foreach($item in $zip.items()) {
$destination.copyhere($item, 0x14)
}
Set-Location "$targetFile\agent_controller_windows"
Start-Process "C:\Program Files (x86)\NBP\agent_controller_windows\install_agent.bat" -ArgumentList $nsight_opt -passthru -wait
Remove-Item -Path $sourceFile -ErrorAction Ignore
}
}
Uninstall_Nsight
Install_CloudInsight
2. How to perform manually
Delete the Monitoring Agent
- In Services, stop the NOMS Nsight service.
sc.exe stop noms_nsight - Delete the C:\Program Files (x86)\NBP\NSight folder.
- Remove nsight from the Task Scheduler.
- Remove from the program.
sc.exe delete noms_nsight
Install the Cloud Insight Agent
- Navigate to the Agent installation folder: C:\Program Files (x86)\NBP.
Create a folder if it does not exist. - Download the package to the above folder.
- VM:
Copy and paste https://repo-nsight.ncloud.com/agent_controller_windows_ncp.zip into the browser to download the file or wget https://repo-nsight.ncloud.com/agent_controller_windows_ncp.zip --no-check-certificate - Bare Metal
Copy and paste https://repo-nsight.ncloud.com/agent_controller_windows_pub_bm.zip into the browser to download the file or wget https://repo-nsight.ncloud.com/agent_controller_windows_pub_bm.zip --no-check-certificate
- VM:
- Unzip the downloaded package file with the unzip command.
- Move the agent_controller_windows folder under C:\Program Files (x86)\NBP.
- Run the unzipped package file (be careful when entering parameters after the executable file).
- VM
agent_controller_windows\install_agent.bat pub-classic - Bere Metal
agent_controller_windows\install_agent.bat classic
- VM
3. Check normal operation
Check the status of the Windows service.
- Check the service status of nsight2_agent. If the service is running, the Agent is functioning properly.
Cloud Insight Agent troubleshooting
Learn how to resolve issues with Cloud Insight Agent.
Q1. My server is hanging, and Metrics are not being collected or notifications sent.
A. When the server hangs, the Agent cannot run because it is not allocated CPU resources. The problem may continue until the process causing the hang releases the hanged status on its own, or until you forcibly end the process. If you can't input anything to the server, then the server may need to be forcibly restarted. If a server is not working normally due to hangs or issues in the Agent or network, use agent_status metric from Server (Classic) or Server (VPC) to perform a check.
Q2. The Agent is running properly, but no data is collected in Cloud Insight.
A. The outbound communication from Agent to Cloud Insight may be blocked due to reasons such as internal firewall settings of the server, installation of security solutions, and so on, even if the Agent is running normally. See the following port list and check if the firewall is down:
Classic environment
| Source | Destination | Port | Description |
|---|---|---|---|
| Customer VM range | real-collector.nsight.ncloud.com (10.250.5.199) | TCP 9973 | Cloud Insight metrics collection server. |
| Customer VM range | real-ntp.nsight.ncloud.com (10.250.5.117) | UDP 123 | Cloud Insight NTP server. |
| Customer VM range | real-wai.nsight.ncloud.com (10.250.5.118) | TCP 10280 | Server to view information related to Cloud Insight. |
| Customer VM range | repo-nsight.ncloud.com (10.213.208.165) | TCP 80,443 | Cloud Insight repository server. |
| 10.250.26.62 | Customer VM range | ICMP | Cloud Insight ping check monitoring server. |
| 10.250.26.63 | Customer VM range | ICMP | Cloud Insight ping check monitoring server. |
VPC environment
| Source | Destination | Port | Description |
|---|---|---|---|
| Customer VM range | collector.nsight.ncloud.com (169.254.80.17, 169.254.87.2) | TCP 9973 | Cloud Insight metrics collection server. |
| Customer VM range | ntp.nsight.ncloud.com (169.254.80.19, 169.254.87.4) | UDP 123 | Cloud Insight NTP server. |
| Customer VM range | wai.nsight.ncloud.com (169.254.80.18, 169.254.87.3) | TCP 10280 | Server to view information related to Cloud Insight. |
| Customer VM range | nsight.ncloud.com (169.254.80.16, 169.254.87.1) | TCP 80,443 | Cloud Insight repository server. |
| 169.254.80.22, 169.254.80.23, 169.254.87.11, 169.254.87.12 | Customer VM range | ICMP | Cloud Insight ping check monitoring server. |
Q3. How do I stop or restart the Cloud Insight Agent?
A. Depending on your operating system, check out the following methods to stop/start/restart the Agent.
- Linux
- Stop the Agent: Run /home1/nbpmon/agent_controller_linux/stop_agent.sh.
- Start the Agent: Run /home1/nbpmon/agent_controller_linux/start_agent.sh.
- Restart the Agent: Run /home1/nbpmon/agent_controller_linux/restart_agent.sh.
- Window
- Stop the Agent: Run C:\Program Files(x86)\NBP\agent_controller_windows\agent.bat stop.
- Start the Agent: Run C:\Program Files(x86)\NBP\agent_controller_windows\agent.bat start.
Q4. How do I check the Agent's logs?
A. Depending on your operating system, check out the following methods to stop/start/restart the Agent.
- Linux: You can check log files in /home1/nbpmon/agent_controller_linux/logs.
- Windows: You can check log files in C:\Program Files (x86)\NBP\agent_controller_windows\logs.
Compare metrics of Monitoring and Cloud Insight
Observation, Observation Template
This is a guide to Cloud Insight's response metrics for each monitoring item that can be set up through observation of the Monitoring service.
| Category | Monitoring | Cloud Insight | ||
| Metric | Type | Metric | Description | |
| Ping Fail | Ping Fail | Server | is_on | 1 if server is alive, 0 otherwise |
| Server time difference | Server time difference | Server | time_deviation | time deviation with NTP server |
| CPU | used(%) | Server | avg_cpu_used_rto | CPU Utilization Average |
| idle | Server | avg_cpu_idle_rto | CPU idle ratio average (%) | |
| user | Server | avg_cpu_user_rto | CPU user ratio average (%) | |
| system | Server | avg_cpu_sys_rto (Linux) | CPU system ratio average (%) | |
| nice | Server | avg_nice_rto (Linux) | CPU nice ratio average (%) | |
| irq | Server | avg_irq_rto (Linux) | CPU interrupt ratio average (%) | |
| softirq | Server | avg_softirq_rto (Linux) | CPU soft interrupt ratio average (%) | |
| iowait | Server | avg_io_wait_rto (Linux) | CPU IO wait ratio average (%) | |
| privildged time | Server | avg_prv_mde_exec_tm_rto (Windows) | CPU used ratio in the privileged mode | |
| dpc time | Server | avg_dly_pcd_call_tm_rto (Windows) | CPU used ratio for deferred procedure calls (DPCs) (%) | |
| interrupt time | Server | avg_interrup_tm_rto (Windows) | CPU used ratio for interrupts (%) | |
| processor time | Not supported | |||
| Load Average | Load average (1 minute) | Server | load_average_1m | CPU load 1 minute (%) |
| Load average (5 minutes) | Server | load_average_5m | CPU load 5 minute average (%) | |
| Load average (15 minutes) | Server | load_average_15m | CPU load 15 minute average (%) | |
| Memory | used(%) | Memory | mem_usert | Memory Utilization(%) |
| total | Memory | mem_mb | total memory (MB) | |
| used | Memory | used_mem_mb | used memory (MB) | |
| free | Memory | free_mem_mb | free memory (MB) | |
| shared | Memory | shared_mem_mb (Linux) | shared memory (MB) | |
| buffers | Memory | bffr_mb (Linux) | buffers (MB) | |
| cached | Memory | cache_mb (Linux) | cache (MB) | |
| pgin/sec | Memory | pgin_mb | page in (MB) | |
| pgout/sec | Memory | pgout_mb | page out (MB) | |
| Swap | used(%) | Memory | swap_usert | swap used ratio (%) |
| total | Memory | swap_mb | swap (MB) | |
| used | Memory | swap_used_mb | swap used (MB) | |
| Disk | read count | Server | avg_read_cnt | disk read count per second average |
| write count | Server | avg_write_cnt | disk write count per second average | |
| read byte | Server | avg_read_byt_cnt | disk read bytes average | |
| write byte | Server | avg_write_byt_cnt | disk write bytes average | |
| File System | Usage | File System | used_byt_cnt | used bytes |
| Available capacity | File System | free_byt_cnt | free bytes | |
| used(%) | File System | fs_usert | File System Utilization Average | |
| Mount status | File System | mnt_stat_cd | mount state(1: mounted, 0: unmounted) | |
| iuse% | File System | ind_usert | inodes usage(Linux) | |
| NIC | collision | Network | clsn_packt_cnt (Linux) | collisions packets |
| bps in | Network | rcv_bps | receive bits per second | |
| bps out | Network | snd_bps | send bits per second | |
| pps in | Network | rcv_pps | receive packets per second | |
| pps out | Network | snd_pps | send packets per second | |
| error in | Network | rcv_fail_packt_cnt | receive fail packets | |
| error out | Network | snd_fail_packt_cnt | send fail packets | |
| Number of users | Number of users | Server | user_cnt | user count |
| Process | Process down | Plugin Process | is_process_up | 1 if process is up, 0 otherwise |
| Number of processes | Plugin Process | process_count | Process count (specified process) | |
| cpu(%) | Plugin Process | avg_cpu_usert | process used Average | |
| mem(%) | Plugin Process | avg_mem_usert | average memory usage % | |
| mem(KB) | Plugin Process | avg_mem_byt_cnt | memory usage | |
| Number of threads | Plugin Process | avg_thd_cnt | thread thread count | |
| Total process count | Server | proc_cnt | Process count (server- wide) | |
| Process restart | Plugin Process | is_process_up | 1 if process is up, 0 otherwise | |
| Log monitoring | File log | Not supported | ||
| File monitoring | Change | Plugin File | file_modified | 1: modified, 0: not modified |
| Size | Plugin File | file_size | file size(byte) | |
| No change | Plugin File | file_modified | 1: modified, 0: not modified | |
| File existence | Plugin File | file_exist | 1:file is exist, 0: file is not exist | |
My Chart
This is a guide to the corresponding metrics of Cloud Insight for each item that can be added to My Chart in the Monitoring service.
| Monitoring | Cloud Insight | ||
| Code | Description | Type | Metric |
| avg.svr.cpu.used.rto | CPU Used | Server | avg_cpu_used_rto |
| avg.svr.cpu.idle.rto | CPU Idle | Server | avg_cpu_idle_rto |
| avg.svr.cpu.user.rto | CPU User | Server | avg_cpu_user_rto |
| avg.svr.cpu.sys.rto | CPU System | Server | avg_cpu_sys_rto (Linux) |
| avg.svr.io.wait.rto | CPU IO Wait | Server | avg_io_wait_rto (Linux) |
| mi1.avg.ld.cnt | Load 1M | Server | load_average_1m |
| mi5.avg.ld.cnt | Load 5M | Server | load_average_5m |
| mi15.avg.ld.cnt | Load 15M | Server | load_average_15m |
| mem.usert | Memory Used(%) | Memory | mem_usert |
| used.mem.mb | Memory Used | Memory | used_mem_mb |
| free.mem.mb | Memory Free | Memory | free_mem_mb |
| swap.usert | Swap Used(%) | Memory | swap_usert |
| avg.svr.read.cnt | Disk Read Count | Server | avg_read_cnt |
| avg.svr.write.cnt | Disk Write Count | Server | avg_write_cnt |
| avg.svr.read.byt | Disk IO Read | Server | avg_read_byt_cnt |
| avg.svr.write.byt | Disk IO Write | Server | avg_write_byt_cnt |
| avg.svr.fs.usert | File System Used(%) | Server | avg_fs_usert |
| fs.used.mb | File system usage | Server | fs_used_mb |
| fs.free.mb | File system availability | Server | fs_free_mb |
| avg.svr.rcv.bps | Network Input (bps) | Server | avg_rcv_bps |
| avg.svr.snd.bps | Network Output (bps) | Server | avg_snd_bps |
| avg.svr.rcv.pps | Network Input (pps) | Server | avg_rcv_pps |
| avg.svr.snd.pps | Network Output (pps) | Server | avg_snd_pps |
Items that can't be migrated to Cloud Insight
The log monitoring feature provided through the Monitoring service is not available in Cloud Insight.
You can use the log monitoring feature through Cloud Log Analytics service.
Cloud Log Analytics is an integrated log management platform service provided by NAVER Cloud Platform that can collect, analyze, and store various logs. For more information on Cloud Log Analytics and how to use it, see the following guides:
- Cloud Log Analytics overview
- Collect Server logs through Cloud Log Analytics
- To collect logs through Cloud Log Analytics, you need to install an additional Agent for collecting logs from Cloud Log Analytics on the Server.
- Using Cloud Log Analytics > Alarm user guide