Using Nagios with AKCP sensorProbe and AKCP securityProbe

www.akcesspro.com
Using Nagios with AKCess Pro`s monitoring devices
AKCP`s sensorProbe and securityProbe devices can be used with Nagios. This is an open
source network monitoring framework that can be used to monitor the status of your
securityProbe unit. Nagios is primarily operated via a LINUX terminal window window. There
follows the line command you need in order to setup your SP2 with Nagios.
1.0 Copy nagios binary to flash
cp -a /usr/nagios /flash1/user/etc/
2.0 Edit nagios configuration file
vi /flash1/user/etc/nagios/etc/nagios.cfg
Search
cfg_file=/usr/nagios/etc/checkcommands.cfg
Change to
cfg_file=/flash1/user/etc/nagios/etc/checkcommands.cfg
Search
cfg_file=/usr/nagios/etc/misccommands.cfg
Change to
cfg_file=/flash1/user/etc/nagios/etc/misccommands.cfg
Search
cfg_file=/usr/nagios/etc/bigger.cfg
Change to
cfg_file=/flash1/user/etc/nagios/etc/bigger.cfg
Search
cfg_file=/usr/nagios/etc/hostextinfo.cfg
Change to
cfg_file=/flash1/user/etc/nagios/etc/hostextinfo.cfg
Search
resource_file=/usr/nagios/etc/resource.cfg
Change to
resource_file=/flash1/user/etc/nagios/etc/resource.cfg
Using Nagios with sensorProbe and securityProbe devices
Search
p1_file=/usr/nagios/bin/p1.pl
Change to
p1_file=/flash1/user/etc/nagios/bin/p1.pl
3.0 Edit or add host by edit or add host in bigger.cfg
vi /flash1/user/etc/nagios/etc/bigger.cfg
# 'HOST_NAME' host definition
define host{
use
host_name
alias
address
check_command
max_check_attempts
notification_interval
notification_period
notification_options
}
generic-host
; Name of host template to use
HOST_NAME
HOST_NAME #1
IP_ADDRESS
check-host-alive
5
2
24x7
d,u,r
# When HOST_NAME = Name host
#
IP_ADDRESS = Host IP Address
4.0 Edit or add hostextinfo by edit or add hostextinfo in hostextinfo.cfg
vi /flash1/user/etc/nagios/etc/hostextinfo.cfg
define hostextinfo{
host_name
icon_image
icon_image_alt
vrml_image
statusmap_image
2d_coords
#
3d_coords
}
HOST_NAME
PICTURE
sensorProbe8@IPaddress
PICTURE
GD2
XXX,YYY
100.0,50.0 ,75.0
2/4
Using Nagios with sensorProbe and securityProbe devices
# When
#
#
#
#
#
HOST_NAME = Name host
PICTURE = host picture (cameraProbe8 = cp8_pic.gif, sensorProbe8 = sp8_pic.gif,
sensorProbe2 = sp2_pic.gif)
GD2 = status map (cameraProbe8 = cp8.gd2 , sensorProbe8 = sp8.gd2 ,
sensorProbe2 = sp2.gd2)
2d_coords = host position in map etc. 30,120
5.0 Edit or add host group by edit or add host grpup in bigger.cfg
vi /flash1/user/etc/nagios/etc/bigger.cfg
# 'akcp-devices' host group definition
define hostgroup{
hostgroup_name
akcp-devices
alias
AKCP Devices
contact_groups
nagios-admins
members
HOST_NAME,HOST_NAME,HOST_NAME
}
# When HOST_NAME = Name host
6.0 Edit or add service by edit or add service in bigger.cfg
vi /flash1/user/etc/nagios/etc/bigger.cfg
# Service definition
define service{
use
host_name
service_description
is_volatile
check_period
max_check_attempts
normal_check_interval
retry_check_interval
contact_groups
notification_interval
notification_period
notification_options
check_command
}
generic-service
HOST_NAME
Status: SERVICE_NAME
0
24x7
3
3
1
nagios-admins
60
24x7
w,u,c,r
check_sprobe! PASSWORD!SENSOR!PORT!SUBPORT
3/4
Using Nagios with sensorProbe and securityProbe devices
# When
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
HOST_NAME = Name host
SERVICE_NAME = Service name etc. Temperature Port 1
PASSWORD = Admin password default public
SENSOR = sensor type etc. Temperature
Temperature
Humidity
Airflow
4-20mAmp
DC_Voltage
Relay
Motion
AC_Voltage
Water
Security
DryContact
IRMS
VRMS
Energy
8PortRelay
VirtualAnalog
VirtualSwitch
DaisyTemp
Temperature sensor
Humidity sensor
Airflow sensor
4-20mA sensor
DC voltage sensor
Relay sensor
Motion detector
AC voltage sensor
Water detector
Security sensor
Dry contact sensor
RMS Current sensor
RMS Voltage sensor
Energy Meter sensor
8 Port Sensor Relay Virtual sensor type analog
Virtual sensor type switch
Daisy Temperature Sensor
PORT = sensor port
SUBPORT = Sub port of sensor use with sensor type 8 Port Sensor Relay or
Daisy Temperature Sensor
7.0 check nagios configure , stop , start
/etc/rc.d/init.d/nagios verify (check all configure)
/etc/rc.d/init.d/nagios stop (stop nagios service)
/etc/rc.d/init.d/nagios start (start nagios service)
after change configure file should be verify, stop and start nagios service
8.0 login on web interface
User : nagiosadmin
Pass : admin
4/4