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

Commit

Permalink
nmon external cmd inter-os improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Mar 26, 2017
1 parent a9cb6d7 commit a5b8b39
Showing 1 changed file with 2 additions and 4 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`" >>$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

0 comments on commit a5b8b39

Please sign in to comment.