Comments (5)
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.
Here you go:
# initctl status nginx
initctl: Unknown job: nginx
from inspeqtor.
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.
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.
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)
- Suggestions for monitoring systemd-exported foreman services? HOT 4
- Inspeqtor appears to lose track of running process (does not exist: no such process). HOT 3
- Alerting via Amazon SES HOT 1
- Monitoring Passenger when it's automatically started by nginx HOT 2
- No sidekiq service in "sudo inspeqtorctl status"
- panic: runtime error: index out of range HOT 22
- Inspecqtor won't start if alert config missing HOT 6
- Getting a swap alert when swap is at 0 HOT 10
- Support for sending via Amazon SES API
- Inspeqtor repo is down HOT 3
- packagecloud too many requests / Bandwidth or Storage Limit Exceeded HOT 1
- Better CPU / Memory accounting using CGroups
- Simplify or document build process
- monitor mysql failed on Ubuntu 16.04
- Error in S0: When running on Arch Linux
- Unable to install on Ubuntu 18.04.1 HOT 1
- INQ Configuration question HOT 3
- metrics explanation needed HOT 1
- How to target a service instance that has @ symbole ?
- inspeqtorctl fails with nc: invalid option -- 'U' (workaround possible) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspeqtor.