Comments (9)
okkkkk. it worked. thank you so much.
from argus.
it says that it failed converting "X" to a semantic version. If all versions are in this style, consider adding url_commands to get the version into the style of 'MAJOR.MINOR.PATCH' (https://semver.org/), or disabling semantic versioning (globally with defaults.service.semantic_versioning or just for this service with the semantic_versioning var)
It doesn't look like you have that regex in a url_command as I get a variation of that message on a query with only that URL. It's failing without that as it's trying to put the whole page content as the version. But HTML isn't a version number, so it fails the semantic version check
from argus.
thanks for the quick response. but can you explain a bit in depth?
from argus.
You've got it querying that URL to get a version number. You can add url_commands to extract specific text from that page, e.g. RegEx.
I don't know what version you want, but if you wanted the GMP version, you could add a url_command with RegEx GMP.*Version ([\d.]+)
Greenbone:
options:
semantic_versioning: false
latest_version:
type: url
url: https://www.greenbone.net/en/documents/
url_commands:
- type: regex
regex: GMP.*Version ([\d.]+)
If you just want the 22.04
version, you could go with Greenbone OS ([\d.]+)
as the regex
from argus.
not working. i got this error. create "" failed (fetches failed)
latest_version - regex "regex" not matched on content for version.
from argus.
What is your YAML? And I noticed you opened an issue in greenbone/actions#1019. I'd say to close that one as it's an issue you're experiencing with Argus
from argus.
This is all you'd need on the WebUI
from argus.
from argus.
You're putting the regex inside the Require block. That's more for adding other things that are required before you treat the version as available. e.g. if you monitored release-argus/Argus
, you could add RegEx Content of Argus-{{ version }}.linux-arm64
. This would require that binary to be available on the GitHub release.
Add a URL Command by pressing the + above the Require
card (and remove both the 'RegEx Content' and 'RegEx Version'
This require block more helps you filter out versions that don't meet extra criteria (such as having an arm release for example). So if the page had multiple versions, Argus is able to return the latest version that satisfies this extra RegEx
from argus.
Related Issues (20)
- bug: setting a default notifier to an empty map has no effect HOT 6
- feat: Display index thru GUI HOT 2
- feat: automatic fallback to tags for GitHub HOT 5
- feat: Update service deployed version when manually refreshing via the GUI HOT 2
- feat: Support for XPATH HOT 2
- get latest release from codeberg.org HOT 1
- feat: Ability to replace characters in either the latest_version or deployed_version HOT 6
- bug: Duplicate notifications sent HOT 5
- feat: Support for hardcoded current version HOT 2
- bug: SMTP E-Mail "fromname: XXX" not working HOT 1
- feat(web): custom favicon support HOT 1
- feat: Ability to specify environment variables in config HOT 2
- bug: not rendering URL to the end HOT 2
- feat: Add a test connection for notifiers HOT 3
- feat: Add link icons in Edit Service UI HOT 6
- bug: Dockerfile stopped building 7 days ago HOT 8
- feat: Display the latest_version_timestamp for each project HOT 7
- feat: Add curl to container image HOT 1
- feat: Support for deployed version POST requests HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argus.