Ask HN: What tools do you use to monitor your LAMP server(s)?
31–40 of 41 posts
Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#32you can use Cactus to monitor server load/cpu/etc, I'm not sure about the others...
Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#33I've hacked on both a bit, but they're great starts for small clusters.
Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#34For alerts i am using nagios as it has all kind of checks for most services integrated. Besides services i also monitor security updates (any security upgrades available which are not installed) for debian hosts and resource shortage of openvz containers. I am also using monit for immediate actions like restarting web server or checking some programs. I manage both via puppet, that means I deploy a new host and the n…
Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#35Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#36Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#37Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#38Earlier quoted context omitted.
You would have to pay $11,388 per year to use Cloudkick with 60 servers and still lose all data >1 year. I don't get the logic of paying that much for Cloudkick at all. Monitoring tends to be a couple days work (at most) to setup perfectly and then very little on-going. Hardly worth $949 every month IMHO.
In my experience with running nagios it's never as easy as set and forget to keep your monitoring system effective. Even more so when you're growing or scaling and systems are changing more regularly. To me that $11,388 per year is cheap compared to the costs of having a salaried employee spending more time on a slower to implement solution. If you don't have a full time sys admin it's also one of those things that i…
Re: Ask HN: What tools do you use to monitor your LAMP server(s)?
#39For alerts i am using nagios as it has all kind of checks for most services integrated. Besides services i also monitor security updates (any security upgrades available which are not installed) for debian hosts and resource shortage of openvz containers. I am also using monit for immediate actions like restarting web server or checking some programs. I manage both via puppet, that means I deploy a new host and the n…
Can you share the relevant snippets from your puppet setup? I'm currently looking at using puppet with nagios/monit to manage the 50+ servers that recently became my responsibility.
For monit i am using the monit pattern from[1]. Quite simple but IWFM. Nagios is a little bit more complicated. If you have any questions i added my mailaddresse to my profile.
You need to use exported resources for the nagios part. Therefore you have to enable Stored Configurations on the puppet server [2]. For the server part i use:
package { nagios3: ensure => present }
service{nagios3:
ensure => running,
enable => true,
require => Package[nagios3],
}
exec { "chmod_nagios":
command => "/bin/chmod 644 /etc/nagios3/conf.d/*",
refreshonly => true,
notify => Service["nagios3"]
}
file { "/etc/nagios3/conf.d": ensure => directory }
Nagios_host > { notify => Exec["chmod_nagios"] }
Nagios_service > { notify => Exec["chmod_nagios"] }
The client setup is quite easy, im using nagios-nrpe for the check. You have to deploy your own configuration files, i omit them here. package { nagios-nrpe-server: ensure => installed }
service { nagios-nrpe-server:
ensure => running,
require => Package[nagios-nrpe-server],
pattern => "/usr/sbin/nrpe"
}
@@nagios_host { "host_$hostname":
ensure => present,
address => $ipaddress,
host_name => $hostname,
use => "generic-host",
target => "/etc/nagios3/conf.d/host-$hostname.cfg",
}
@@nagios_service { "apt-${hostname}":
ensure => present,
use => "generic-service",
host_name => $hostname,
service_description => "apt check",
target => "/etc/nagios3/conf.d/apt.cfg",
check_command => "check_nrpe_1arg!check_apt"
}
[1] http://projects.puppetlabs.com/projects/1/wiki/Monit_Pattern...[2] http://projects.puppetlabs.com/projects/puppet/wiki/Using_St... You should not use sqlite, use mysql if you want to use the dashboard
[puppetmasterd]
storeconfigs = true
dbadapter = sqlite3
dblocation = /var/lib/puppet/storeconfigs.sqliteRe: Ask HN: What tools do you use to monitor your LAMP server(s)?
#40http://scoutapp.com again saved my bacon yesterday when my god monitoring script for DelayedJob workers decided to pull an Ark with my processes ("let's have two of everything!") and ran out of swap, bringing the server to a virtual standstill. Scout sent me an email, the email rang my cell phone, and I was able to recover before it ruined my best day of sales ever.
Scout,Monit,Hoptoad,New Relic, and Pingdom:
http://blog.scoutapp.com/articles/2010/10/19/monitor-rails-c...