# Systems Monitoring This page contains information on monitoring system resources and performance. For information on monitoring data content and activity see: * [[/contentdiscovery]] * [[/antivirus]] * [[/auditwatch]] * [[/audit/event/stream]] ## Network Monitoring To check your site is accessible you can check that the login page of the web file manager is available and responsive. To check also that server is operational over a network you can call an API to check, for example, that a folder exists. There is such a script available under [[https://github.com/SMEStorage/filefabric-scripts/tree/main/monitoring|Access Anywhere scripts for monitoring]]. ## Appliance Monitoring You can use any platform that supports monitoring of CentOS 7 including [[:snmp|SNMP]]. For example, with the Amazon Cloud you could use CloudWatch as noted in [[/aws-gettingstarted#systems_monitoring|Getting Started with AWS Cloud - Systems Monitoring]]. We recommend monitoring the following metrics. ### Base OS vmstat     Procs         r: The number of processes waiting for run time.         b: The number of processes in uninterruptible sleep.     Memory         swpd: the amount of virtual memory used.         free: the amount of idle memory.         active: the amount of active memory.       Swap         si: Amount of memory swapped in from disk (/s).         so: Amount of memory swapped to disk (/s).     IO         bi: Blocks received from a block device (blocks/s).         bo: Blocks sent to a block device (blocks/s).     CPU         us: Time spent running non-kernel code. (user time, including nice time)         sy: Time spent running kernel code. (system time)         id: Time spent idle.           st: Time stolen from a virtual machine.%%'' ### Disk Space df -k Filesystem           1K-blocks       Used Available Use% Mounted on/dev/mapper/VolGroup00-LogVol00                       18187836   2903080   14345956   17% //dev/sda1   101086     20047   75820   21% /boottmpfs     512468        0     512468   0% /dev/shm%%' ### MySQL Number of connections SHOW STATUS LIKE "Connections" If you are using MariaDB replication you could also use the database replication monitoring script. See [[https://github.com/SMEStorage/filefabric-scripts/tree/main/monitoring|Access Anywhere scripts for monitoring]]. ### Network Usage Monitor the network traffic using your monitoring system. Or you can get the information from cat /proc/net/dev ### Total Number of Processes ps -e|sed 1d|wc -l ## Recipes ### Increasing Disk Space To increase the disk space please follow the instructions at the following [[http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371|vmware kb article]] ### Attaching a new Disk to The Appliance To add a new disk to the appliance please follow the instructions at the following [[http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003940|vmware kb article]] ### Using a New Disk as Local Storage The appliance is already configured with an FTP server listening on ip address 127.0.0.1 and port 2001. * Add a new user with user home directory located on the newly attached disk mounted at _newdisk_ adduser   -b /newdisk   -s /sbin/nologin localstorage#change the passwd localstorage * Set home directory context for ///newdisk/localstorage// chcon -R -t user_home_dir_t   /newdisk/localstorage * Now you can add the a FTP provider to your NAA Account using the credentials - account login:localstorage - account password: the password you entered for localstorage user - server host:ftp://127.0.0.1 - server port:2001 - server home directory:/