Git Product home page Git Product logo

Comments (5)

mperham avatar mperham commented on August 21, 2024

What does "initctl status nginx" say?

On Oct 3, 2014, at 05:41, Alan Orth [email protected] wrote:

inspeqtorctl status shows host stats, but nothing for the nginx service:

...
Service: nginx [Unknown/0]
cpu:system 0.0%
cpu:total_system 0.0%
cpu:total_user 0.0%
cpu:user 0.0%
memory:rss -0.00m 100m
nginx:Active_connections -1.0 1
nginx:requests 0.0 1000
... with the following INQ. /etc/inspeqtor/conf.d/nginx.inq:

check service nginx with hostname localhost, port 80, endpoint /nginx_status
if memory:rss > 100m then alert
if nginx:Active_connections > 1 then alert
if nginx:requests > 1000 then alert
... but nginx stub_status is on:

curl localhost/nginx_status

Active connections: 2
server accepts handled requests
36 36 34
Reading: 0 Writing: 2 Waiting: 0
Configuration is Ubuntu 14.04.1 with nginx 1.6.1 and inspeqtor 0.5.0.


Reply to this email directly or view it on GitHub.

from inspeqtor.

alanorth avatar alanorth commented on August 21, 2024

Here you go:

# initctl status nginx
initctl: Unknown job: nginx

from inspeqtor.

mperham avatar mperham commented on August 21, 2024

Inspeqtor does not monitor legacy services in /etc/init.d. You'd need to convert nginx to use Upstart. You can see the set of Upstart services in /etc/init and here's the wiki page on Upstart

I will add a feature to Inspeqtor to list which jobs are available for monitoring and which ones are not so this is easier for users to understand.

from inspeqtor.

alanorth avatar alanorth commented on August 21, 2024

Ah, ok, fair enough. I guess I was expecting that, since Ubuntu 14.04 and nginx feature in the docs as examples of what "works", that it would just work out of the box. :) I guess this is good to know, as you'll probably get a lot of this question!

FWIW, I'm using the nginx.org PPA. I haven't tried the Ubuntu packaged nginx, so I don't know if it ships with upstart support.

from inspeqtor.

mperham avatar mperham commented on August 21, 2024

Got it, thanks for the detail, that's really good to know. I'd hope the Ubuntu-native package is using Upstart.

from inspeqtor.

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.