Price of security books – They are expensive.




My workstation


Workstation –

1. For the screen I’m using Toshiba 40″, HP 22″, DELL 23″, Samsung 22″.

2. Machine = WIndows 7, Intel i5, 16Gigs Ram, 2Gigs Nvidia Graphic Card

3. Server – Windows 2008 Server, Proliant Xeon Processor Quad Core, 12Gigs Ram

4. Dell Poweredge –  Lubuntu, Intel Core Duo, 8 Gigs Ram, 2Gigs Nvidia Graphic Card

5. Raspberry Pi  B

6. Laptop ultrabook S7, Intel i7, 12Gigs Ram, Nvidia Gforce 4Gigs Graphic Card

Monitor your Raspberry Pi with Nagios using SNMP


This is a quick note to monitor your Raspberry Pi  running Raspbian with Nagios.  I assumed you have Nagios running and configured on your side.

*I will improve this note from time to time.

1. Install SNMP on Raspberry Pi

root@sennpi:/home/senn# apt-get install net-snmp*
root@sennpi:/home/senn# mv /etc/snmp/snmpd.conf /etc/snmp/
root@sennpi:/home/senn# nano /etc/snmp/snmpd.conf
root@sennpi:/home/senn# /etc/init.d/snmpd restart

2. Install Nagios SNMP Plugins

root@sennpi:/home/senn# wget
root@sennpi:/home/senn# ./configure; make; make install
root@sennpi:/home/senn# yum install net-snmp*

3. Test your connection from nagios-server to Raspberry Pi

root@sennpi:/home/senn# ./check_snmp_process -H -C public -m sshd -w 30 -c 50

4. Edit your Nagios configuration file

define your new service at /usr/local/nagios/etc/objects/switches.cfg

define service{

use   generic-service ;

Inherit values from a template

host_name  Raspberry_Pi

service_description Running Service SSHD

check_command  check_snmp!-C public -m sshd -w 30 -c 50



define service{

service ; Inherit values from a template

host_name  Raspberry_Pi

service_description Running Service - Remote Desktop Xtightvnc

check_command  check_snmp!-C public -m Xtightvnc -w 30 -c 50  }

enable command at /usr/local/nagios/etc/objects/commands.cfg

# 'check_snmp_process' command definition

define command{

command_name    check_snmp_process

command_line    $USER1$/check_snmp_process -H $HOSTADDRESS$ $ARG1$