Skip to content

Instantly share code, notes, and snippets.

View skottler's full-sized avatar

Sam Kottler skottler

View GitHub Profile
setgid ubuntu
setuid ubuntu
start on runlevel [2345]
stop on runlevel [016]
environments/
|-- dev
| |-- hieradb
| | |-- Ubuntu.yaml
| | |-- CentOS.yaml
| | `-- common.yaml
| `-- modules
| `-- nagios
`-- prod
|-- hieradb
hiera nagios_server environment=dev location=virginia calling_module=nagios
:hierarchy: - %{environment}/%{location}/%{calling_module}
- %{environment}/%{calling_module}
- common
$allowed_hosts = ['localhost', 'nagios.mycompany.com']
$nrpeservice = "nrpe"
$nrpepattern = "nrpe"
$nrpepackage = "nrpe"
$nrpedir = "/etc/nagios"
$nrpeuser = "nrpe"
$nrpegroup = "nrpe"
$pluginsdir = "/usr/local/nagios/libexec"
class nagios::client {
file { "$nrpedir/nrpe.cfg":
owner => $nrpeuser,
group => $nrpegroup,
mode => 644,
content => template("nagios/nrpe.cfg.erb")
}
}
node default {
include hiera
include nagios::client
}
class utility {
package { "htop":
ensure => installed,
}
}
74.96.178.237 - - [09/Jan/2012:02:11:46 +0000] "GET /rss.xml HTTP/1.0" 200 19192 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" vhost=onegsb.stanford.edu hosting_site=sfordgsb request_time=60002
201.9.222.64 - - [09/Jan/2012:02:11:48 +0000] "GET /favicon.ico HTTP/1.0" 404 63 "http://primeiro-acto.blogspot.com/2010/08/ir-ao-encontro-do-cliente.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7" vhost=onegsb.stanford.edu hosting_site=sfordgsb request_time=0
- - - [09/Jan/2012:02:11:58 +0000] "POST /Shibboleth.sso/SAML2/POST HTTP/1.0" 302 205 "https://idp.stanford.edu/idp/profile/SAML2/Redirect/SSO" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)" vhost=onegsb.stanford.edu hosting_site=sfordgsb request_time=28000
212.113.37.105 - - [09/Jan/2012:02:12:11 +0000] "GET /node?page=31&page0_000000E_00_000000E_00_000000E_0a_href%252525255E%252525255E%252525255E%2
StartServers 50
MinSpareServers 15
MaxSpareServers 30
MaxClients 225
MaxRequestsPerChild 4000