{"id":735,"date":"2017-12-14T09:37:23","date_gmt":"2017-12-14T09:37:23","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=735"},"modified":"2017-12-14T09:45:54","modified_gmt":"2017-12-14T09:45:54","slug":"synology-nas","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/synology-nas\/","title":{"rendered":"Synology NAS"},"content":{"rendered":"<p>Pandora fms monitoring for synology nas server.<br \/>\n(require the DMS 4.x firmware for the snology nas)<\/p>\n<p>checks: HDD Temp, HDD Status, USV Status, Load, Charge and ext. eSata HDD status<\/p>\n<p>standart checks (like volume load etc) are from the pandora agent. (some will not work&#8230;)<\/p>\n<p>You can monitor the synology nas server with the &#8220;pandorafms agent for unix-4.X&#8221; (depends on your pandora verion)<\/p>\n<p>Just download install the agent on the synology nas via ssh. (with putty etc.)<br \/>\nget it from: http:\/\/pandorafms.com\/pandora\/download\/en<br \/>\nFreeBSD, Solaris, HPUX, AIX, MacOS (Tarball)<\/p>\n<p>Install the agent. you will get some errors when you install it.<br \/>\nread the error lines on the console and create the missing folders manual which the installer is searching for. (man and man1 etc.) start the installer again with &#8211;force option. now the agent will work. make a start script if you whant that the agent ist starting with the server automatic.<\/p>\n<p>Some of the sample modules (in the pandora_agent.conf) will not work because of the minimal linux shell system (BusyBox) on the synology nas. some commands are not available. edit the pandora_agent.conf with your checks that are working on the synology system. try them. you could use optware for install other command tool (like vmstat) for the synology nas to get the standart checks the agent conf is using. the pandora agend start command is working but stop not. stop it with kill &#8220;PID&#8221;.<\/p>\n<p>the module checks below are for the Synology SDS1511+<br \/>\nif you have a 8 HDD bay or more synology nas model copy the hdd temp and hdd status checks. change disk number an letter. (\/dev\/sdx) for less than 5 hdd bay delete or uncomment the other disk checks.<\/p>\n<p>after editing the pandora_agent.conf you have to restat the agent daemon lo load the new config<\/p>\n<p>dont care about the error lik ps -A dind not work. this is that BusyBox ps command dont know the -A parameter etc. try to use commands that work on BusyBox. (edit this in pandora_agent.conf)<\/p>\n<p>goodie:<br \/>\nget a synology 3rd party modul that adds some new snmp oid\u00b4s:<\/p>\n<p><a href=\"https:\/\/panorama9.zendesk.com\/entries\/21677572-monitor-synology-storage-devices-snmp-add-on\" target=\"_blank\" rel=\"noopener\">https:\/\/panorama9.zendesk.com\/entries\/21677572-monitor-synology-storage-devices-snmp-add-on<\/a><\/p>\n<p>Abbreviations used in output:<\/p>\n<p><strong>SYSTEM:<\/strong><\/p>\n<p>ser: &#8211; serial number of device<br \/>\nhn: &#8211; hostname of device<br \/>\nfw: &#8211; firmware version<br \/>\nup: &#8211; time in seconds since boot<\/p>\n<p><strong>RAID:<\/strong><\/p>\n<p>2\/2 &#8211; number of disks online vs. total number of disks configured to be part of the RAID<br \/>\nA: &#8211; number of active disks<br \/>\nF: &#8211; number of disks failed<br \/>\nS: &#8211; number of spare disks<br \/>\nsize: &#8211; volume size in KB (optional)<br \/>\nfree: &#8211; available free volume space in KB (optional)<br \/>\nname: &#8211; name of mounted volume (optional)<\/p>\n<p><strong>HD:<\/strong><\/p>\n<p>model: &#8211; physical hard disk vendor and model<br \/>\nsize: &#8211; physical hard disk size in bytes<br \/>\nserial: serial number of hard disk<\/p>\n<h2>Module data<\/h2>\n<p># Custom Script 2012 rm@rmtek.net<br \/>\n# Synology DSM4.x DS1511+ Checks: S.M.A.R.T, APC USV, extHDD<\/p>\n<p># S.M.A.R.T Health Status<\/p>\n<pre>module_begin\r\n module_name Disk 01 Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sda | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status Disk01\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 02 Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sdb | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status Disk02\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 03 Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sdc | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status Disk03\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 04 Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sdd | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status Disk04\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 05 Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sde | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status Disk05\r\n module_group Hardware\r\n module_end<\/pre>\n<p># S.M.A.R.T Status Info<\/p>\n<pre>module_begin\r\n module_name Disk 01 Temp\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/smartctl -a -d ata \/dev\/sda | grep Temperature_Celsius | awk '{ print $10 }'\r\n module_description Temp sata Disk 01 in Celsius\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 02 Temp\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/smartctl -a -d ata \/dev\/sdb | grep Temperature_Celsius | awk '{ print $10 }'\r\n module_description Temp sata Disk 02 in Celsius\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 03 Temp\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/smartctl -a -d ata \/dev\/sdc | grep Temperature_Celsius | awk '{ print $10 }'\r\n module_description Temp sata Disk 03 in Celsius\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 04 Temp\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/smartctl -a -d ata \/dev\/sdd | grep Temperature_Celsius | awk '{ print $10 }'\r\n module_description Temp sata Disk 04 in Celsius\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name Disk 05 Temp\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/smartctl -a -d ata \/dev\/sde | grep Temperature_Celsius | awk '{ print $10 }'\r\n module_description Temp sata Disk 05 in Celsius\r\n module_group Hardware\r\n module_end<\/pre>\n<p># APC USV: USB APC<\/p>\n<pre>module_begin\r\n module_name USV Battery Charge\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/upsc ups@localhost | grep battery.charge: | awk '{ print $2 }'\r\n module_description APC USV Batterie Ladezustand 0-100 %\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name USV Battery Runtime\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/upsc ups@localhost | grep battery.runtime: | awk '{ print $2 }'\r\n module_description APC USV Batterie Rest Laufzeit in sek.\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name USV Input Voltage\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/upsc ups@localhost | grep input.voltage: | awk '{ print $2 }'\r\n module_description APC USV Netzeingang in Volt\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name USV Load\r\n module_type generic_data\r\n module_exec \/usr\/syno\/bin\/upsc ups@localhost | grep ups.load: | awk '{ print $2 }'\r\n module_description APC USV Auslastung 0-100 %\r\n module_group Hardware\r\n module_end<\/pre>\n<pre>module_begin\r\n module_name USV Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/upsc ups@localhost | grep ups.status: | awk '{ print $2 }'\r\n module_description APC USV Status\r\n module_group Hardware\r\n module_end<\/pre>\n<p># external eSATA HDD<\/p>\n<pre>module_begin\r\n module_name external eSATA Disk Status\r\n module_type async_string\r\n module_exec \/usr\/syno\/bin\/smartctl -H \/dev\/sdh1 | grep Status: | awk '{ print $4 }'\r\n module_description S.M.A.R.T Status external eSATA Disk\r\n module_interval 84600\r\n module_group Hardware\r\n module_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Pandora fms monitoring for synology nas server. (require the DMS 4.x firmware for the snology nas) checks: HDD Temp, HDD Status, USV Status, Load, Charge and ext. eSata HDD status standart checks (like volume load etc) are from the pandora agent. (some will not work&#8230;) You can monitor the synology nas server with the &#8220;pandorafms [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[7,35],"tags":[169],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/735"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=735"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/735\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}