-
-
Notifications
You must be signed in to change notification settings - Fork 61
qts-version: Shows up to date even when new firmware available #693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Tested with QTS v4.5.6, v5.0.1 and v5.1.0 - works as expected. Please try the newest libs and the newest version of this plugin. |
Hi markuslf, first of all, thanks for your work!
But when I go to the Qnap GUI and check for new update, it says there is one available:
Do I missing something or do you think they have changed something in a minor version of QTS 5.1 again? Side note: The Disk-Smart plugin now works again since the changes. I had problem with that one as well. Thanks and best regards |
Hmmm... in this case it would help a lot if you could send me the output of these two
|
I would like to help, but I am not so versed in this topic. Which SID should be used? I think the user-session Icinga uses to connect to the Qnap NAS. I see that this special user has an open connection to the NAS but I don't know how to get the session id of that user. May you can help with that? As a workaround, I logged in to the NAS and used the SessionID from the browser to connect with curl. Than I tried the following commands (with both HTTPS urls you gave me):
But I got nothing special. Sometimes only three lines containing a number and sometimes something like:
If you can give me a hint here, I will send you the needed output. Thanks in advance and best regards |
Use Bash and do this. Adapt this to your environment:
Do the login and get the authSid:
Search for Please give me the output of the following commands:
|
Thanks for the help. Here is the output of the first command:
And the output of the second command:
I just changed the IP and MAC addresses. I hope it helps. Thanks a lot. |
Thank you. The plugin is correct. According to the data returned by your QTS appliance, there is no newer version applicable. Your NAS reports in its 2nd answer:
This is exact the same version you have currently installed (from its 1st answer):
This may be due to some QNAP-specific update behavior (updates may be distributed in chunks). The QNAP-GUI seems to use some other info channel than the API. I will close this issue. |
Hey markuslf, thanks for checking that. Sometimes there updates are critical because they close some serious vulnerabilities, so I am wondering, that the API still shows up2date even the timestamp of the update is 2 weeks old. I will keep an eye on it, when the API recognizes/finds the new version. Again, thanks a lot for your help and work. Keep on with it! |
This issue respects the following points:
Which variant of the Monitoring Plugins do you use?
Bug description
The plugin reports the correct firmware version installed, but it says that it is up to date, even when a newer firmware available. This is the current output of the plugin:
QTS v5.0.1.2376 Build 20230421 is up to date
The newest version available is 5.0.1.2444 Build 20230629. After login to the QNAP GUI, the firmware version update window opens. So the version must be for my model.
Steps to reproduce - Plugin call
'/usr/lib/nagios/plugins/c_check_qts-version' '--insecure' '--password' 'xxx' '--url' 'https://qnap.domain.tld:4444' '--username' 'xxx'
Steps to reproduce - Data
No response
Environment
Linux hostname 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
Plugin Version
v2023071203
Python version
3.9.2
List of Python modules
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: