Coder Social home page Coder Social logo

Comments (11)

ripienaar avatar ripienaar commented on June 25, 2024

should be an easy check, wanna give it a try fixing it?

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

For some reason, I'm getting this error even if the file is present and permission is correct:
UNKNOWN: Summary file not found or not readable. Check /var/lib/puppet/state/last_run_summary.yaml

Any idea?

from monitoring-scripts.

ripienaar avatar ripienaar commented on June 25, 2024

@kstakledo so where is your file called that? There is a CLI flag to configure the path.

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

drwxr-xr-t 3 puppet puppet 4096 Jan 13 16:20 .
drwxr-x--- 12 puppet puppet 4096 Apr 9 2016 ..
-rw-r----- 1 root root 1024 Jan 13 16:20 classes.txt
drwxr-xr-x 2 root root 4096 Sep 29 2015 graphs
-rw-r----- 1 root root 160267 Jan 13 16:20 last_run_report.yaml
-rw-r--r-- 1 root root 874 Jan 13 16:20 last_run_summary.yaml
-rw-r----- 1 root root 6096 Jan 13 16:20 resources.txt
-rw-rw---- 1 root root 82239 Jan 13 16:20 state.yaml
root@dc1-aie-fms-01:/var/lib/puppet/state#

I already configured the flag. Same thing.

from monitoring-scripts.

ripienaar avatar ripienaar commented on June 25, 2024

And you ran the check as root?

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

it's being ran as a different user, but as you can see the file is readable by everyone based on its permission.

from monitoring-scripts.

ripienaar avatar ripienaar commented on June 25, 2024

The parent dir is not.

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

Good spot! Let me try and check.

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

Nope, didn't work. Even with 777 permission on both the directory and the file.

from monitoring-scripts.

ripienaar avatar ripienaar commented on June 25, 2024

As the user you are running the the check as. Can you cat the file?

from monitoring-scripts.

kstalledo avatar kstalledo commented on June 25, 2024

just added the user that does the check to the puppet group. all working now. thanks!

from monitoring-scripts.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.