Jump to content
XPEnology Community

elmuziko

Member
  • Posts

    145
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

elmuziko's Achievements

Advanced Member

Advanced Member (4/7)

4

Reputation

  1. @Martcostan The project is dead as far as my involvement is concerned. I no longer use Xpenology. @TheExpert has done some great work to alter my existing scripts to tailor his own requirements. It sounds like something that just works, no unnecessary complexity with a website.
  2. You champion! Excellent. I hope this works for you. Does it allow you to run full SMART scans? That was one of my biggest frustrations. With Unraid I schedule them on a monthly basis.
  3. @TheExpert Hey buddy, I gotta be honest with you. I've abandoned the project. There was little interest on here for it for a year or so, and I got fed up of all the frustrating bugs/quirks/limitations of Xpenology. The certificate expiry thing late last year with no meaningful update was the last straw for me so I migrated to Unraid. And doing so I found the same thing as you did. My WD Reds - 6 year old WD Reds - were failing horrifically and ESXi was giving me false information. They probably would have died without me getting any real alerts from them, thankfully I was able to replace them before losing my RAID. I would imagine the problem lies with no actual SMART tests beings ran. Whereas a native OS can run a full scan, ESXi doesn't appear to. When I was building the project I was looking to see if I could add an option to force a full SMART scan. I went down the rabbit hole and found someone had ported smartmontools. But it was all bash code, and that's an area I know so little about, I didn't want to risk borking my live system. You can find more on it here. https://www.virten.net/2016/05/determine-tbw-from-ssds-with-s-m-a-r-t-values-in-esxi-smartctl/?msclkid=da4034e4b4b611ec96b92388e10508c5 If you can get it working, fantastic. Otherwise it seems this entire project gives false hope/readings... thank you very much VMWare.
  4. Ah that's brilliant! Love it, and a genius idea. Apologies for my tardy reply, I'm without internet at home at the moment, having to use work computers.
  5. @humancaviar Thank you for the update. This has worked for me with regards to getting Sab to work with strict certificates. Really appreciate it. Synocommunity isn't working but that's small fry. I can live without updates until RedPill is up and ready. Thank you again. For anyone else with this, I'm on DSM 6.2.3-25426 Update 3
  6. So I'm going to show my complete novice at life. Two things. sudo cat ${CERT_DIR}/*.crt >> /etc/ssl/certs/ca-certificates.crt Is giving me : elmuziko@DSM:~$ sudo cat ${CERT_DIR}/*.crt >> /etc/ssl/certs/ca-certificates.crt -sh: /etc/ssl/certs/ca-certificates.crt: Permission denied am I doing something wrong? And secondly, how do I run the for ; do loop from a PUTTY command loop. Will it not take each line as a single command? Thank you
  7. Just throwing a bit more on this in the hope we find something. My Synocommunity packages list is now empty, and if I try to add a new source, I get told to sod off in not so many words. I was going to try and install nzbget as a temp work around until someone has identified and fixed the issue, though reading on the internet, nzbget is suffering the same issue. NZBGet have published a healthy page on resolutions. https://nzbget.net/certificate-verification Unfortunately a manual install of NZBGet is failing for me on my DSM so I can't put the steps into practise. But maybe some breadcrumbs for someone smarter than I? Then there's this: https://github.com/nzbget/nzbget/releases/tag/v21.2-r2333
  8. VERSION 3 RELEASE Evening all. Version 3 is now ready on my BitBucket repo here WEBSITE CHANGES Support for NVMe drives. Colour coded drive types. Temperature graph is now a modal, it now displays 48 entries (a days worth of entries when the PowerShell script is running in its default setup). ESXi CPU, Memory and Datastore monitors. New 'Sort-By' mode added to Settings (sort by Drive Type). A ton of bugfixes and code improvement. POWERSHELL CHANGES Support for Linux!!! (Tested on Ubuntu). Removed pre-requisite 'Oracle MySQL plugin'. Script now uses SimplySQL from the PowerShell gallery. Will build a scheduled task for you if using a Windows device. Script is now truly a "run once and forget" thing. More bugfixes than I care to count. POWERSHELL FIRST USE In Windows, open up PowerShell_ISE and use : $firstRun = @{ # If you're using Synology to store the DB, change SQLUser from root, and SQLPort to 3307. If using XAMPP, root and 3306 will work. ESXiHost = "IP OR DNS NAME OF ESXI HOST" ESXiPass = ( "YOURPASSWORDHERE" | ConvertTo-SecureString -AsplainText -Force ) SQLUser = "CHANGEME" SQLPass = ( "YOURPASSWORDHERE" | ConvertTo-SecureString -AsplainText -Force ) SQLPort = 3307 SQLHost = "IP OR DNS NAME OF SYNOLOGY HERE" Email = "youremailaddresshere" EmailPass = "YOUR EMAIL APP PASSWORD HERE, OR IF YOU'RE MAD ENOUGH TO NOT HAVE TWO STEP, JUST PLAIN PASSWORD" } Import-Module ESXiSMART.psd1 -Force -Global -Verbose Start-SmartDataScript @firstRun -Verbose If you're using Linux, Install PowerShell, then use : Import-Module ESXiSMART.psd1 -Force -Global -Verbose Start-SmartDataScript -SQLUser "CHANGESQLUSER" -SQLHOST "CHANGESQLHOST" -Email "CHANGEEMAILADDRESS" -EmailPass "plainTextpasswordforemail" -Verbose This will then prompt you for the missing essential items. NEXT STEPS I would very much appreciate support for Linux. I would very much appreciate it if someone could help me build a Scheduled Task for the script to run every 30 minutes or so. I did look into this, using something called CronTab but this getting into the realm of doing stuff I have no knowledge of. Which is a dangerous road to go down. I also want to look at building a container for this. Now the PowerShell supports Linux it can actually go on ESXi. I would imagine the Scheduled Task completion thing needs doing first? Another unknown, but one I feel more comfortable tinkering with until we have it. If anyone can offer help on either a Linux scheduled task or container, I would really appreciate it. And if anyone spots any bugs or has any recommendations for improvements/new features, please do let me know.
  9. Thank you. I've found a few bugs in the PowerShell code so have been concentrating on that. I'm also translating this into Linux PowerShell so I can create a Linux Docker image. Sadly work commitments are slowing me down but will have a lot more free time next month to complete the next version. I will absolutely message when I'm at a testing stage.
  10. One would assume you want Docker for the scheduled task aspect yes? Windows on Docker doesn't work on Synology, but I'll look at altering the PowerShell script to run on Linux and thus solve the problem
  11. Good afternoon all. I've finally got round to updating both the website and PowerShell scripts. Both code improvements and new features. Website Update and Improvements. The website now hosts a 'SETTINGS' page, in which certain aspects can be controlled. Hard Drive order can now be set from small to large, large to small, Raw Device Mapping Naming convention, Controller Location, and Hard Drive Number. An option to hide Removed Drives (great for when you upgrade drives) Alter how many plot points there are on your temperature graph. Each drive can have individually set temperature threshold points. The Index page will alert you to any drive temperature alerts. PowerShell SMART Data Improvements. On the first run, if an email address and plain text password are provided an encrypted credentials file is generated in the temp directory. From there on out, if just an email address is provided, then any irregularities found in the SMART data will trigger an email alert. Email Alerts. As mentioned above, email alerts are a thing now. I've set the script up to send email from GMail, Yahoo and Microsoft based providers. If you're using your own mail server you'll need to provide details of said provider as both a parameter on the main Start-SmartDataScript and in the Send-EmailAlerts script (see image below for information). If you have MFA / 2-Step authentication switched on (and if you don't you really should!) you'll need to provide an app password rather than your standard password. More information on this is provided in the README.MD file within the PowerShell Module. If anyone uses it and finds any bugs, please do let me know. I know of two already but neither effect normal usability and will be fixed in version 3.0.0 - which will include Windows Event logging. Images from Version 2.0.0 The first is a comparison of the old index vs the new. I've replaced a drive whilst building version 2.0.0, this is no longer present on the index. Also note the graph is plotted over a longer time period. In the second image, you can see the new Settings page. Note the SSD drive has different default Temperature thresholds than spinning disks. The third image is an email I got when I removed a drive in favour of a larger one. The fourth is the PowerShell function Send-EmailAlert.psm1. You will need to edit this if your Email provider is not one of the big three. The last image is a work in progress on version 3.0.0. This is a means of building a scheduled task without having to use plain text passwords. Download Information My BitBucket Repo is here . Please note, whilst writing this forum post I noticed a small bug on ESXISmartWebsite. This has been posted to Master, but I have no idea how to update Release 2.0.0 so make sure to grab from Master. Updating Existing Files In both instances, the new repos can be placed directly over the existing ones. Both the PowerShell module and website will attempt to update the existing Database. Scheduled Task Updates Unfortunately, although the update process is easy, there is one extra thing you'll need to do, and that's to update the Scheduled Task you have running. Before that, open a PowerShell window from within the ESXiSMART folder and type: Import-Module EsxiSmart.psd1 -Force -Verbose If you get an error message about vis then just re-run. This is because your scheduled task is already using VmWare resources. Next you'll need to provide your Email address and Email password to build an encrypted file. Start-SmartDataScript -Email youremail@yourdomain.com -EmailPass yourEmailPassword You only need to do this once. From here amend your Scheduled Task script with just the extra parameter -Email youremmail@yourdomain.com Version 3.0.0 Version 3.0.0 is already in the making. Most of the work will be within PowerShell. I intend to add Event Logging so you have visibility of the what's happening in the script whenever it's ran. Also, I'm currently building a small application that encrypts your ESXi and MySQL passwords so they're not needed in plain text for the scheduled task to run. If anyone has any suggestions, notices any bugs, wants to improve the code, or whatever. I'm all ears. Please do let me know.
  12. elmuziko

    Hyper-V

    That was my understanding too. If fab198 has done it, maybe he could share with the community so we could build on it further
  13. elmuziko

    Hyper-V

    You have 6 on there? Amazing. I didn't think 6 was possible at all, thought we were stuck on 5.2. did you have to do anything special to get 6 on there?
×
×
  • Create New...