atxbyea / ipmi2mqtt

GNU General Public License v3.0
3 stars 2 forks source link

Config Help? #1

Open tmaniac opened 3 years ago

tmaniac commented 3 years ago

Hello, i'd like to read sensor data from my PowerEdge R620 using IPMI.

I stumbled upon your docker-file.

Can you please give a little more explanation about the config in the docker-file? Thank you!

Tediore commented 3 years ago

I'm not the author, but a Dockerfile generally doesn't require any changes by the end user. A Dockerfile is just used to create an image, which is then run by a container. https://docs.docker.com/engine/reference/builder/

tmaniac commented 3 years ago

Well, you're mostly right.

However, in the docker-compose you can specify multiple configuration options. And since i'm not super schooled in IPMI i'm a bit stuck :(

Bastilms commented 2 years ago

Hey, I don't know if it is relevant anymore for you, but I have a configuration example for you. If you want to use it in the way he explained, you can use it as following:

       - IPMIHOST=<IP\DNS of IPMI host>
        - IPMIUSER=<IPMI user>
        - IPMIPASS=<IPMI password>

These first options are for your iDRAC. First the IP, then your username and the last option is your password.

It took me a wile to figure out what options I need. I ended up like this.

        - IPMIVARIABLE1=lanplus
        - IPMIVARIABLE2=sensor
        - IPMIGREP=Pwr
        - IPMICUT=20-25

I also added a restart Option to the compose file. restart: unless-stopped

The last thing I did to get it up and running, I added a line to the Dockerfile: RUN touch /var/log/dell.log

After all this changes, you can start the container using the following commands: enter directory: cd ipmi2mqtt

build image: docker build -t ipmi2mqtt -f Dockerfile .

docker-compose: docker-compose up -d