Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
inter-os compatibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Mar 26, 2017
1 parent a9cb6d7 commit 236a1d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions bin/nmon_external_cmd/nmon_external_snap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
# CAUTION: ensure your custom command does not output any comma within the field name and value

# Number of running processes
/bin/echo "PROCCOUNT,$1,\c" >>$NMON_EXTERNAL_DIR/nmon.fifo
ps -ef | wc -l >>$NMON_EXTERNAL_DIR/nmon.fifo
echo "PROCCOUNT,$1,`ps -ef | wc -l`\c" >>$NMON_EXTERNAL_DIR/nmon.fifo

# Uptime information (uptime command output)
/bin/echo "UPTIME,$1,\c" >>$NMON_EXTERNAL_DIR/nmon.fifo
echo "\"`uptime | sed 's/^\s//g' | sed 's/,/;/g'`\"" >>$NMON_EXTERNAL_DIR/nmon.fifo
echo "UPTIME,$1,\"`uptime | sed 's/^\s//g' | sed 's/,/;/g'`\"" >>$NMON_EXTERNAL_DIR/nmon.fifo
2 changes: 1 addition & 1 deletion default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ label = TA-nmon
[launcher]
author = Guilhem Marchand
description = Technical Addon for Nmon Performance Monitor
version = 1.3.02
version = 1.3.03

0 comments on commit 236a1d8

Please sign in to comment.