Giter VIP home page Giter VIP logo

Comments (6)

tuxmea avatar tuxmea commented on July 29, 2024

Many thanks for reporting the issue. Can you please run the following command: puppet resource service alert_manager --debug.
For comparision it would be nice to also have the output of the command for an existing service like puppet resource service ssh --debug (replace ssh with the name of the ssh service).

from puppet-prometheus.

vladgh avatar vladgh commented on July 29, 2024

Of course. Thank you for looking into this.

/opt/puppetlabs/bin/puppet resource service alert_manager --color=false --debug > alert_manager_debug.log 2>&1

/opt/puppetlabs/bin/puppet resource service ssh --color=false --debug > ssh_debug.log 2>&1

from puppet-prometheus.

tuxmea avatar tuxmea commented on July 29, 2024

Many thanks.
Seems as if alert_manager is not really usable on your system:

Debug: /Service[alert_manager]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.conf in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.conf in /etc/init.d
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager in /etc/init.d
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.sh in /etc/init
Debug: Service[alert_manager](provider=upstart): Could not find alert_manager.sh in /etc/init.d
Error: Could not run: Could not find init script or upstart conf file for 'alert_manager'

Is alert_manager installed and running? or not installed at all?

from puppet-prometheus.

vladgh avatar vladgh commented on July 29, 2024

It shouldn't be installed at all; I just installed node exporter:

  class { 'prometheus::node_exporter':
    version => '0.15.2',
  }

Meanwhile I did some more testing and I think it's more of a puppet issue than the module itself.

Running the same command for a service that should not exist:
/opt/puppetlabs/bin/puppet resource service madeupservice --debug

on a Trusty (non-systemd) fails:

Debug: /Service[madeupservice]: Provider upstart does not support features flaggable; not managing attribute flags
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.conf in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.conf in /etc/init.d
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice in /etc/init.d
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.sh in /etc/init
Debug: Service[madeupservice](provider=upstart): Could not find madeupservice.sh in /etc/init.d
Error: Could not run: Could not find init script or upstart conf file for 'madeupservice'

while on Xenial returns the correct values:

Debug: Executing: '/bin/systemctl is-active madeupservice'
Debug: Executing: '/bin/systemctl is-enabled madeupservice'
service { 'madeupservice':
  ensure => 'stopped',
  enable => 'false',
}

from puppet-prometheus.

tuxmea avatar tuxmea commented on July 29, 2024

That is great information. We can easily check in the fact for an error from puppet resource command. I can work on that within the next few days.

from puppet-prometheus.

vladgh avatar vladgh commented on July 29, 2024

Thank you. I appreciate all your help.

from puppet-prometheus.

Related Issues (20)

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.