Synology check health harde schijven

Storage Manager, HDD/SDD

Select disk and expand information.

Check Status: Normal

Check S.M.A.R.T status: Normal 

Check Bad sector count: 0

Select disk and health info, overview

Disk Reconnection Count, Bad Sector Count and Disk Re-identification Count indicate the total quantity of events that have occurred on your disk or system.

Your data are still safely stored on the disk. Although these parameters provide early warning and information about disk health trends, they do not directly imply imminent disk failure.

Disk Reconnection Count display the sum of S.M.A.R.T. Attribute “UItraDMA CRC Error Count” and other interface issues detected by the system. If this parameter increases abruptly compared to general tendency, it may indicate that the disk or some hardware components are aging.

Select disk and health info, S.M.A.R.T test

Run Quick and Extended test. Check results. 

Select disk and health info, S.M.A.R.T info 

Use https://en.m.wikipedia.org/wiki/S.M.A.R.T. for reference 

check status: OK

Important attributes:

01 Read Error Rate:

(Vendor specific raw value.) Stores data related to the rate of hardware read errors that occurred when reading data from a disk surface. The raw value has different structure for different vendors and is often not meaningful as a decimal number.

If you see any non-zero raw values for ID 1 (for WD and Samsung disks) in the disk S.M.A.R.T. info, the disk is defective.

05 Reallocated Sectors Count : 0

09 Power-on Hours:

Count of hours in power-on state. The raw value of this attribute shows total count of hours (or minutes, or seconds, depending on manufacturer) in power-on state.

By default, the total expected lifetime of a hard disk in perfect condition is defined as 5 years (running every day and night on all days). This is equal to 1825 days in 24/7 mode or 43800 hours.

10 Spin Retry Count: 0 

184 End-to-End error / IOEDC: 0

187 Reported Uncorrectable Errors: 0

188 Command Timeout: 0

196 Reallocation Event Count: 0

197 Current Pending Sector Count: 0

198 (Offline) Uncorrectable Sector Count: 0 

201 Soft Read Error Rate or TA Counter Detected: 

Volgens Synology:

If you see any non-zero raw values for ID 1 (for WD and Samsung disks) and ID 5/197/198 (for all disks) in the disk S.M.A.R.T. info, the disk is defective.

Synology terminal S.M.A.R.T rapportage

smartctl --scan

smartctl -a -d sat -T permissive /dev/sda

/dev/sda is the drive

-aPrints all SMART information about the disk.

-d satSpecifies device type. “Sat” is SCSI to ATA Translation (SAT) that is required with Synology.

 -T permissiveDefines tolerance type. “Permissive” tells to ignore failure(s) of mandatory SMART commands and is required with Synology.
 
The commando also shows Hardware disk information:
 
Model Family:     

Device Model:     

Serial Number:   

LU WWN Device Id:

Firmware Version: 80.00A80

User Capacity:    

Sector Sizes:     

Device is:       

ATA Version is:   

SATA Version is:  

Local Time is:    

SMART support is: 

SMART support is: 

 

To run a short S.M.A.R.T test: 

smartctl -d sat -t short /dev/sda

Synology weerbaar maken

Synology DSM 6.1 hardening settings:

  • Control Panel, security, advanced, TLS/ SSL Cipher Suites, Select Modern compatibility 
  • Control Panel, user, advanced, Password Settings, Apply password strength rules, select; 
    • Exclude name and description of user from password. 
    • Include mixed case
    • Include numeric characters
    • Include special characters
    • Exclude common password
    • Minimal password length: 8
    • Password history (times): 3
  • Control Panel, user, advanced,Password Expiration, select;
    • Enable password expiration 
    • Maximum password valid duration (days): 183 (except administrator users) 
    • Minimum password valid duration (days): 1
    • Prompt users to change password upon login before expiration (days): 14
    • Send expiration notification emails; sent at 12:00, Days before the expiration; 14,10,5,3,2,1 
  • 2-Step Verification,select
    • Enforce 2-step verification for the following users, all users
  • Control Panel, Terminal & SNMP, Terminal, (in case) SSH service, advanced settings, High
  • Control Panel, Security, Selecteer:
    • Improve protection against cross-site request forgery attacks
    • Improve security with HTTP Content Security Policy (CSP) header.
    • Do not allow DSM to be embedded with iFrame.
    • Clear all saved user login sessions upon system restart. 
  • Control Panel, Network, DSM settings, Selecteer Automatically redirect HTTP connections to HTTPS ( Web Station and Photo Station excluded )

 

Synology DSM 6 LDAP beveiliging

Use an LDAP editor like LDAPadmin.

Connect to LDAP server running on Synology NAS.

Host: Synology Nas server

Port: 389

base: cn=config

Simple authentication

TLS selected or deselected

Username: cn=config

password= same as root user LDAP server

After logging in

select cn=config and edit entry

add attribute or change value attribute olcTLSCipherSuite with your values. 

Toevoegen speciale symbolen onder Mac OS X

Voor het toevoegen van speciale symbolen onder Mac OS X zoals m² en m³ kan dat via show Emoji & Symbols. Deze kan je vinden onder het vlaggetje in de menu balk. Om deze opties onder het vlaggetje terug te vinden moet je onder systeeminstellingen, keyboard aanvinken show keyboard, emoji, & Symbol Viewers in menu bar. Om het vlaggetje te zien moet je onder systeeminstellingen, keyboard, input sources aangevinkt hebben show input menu in menu bar. 

Om de m² en m³ symbolen toe te voegen kan je onder Emoji & Symbols zoeken naar 2 of 3. Daar zie je de mogelijkheid ² en ³ toe te voegen. Je kan deze symbolen toevoegen in Mail of LibreOffice 

 

Monitor de Apache Webserver op je Synology DSM

DSM 5:

Login as root via a terminal session on your Synology NAS.

vi /etc/httpd/conf/httpd.conf-user

add the following lines and fill allow from:

--

#Apache server status
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from <fill in the ip address of your server running your Anturis agent>
</Location>

#Apache server status
#To obtain a full report with current status information
ExtendedStatus On

--

Restart httpd-user daemon:

synoservicectl --restart httpd-user

Within Anturis fill in the monitoring settings:

Apache server connection:

Apache statistics web-page URL (requires mod_status): <servername/server-status>

You can now monitor your Apache webserver running on your Synology NAS.

DSM 6:

Login as admin via a terminal session on your Synology NAS.

sudo -i

create file for example status.conf under /usr/local/etc/httpd/sites-enabled/

--

#Apache server status
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from <fill in the ip address of your server running your Anturis agent>
</Location>

#Apache server status
#To obtain a full report with current status information
ExtendedStatus On

--

Reload Apache server:

reload pkg-apache22

Synology DSM 6 (terminal) service control

Webuserinterface, Synology recommended:

Control Panel, Task Scheduler, Create Scheduled Task, Stop/Start Service 

Terminal command:

ssh admin@server

sudo -i

synoservicecfg --list

synoservicecfg --hard-stop <service>

synoservicecfg -stop <service>

synoservicecfg --hard-start <service>

synoservicecfg -start <service>

synoservice –status

synoservice –restart <service>

synoservicectl –restart <service>

Apache webserver:

stop pkg-apache22

start pkg-apache22

reload pkg-apache22


restart DSM Webapplication:

restart synoscgi


 

htop and top to see your running processes. 

 

Volg de volgende basis stappen om het probleem met een langzame Mac op te lossen.

  • Zet je computer uit. Klok met een stopwatch de tijd die nodig is vanaf het aanzetten van de computer tot de mogelijkheid voor een login. Klok ook de tijd die nodig is na inloggen totdat je kan werken. Definieer werken, bijvoorbeeld wanneer alle iconen in de menubar zijn verschenen. Hou dit als je referentie aan bij het nogmaals controleren van de tijd.
  • Identificeer wat langzaam is, is de Internet verbinding langzaam? Verschijnen de Web pagina’s langzaam. Controleer en los problemen op met de Internet connectie. Verwijder de Web Browser Cache.
  • Controleer of de hard disk vol is. Een volle hard disk vertraagt de computer. Ruim de hard disk op.
  • Verwijder onnodige programma’s. Ruim ook onnodige Web Browsers plugins op.
  • Maak een beslissing of je nog Oracle Java en Adobe Flash plugin nodig hebt.
  • Check voor Mac OS X updates. Voer deze uit.
  • Check en beslis om alle applicaties te updaten naar de nieuwste versie. Ook Web Browser plugins.
  • Start Activity Monitor en check alle processen met constant hoge utilisatie. Check geheugen gebruik en hard disk utilisatie. Identificeer de software die een hoge utilisatie veroorzaakt. Stop deze en check voor normaal gebruik. Zoek een update voor deze software.
  • Check spotlight indexing. Dit kan de oorzaak voor een langzaam computer zijn. Zodra spotlight indexing is gestopt check voor normaal gedrag.
  • Check anti-malware programmatuur voor correct gedrag. Check voor beschikbare updates en check voor correcte instellingen. Het is mogelijk dat bepaalde bestanden uitgesloten moeten worden van malware scanning. Kies een beter anti-malware programma. Draai een full scan en check voor malware.
  • Start minder programma’s gelijktijdig en check normaal gedrag.
  • Check de Dock applicaties, options, open at login. Moeten deze starten als je inlogt?
  • Start system preferences, Users & Groups, check login items. Beslis of je deze automatisch wil openen wanneer je inlogt. Deze instelling heeft invloed op je login tijd.
  • Ruim het bureaublad op. Teveel items vertraagt de performance.
  • Reduceer de transparantie. Ga naar system preferences, accessibility, display, kies reduceer transparantie. Check performance.
  • Check de performance van FileVault Disk Encryptie.
  • Start Disk Utility en check de harde schijf op fouten en check volume fouten. Vanaf OS X El Capitan zijn systeem bestand permissies automatisch beschermd. Het is niet langer nodig om te verifiëren en repareren van permissies met Disk Utility.
  • Reset  System Management Controller (SMC). Check Apple Support voor de juiste manier.
  • Check de hardware voor de mogelijkheid voor meer geheugen of een SSD.
1 2 3 4