Skip to content

Commit

Permalink
0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yubu committed Mar 3, 2017
1 parent 7968979 commit e061bf6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
#### [0.1.8] - 2017-03-03
#### Fixed
- Get-ZabbixItem error when running with no parameters

#### [0.1.7-bf] - 2016-10-22
#### Fixed
- Cosmetic fixes
Expand Down Expand Up @@ -33,4 +37,3 @@
#### [0.1.2] - 2016-09-12
#### Added
- Added `psbbix.psd1` for support with the [PowerShellGallery](https://www.powershellgallery.com)

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,4 @@ Get-ZabbixHttpTest @zabSessionParams -HttpTestName httpTest | Set-ZabbixHttpTest
Remove-ZabbixHttpTest @zabSessionParams -HttpTestID (Get-ZabbixTemplate @zabSessionParams | ? name -eq "Template Name" | Get-ZabbixHttpTest @zabSessionParams | ? name -match httpTests).httptestid
## delete http tests
```

2 changes: 1 addition & 1 deletion epoch-time-convert.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Function convertTo-epoch {

$date=$date -f "mm/dd/yyyy hh:mm"
(New-TimeSpan -Start (Get-Date -Date "01/01/1970") -End $date).TotalSeconds
}
}
2 changes: 1 addition & 1 deletion psbbix.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'psbbix.psm1'

# Version number of this module.
ModuleVersion = '0.1.7'
ModuleVersion = '0.1.8'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
2 changes: 1 addition & 1 deletion psbbix.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,7 @@ Function Get-ZabbixItem {
Cassandra: Get-ZabbixItem @zabSessionParams -ItemName 'byte' -HostId (Get-ZabbixHost @zabSessionParams | ? name -match "cassandraNodes").hostid | select @{n="hostname";e={$_.hosts.name}},key_,@{e={(convertfrom-epoch $_.lastclock).addhours(+1)};n="Time"},@{n="prevvalue";e={[math]::round(($_.prevvalue/1gb),2)}},@{n="lastvalue";e={[math]::round(($_.lastvalue/1gb),2)}} | sort hostname | ft -a
#>

[cmdletbinding()]
[CmdLetBinding(DefaultParameterSetName="None")]
Param (
[String]$SortBy="name",
[String]$ItemKey,
Expand Down
2 changes: 1 addition & 1 deletion zabbix-db-size-calc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ function Get-zabbixDBsize {

write-host "Zabbix projected DBSize in GB = $("{0:N2}" -f $totalDBSizeGB)" -f cyan
write-host "Zabbix projected DBSize in MB = $("{0:N2}" -f $totalDBSizeMB)" -f cyan
}
}

0 comments on commit e061bf6

Please sign in to comment.