sfl-linux-saltminion-collectd

Dependencies

Shinken Modules

This pack will create services which need the following modules :

  • Arbiter/Receiver : mod-collectd

Here an example of a arbiter-collectd module config file:

Plugins

This pack will create services which need the following plugins :

Network

This pack will create services which need the following protocol :

  • UDP 25826 from monitored client to the Arbiter/Receiver Collectd module

Collectd

Here an example of a collectd config file:

# COLLECTD: custom configuration file used by STM.

# Global options

Hostname "HOSTNAME"

# When the network plugins (network, write_graphite, etc.) take too
# long to respond, limit the metric list stored in memory.
# e.g. When the remote server times out, do not attempt to store all
# the values in memory.
WriteQueueLimitHigh 50
WriteQueueLimitLow 50

######################################################################
# Common plugins for all the machines.

# Activate the logging plugin before all the others
LoadPlugin syslog
<Plugin syslog>
    LogLevel info
    NotifyLevel WARNING
</Plugin>

# some plugins will be configured in other files
LoadPlugin cpu
LoadPlugin load
LoadPlugin memory
LoadPlugin users
LoadPlugin disk
LoadPlugin df
LoadPlugin interface
LoadPlugin ntpd
LoadPlugin swap
LoadPlugin processes

# NTP comes from 2 servers
<Plugin ntpd>
    Host "10.133.63.17"
    Host "10.133.63.19"
    Port 123
    ReverseLookups false
    IncludeUnitID true
</Plugin>

<Plugin df>
    IgnoreSelected false
    ReportByDevice false
    # Also including the reserved space
    ReportReserved true
    # Free/Used Inodes
    ReportInodes true
</Plugin>

<Plugin processes>
    Process "shinken-poller.py"
    Process "cron"
#    Process "rsyslogd"
</Plugin>

# The network plugin send the results to Shinken
LoadPlugin network
<Plugin network>
    Server "10.133.63.18" "25826"
</Plugin>

# All the machines will send their data to graphite
LoadPlugin write_graphite
<Plugin write_graphite>
    <Node "graphite_server_1">
        Host "10.133.63.13"
        Port "2003"
        Prefix ""
        Postfix ".collectd"
        Protocol "tcp"
        LogSendErrors true
    </Node>
    <Node "graphite_server_2">
        Host "10.133.63.14"
        Port "2003"
        Prefix ""
        Postfix ".collectd"
        Protocol "tcp"
        LogSendErrors true
    </Node>
</Plugin>

######################################################################
#  Search for configuration in the directory
Include "/opt/collectd/etc/conf.d"

# this file is provided by (Minion ID): SHINKENPOLLER

Installation

Copy the pack folder in the packs folder defined in shinken.cfg (cfg_dir=packs)

How to use it

Settings

This is the list of settings which can be redefined in the host definition

_PROCESS_SALTMINION_MIN_WARN

type:integer
description:Min number of salt minion, warning threshold

_PROCESS_SALTMINION_MIN_CRIT

type:integer
description:Min number of salt minion, critical threshold

Triggers

This is the list of triggers used in the pack :

  • collectd_processes.trig
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.