Skip to content

Commit

Permalink
Fix : Syntaxe in json + add Unit macro
Browse files Browse the repository at this point in the history
  • Loading branch information
DessaiImrane committed Jan 10, 2014
1 parent 540e366 commit 0500486
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pack/commands.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define command {

define command {
command_name check_linux_disks_ssh
command_line $PLUGINSDIR$/check_disks_by_ssh.py -H $HOSTADDRESS$ -w $_HOSTSTORAGE_SSH_WARN$ -c $_HOSTSTORAGE_SSH_CRIT$
command_line $PLUGINSDIR$/check_disks_by_ssh.py -H $HOSTADDRESS$ -w $_HOSTSTORAGE_SSH_WARN$ -c $_HOSTSTORAGE_SSH_CRIT$ -U $_HOSTSTORAGE_SSH_UNIT$
}

define command {
Expand Down
3 changes: 3 additions & 0 deletions pack/linux-ssh.pack
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"_STORAGE_SSH_CRIT": {"type":"percent",
"description": "Critical level for used disk space"
},
"_STORAGE_SSH_UNIT": {"type":"string",
"description": "Unit of disk space : B, KB, MB, GB or TB"
},

"_CPU_WARN": {"type":"percent",
"description": "Warning level for the CPU usage"
Expand Down
1 change: 1 addition & 0 deletions pack/templates.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ define host{

_STORAGE_SSH_WARN 90
_STORAGE_SSH_CRIT 95
_STORAGE_SSH_UNIT GB
_MEMORY_SSH_WARN 90
_MEMORY_SSH_CRIT 95
# Not yet implemented
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"types": ["pack"],
"version": "1.4",
"homepage": "https://github.com/DessaiImrane/pack-linux-ssh",
"author": "Imrane Dessai,
"author": "Imrane Dessai",
"description": "Linux checks based on SSH without any script on distant server",
"contributors": [
{
"name": "Imrane Dessai,
"name": "Imrane Dessai",
"email": "[email protected]"
}
],
Expand Down

0 comments on commit 0500486

Please sign in to comment.