Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="75">
<server artifactsdir="artifacts" commandRepositoryLocation="default" serverId="9fa0bbc4-e700-4150-8d2e-aeb976423a65">
<security>
<passwordFile path="/tmp/passwd" />
</security>
</server>
<repositories>
<repository id="92e58f21-59de-4378-90cd-0e1ab46328c0" name="ora">
<pluginConfiguration id="yum" version="2" />
ubuntu@dcmitool0:~$ ps -ef | grep exec
root 18910 18909 0 19:57 ? 00:00:00 sudo su -c /home/ubuntu/exec-dcmitool.sh
root 18911 18910 0 19:57 ? 00:00:00 su -c /home/ubuntu/exec-dcmitool.sh
root 18912 18911 0 19:57 ? 00:00:00 /bin/bash /home/ubuntu/exec-dcmitool.sh
root 20787 18912 0 20:08 ? 00:00:00 /bin/bash /home/ubuntu/exec-dcmitool.sh
root 20788 20787 0 20:08 ? 00:00:00 /bin/bash /home/ubuntu/exec-dcmitool.sh
ubuntu 20795 17143 0 20:08 pts/1 00:00:00 grep --color=auto exec
1125 tty5 Ss+ 0:00 /sbin/getty -8 38400 tty5
1128 tty2 Ss+ 0:00 /sbin/getty -8 38400 tty2
1129 tty3 Ss+ 0:00 /sbin/getty -8 38400 tty3
1131 tty6 Ss+ 0:00 /sbin/getty -8 38400 tty6
1148 ? Ss 0:00 cron
1156 ? Ss 0:00 /usr/sbin/sshd -D
7036 ? Ss 0:00 \_ sshd: ubuntu [priv]
7062 ? S 0:00 | \_ sshd: ubuntu@pts/0
7063 pts/0 Ss 0:00 | \_ -bash
7078 pts/0 S 0:00 | \_ sudo su
#!/bin/bash
INTERVAL="${COLLECTD_INTERVAL:-1}"
HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}"
#echo $HOSTNAME "$INTERVAL"
while sleep "$INTERVAL"
do
TEMP=($((dcmitool sdr type Temperature | awk -F'|' '{ print $5; }' | awk '{ print $1; }' | head -n 1 ) 2>/dev/null))
# echo "PUTVAL $HOSTNAME/dcmitool/temperature interval=$INTERVAL N:$TEMP"
[assignment]
#driver = keystone.assignment.backends.sql.Assignment
driver = keystone.identity.backends.ldap.Identity
 
[ldap]
 
#
# Options defined in keystone
#