Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
A Plugin to read files from Unit4 API, tested it on Unit4 SPE6: http://servername:port/prod/rest/api/v1/02/salesOrders?filter= This module let you split te lines with a split character and count keywords and add up amounts (In cents) It is fully written in Bash, so floating point is not possible. It also generates Graphs.
Current Version
1.02
Last Release Date
2022-01-10
Owner
Roland de Leeuw
Compatible With
count_lines.sh Version 1.02 - Count the lines of the url we get
Usage: ./coung_lines.sh --http <'http://'> --url <yoururl.nothing> -u <username for url> -p <password for url> --warning <#minimal_lines|amount|#number of keywords> --critical <#minimal_lines critical|amount|#number of keywords> --verbose <yes/no> --mode <minimal_size|maximum_size| minimal_lines|maximum_lines|minimal_calc|maximum_calc|minimal_keyword|maximum_keyword> --splitcharacter <,|}|>|:> --keyword <Keyword to search for>
* -H | --http --> Where do we read from? http:// OR https:// OR ftp:// * -U | --url --> Enter the url without: http(s):// OR ftp:// * -w | --warning --> Warning minimal #number of lines/keywords/bytes(size)/amount * -c | --critical --> Critical minimal #number of lines/keywords/bytes(size)/amount -h | --help --> Show help page -V | --version --> Show version * -m | --mode --> Mode: minimal_size : Minimal file size needed (File size must be bigger than Warning & Critical threshold) maximum_size : Maximum file size needed (File size must be smaller than Warhing & Critical threshold) minimal_lines : Minimal #number of lines must be above warning & critical Threshold maximum_lines : Maximum #number of lines must be less than warning & critical Threshold minimal_calc : Minimal amount that needs to be calculated before warning (Threshold only workss with whole integers) maximum_calc : Maximum amount that needs to be calculated before warning (Threshold only workss with whole integers) minimal_keyword : Minimal number of keywords that needs to be found before warning maximum_keyword : Maximum number of keywords that needs to be found before warning
-k | --keyword --> Keyword: Enter keyword that you want to search, works only in MODE: minimal/maximum _keyword | --verbose --> Show more information about the steps for troubleshooting purpuses * -s | --splitcharacter --> With calculating the amount (-m|--mode minimal/maximal _calc you need to set a split character so the script knows where the fields are split. Sometime all data is presented on one line, then use the split character to split the line into sperate lines so the script can pars ethe whole thing -p | --password --> Enter a password if it is needed to access the url -u | --username --> Enter a if it is needed to access the url
* --> Mandatory
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!