Permalink
Browse files

PT42357515: mongo replica set config should be captured in snapshot

- added output for rs config and state + server status
  • Loading branch information...
1 parent ea3cc90 commit c23acea5e37dafefc1ac6daa36e0f17ee5b72894 @dizzy dizzy committed Jan 28, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 sipXcommserverLib/bin/sipx-snapshot.in
View
18 sipXcommserverLib/bin/sipx-snapshot.in
@@ -910,6 +910,24 @@ EOF
iptables --table $t --list --verbose --numeric --line-numbers 2>&1
done
+ # Get mongodb rs config
+ echo ""
+ echo "======== MongoDB replica set config:"
+ echo "rs.config()"
+ mongo --eval "printjson(rs.config())"
+
+ # Get mongodb rs status
+ echo ""
+ echo "======== MongoDB replica set status:"
+ echo "rs.status()"
+ mongo --eval "printjson(rs.status())"
+
+ # Get mongodb server status
+ echo ""
+ echo "======== MongoDB server status:"
+ echo "db.serverStatus()"
+ mongo --eval "printjson(db.serverStatus())"
+
# Execute system monitoring commands
for command in \
"ps -efww" \

0 comments on commit c23acea

Please sign in to comment.