Skip to content

Commit 3dee21e

Browse files
authored
Merge pull request #10 from sawft99/GrammarFixes
Grammar fixes
2 parents 1d2cf29 + 9c03903 commit 3dee21e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

CheckNCPAVersion.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#Forces TLS 1.2
77
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
88

9-
#Find latest version from Github
9+
#Find latest version from GitHub
1010
$LatestVersion = ((Invoke-WebRequest $NCPAVersionURL.Uri -UseBasicParsing).Content).TrimEnd('')
1111
$CurrentVersion = $NCPAExe.VersionInfo.ProductVersion
1212

@@ -18,12 +18,12 @@ if (!(Test-Path $NCPAExe)) {
1818
} elseif ($CurrentVersion -eq $LatestVersion) {
1919
Write-Output 'OK: NCPA is up to date'
2020
Write-Output "Latest Version: $LatestVersion"
21-
Write-Output "Current Verison: $CurrentVersion"
21+
Write-Output "Current Version: $CurrentVersion"
2222
$LASTEXITCODE = 0
2323
} elseif ($CurrentVersion -ne $LatestVersion) {
2424
Write-Output 'WARNING: NCPA is out of date'
2525
Write-Output "Latest Version: $LatestVersion"
26-
Write-Output "Current Verison: $CurrentVersion"
26+
Write-Output "Current Version: $CurrentVersion"
2727
$LASTEXITCODE = 1
2828
} else {
2929
Write-Output 'UNKNOWN: Unknown issue'

CheckPSSignatures.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Check each powershell plugin in the plugins folder to see when script signing cert will expire
1+
#Check each PowerShell plugin in the plugins folder to see when script signing cert will expire
22

33
$PluginsFolder = "$env:ProgramFiles\Nagios\NCPA\plugins"
44
#$PluginsFolder = 'C:\\Program Files\\Nagios\NCPA\\plugins'

CheckTeamviewerVersion.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Check if latest Teamviewer version is installed
1+
#Check if latest TeamViewer version is installed
22

33
[System.UriBuilder]$LatestVersionURL = 'https://www.teamviewer.com/en-us/download/windows/'
44

@@ -17,7 +17,7 @@ if ($TVExe.Exists -eq $false) {
1717
[System.IO.FileInfo]$TVExe = ${env:ProgramFiles(x86)} + '\' + 'TeamViewer' + '\' + 'TeamViewer.exe'
1818
}
1919
if ($TVExe.Exists -eq $false) {
20-
Write-Output 'UNKNOWN: Teamviewer not found or not installed'
20+
Write-Output 'UNKNOWN: TeamViewer not found or not installed'
2121
exit 3
2222
}
2323

@@ -37,7 +37,7 @@ $LatestVersion = $LatestVersion.Trim('<span data-dl-version-label>').trim('</')
3737
$LatestVersion = ($LatestVersion -split '\.' | Select-Object -First 3) -join '.'
3838
[version]$LatestVersion = $LatestVersion
3939

40-
#Compare newest verison and current version
40+
#Compare newest version and current version
4141
[string]$InstalledVersion = $TVExe.VersionInfo.FileVersion
4242
$InstalledVersion = ($InstalledVersion -split '\.' | Select-Object -First 3) -join '.'
4343
[version]$InstalledVersion = $InstalledVersion

CheckWazuhVersion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (!(Test-Path $WazuhVersionFile)) {
1919
#Forces TLS 1.2
2020
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
2121

22-
#Find latest version from Github
22+
#Find latest version from GitHub
2323
$WebPage = New-Object -ComObject "HTMLFile"
2424
$Content = (Invoke-WebRequest -Uri $LatestVersionURL.Uri -UseBasicParsing).Content.ToString()
2525
$WebPage.write([ref]$Content)

CheckWinLocalAccounts.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ShouldBeEnabledAccounts = @(
1717
'Administrator'
1818
)
1919
# Group names also work for the $ShouldBeAdminAccounts variable
20-
# It includes the $ComputerName and $Domain variables in front because the get command for local groups returns user accounts with the domain or computername in front
20+
# It includes the $ComputerName and $Domain variables in front because the get command for local groups returns user accounts with the domain or computer name in front
2121
$ShouldBeAdminAccounts = @(
2222
"$ComputerName\Administrator",
2323
"$Domain\Domain Admins"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Various Nagios plugins
2929
- Also measured in total hours
3030
- Will also return
3131
- A CRITICAL value if any Error or Critical level event is found
32-
- A WARNING value if any Warninng level event is found
32+
- A WARNING value if any Warning level event is found
3333
- Errors detected (Non info) in events will override uptime settings
3434
- See example
3535
- Nagios Exchange page: https://exchange.nagios.org/directory/Plugins/System-Metrics/Uptime/CheckForRestartsAndUptime/details
@@ -55,7 +55,7 @@ Various Nagios plugins
5555

5656
## [CheckNCPAVersion.ps1](./CheckNCPAVersion.ps1)
5757

58-
- Checks if current NCPA installed is up to date based on the latest github release
58+
- Checks if current NCPA installed is up to date based on the latest GitHub release
5959
- Nagios Exchange page: https://exchange.nagios.org/directory/Plugins/Software/CheckNCPAVersion/details
6060

6161
### Arguments
@@ -90,7 +90,7 @@ Various Nagios plugins
9090

9191
## [CheckTeamviewerVersion.ps1](./CheckTeamviewerVersion.ps1)
9292

93-
- Checks if computer is running an outdated Teamviewer
93+
- Checks if computer is running an outdated TeamViewer
9494
- Inside script there is a variable for $MaxMinorDif with a default value of '4'
9595
- This will determine the number of revisions between the latest version and the installed version
9696
- If it is more than 4 minor revisions behind, or 1+ major release behind, it reports CRITICAL

0 commit comments

Comments
 (0)