Price of security books – They are expensive.

Image

book_price

Advertisements

My workstation

20131125_203112_HDR

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

Nagios_RPI_SSHD

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/snmpd.conf.org
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 http://nagios.manubulon.com/nagios-plugins-snmp-0.6.0.tgz
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 192.168.0.123 -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

} 

 

</pre>
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$

}