All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
OpenStatus Server Monitoring System Release
For a few weeks now, I've been building upon DimeCadmium's scrd and nikkiii's status page to build a more comprehensive server monitor system that is easy for everyone to deploy to their LEBs. I figured that the LET community would like it, so I'm announcing the release here
OpenStatus adds process monitoring, an interface for adding servers, an improved alerting system, and a push-based updating system, as opposed to the polling-based system of scrd. OpenStatus Server’s web interface allows system administrators to view all of the information at a glance. It also sends alerts via email when a server reports high memory or disk usage, high load, a monitored service is down, or a server is completely unreachable. OpenStatus Client is the portion of OpenStatus that goes on the servers you’d like to monitor. It does the collection of all of the requested information, and sends it to OpenStatus Server.
I've set up a Debian repository for OpenStatus, to make installation a breeze. Click here for install instructions. A demo is available here. GitHub repo available here.
I've tested it extensively, but, as with all software releases, there are bound to be bugs that I just haven't encountered, so please, if you find a bug (or just plain don't like it), let me know (use GitHub's issue tracker, or post here). The great thing about using a Debian repo is that it makes it quick and easy for you to get bugfix updates as soon as they're available.
Enjoy!
Comments
Very nice, I'll review the code and deploy this on test.excloo.com ^^
This looks very cool. I guess I might be the test dummy and try it out tonight.
It's really much faster than manually deploy everything! Thanks for this script and is there any plan to add a simple ping monitor like http://buyvmstatus.com/?
Wow, that's simply amazing stuff! And also made it available as Debian repo
Very nice work , thank you, will be trying it. Keep it up ![:) :)](https://lowendtalk.com/resources/emoji/smile.png)
Debian 5:
It looks like python2.6 is not available for Debian 5?
it is, but you have to install it from source
I keep getting "Unable to connect to the database - please try again later."
What am I doing wrong now?
What @vedran said. On Squeeze and it will not connect to db (despite correct ownership/location etc).
Both, server and client, packages work fine on Debian Squeeze for me. NickM, it would be good to add support for Debian Lenny too![;) ;)](https://lowendtalk.com/resources/emoji/wink.png)
@trelawney and @vedran: Check your nginx error log, it should give you more information about the error.
@fan: Good idea. I should definitely be able to add a check for ping response time.
@iKocka: I will be setting up a Debian Lenny box later tonight to test on. Hopefully, it will work fine with python 2.5, which is Lenny's default python, since 2.6 is not packaged for Lenny.
... @ vedran.. i think i just had to restart /init.d/php-cgi , it worked after that![:) :)](https://lowendtalk.com/resources/emoji/smile.png)
Yes, it works now. apt-get install sqlite php5-sqlite and restarting php-cgi did the trick, but I'm not sure which part![:D :D](https://lowendtalk.com/resources/emoji/lol.png)
Likely both. The php5-sqlite module is required, and when installing php modules while running php-cgi, a restart of php-cgi is required. I'll add a note about that to the install instructions.
NickM, how do I delete or edit a server? I accidentally reloaded the page and now I have 2 servers with the same name
Delete server from openstatus.db which is located in /etc/openstatus/.
@vedren and @iKocka I've made a version that works with python 2.5 on Debian Lenny. I've only tested it a little bit, but everything seems to work.
Replace
deb http://deb.nickmoeck.com/debian stable main
withdeb http://deb.nickmoeck.com/debian oldstable main
then runapt-get clean
andapt-get update
, then install. Let me know if you notice any further issues.Thanks for the update @NickM
It installs on Lenny now. Once installed, the client runs as
While on Squeeze it runs as just openstatus-client.
If you try /etc/init.d/openstatus-client restart (Lenny), it won't detect the client and it will just start another instance.
Also, clients can't connect to server (both Lenny and Squeeze), logs keep showing "Could not connect to server: Connection refused", I've set the server IP and port correctly in the config files and iptables are not blocking the traffic. What else can be wrong?
It doesn't work for me![:( :(](https://lowendtalk.com/resources/emoji/frowning.png)
Ah yes, that's because setproctitle isn't available for python 2.5 on Lenny, which I didn't take into consideration when adjusting the init script. Will be fixed in an update tomorrow.
I'm not sure what the problem could be here - I've tested it connecting to servers running both the Lenny and Squeeze versions of -server. My tests were done on a clean install of Lenny... perhaps something is conflicting. Can you give me a bit more information about your setup so I can try to replicate the problem? Also, if you don't mind, try setting the server IP to 96.8.120.80, port 12999, and see if the problem persists (it's the server I'm using for the demo, so I know that one works). If it still gives you "Connection refused", the issue is in the client part.
Can you be more specific? What doesn't work?
As soon as I can resolve these issues, I'll push an updated package.
Take a look at your script running on my server (s03 is a fresh install of Debian 5): http://status.jagodic.im/index.php
openstatus-client.conf:
Process seems to be running too:
Output in /var/log/openstatus-client.log ?
Here it is:
@NickM
I can connect to your server, so it looks like the problem is in server.
netstat shows it's listening on 12999, but I can't connect to it, tried with telnet and I get the same error (connection refused).
I'll try installing in on another VPS and see what happens.
Found the problem:
I changed the listening IP in the server config to actual IP, but it looks like it only works if you leave it at 0.0.0.0
Now it connects, but I get "JSON error from [IP]" in the server log.
Edit2: actually got that error only once, it's not repeating. But it's also not updating anything![:/ :/](https://lowendtalk.com/resources/emoji/confused.png)
In /usr/bin/openstatus-client, after the line:
print 'JSON error from %s\n' % (addr[0])
can you add:
print data
(If you're not familiar with python, make sure that you indent it to the same indentation level as the first print statement, using 4 tabs).
Then, run openstatus-client in debug mode:
openstatus-client -d
That should output the JSON that is being sent to the server. Send me that output. Thanks.
@NickM: Is it possible to monitor openstatus-server too?
@iKocka
Surely you can install the client on the same box where the server is running?
@iKocka: yes, you can monitor the server that openstatus-server is running on. You may have to use 127.0.0.1 as the IP. Actually, I had one server that required 127.0.0.1 and the other required the actual IP, which I find kind of weird.
@NickM
This is the output I get on the server (sorry, I misread what you said, but I guess I'd get the same thing?)
I'll do the same for the client if you need it.
As I said, that JSON error is not repeating so I'm not sure if this is helpful.
Heh. I missed your second edit. No need to further investigate the JSON error.
I think you may be running into the same issue as iKocka. Check the output of /bin/hostname on the client and make sure it's the same as the hostname that you entered on the server.
Everything is working now, but I have no idea what was the problem. I removed the servers and added them again, perhaps I messed up names or IP's.