Professional Documents
Culture Documents
com
http://blog.muhammadattique.com/configuring-nagios-client-ossim/
nsclient.org/nscp/downloads
.
NRPE Plugins is required with Nagios Plugins on Linux/Unix hosts.
Download Link: sourceforge.net/projects/nagios/files/nrpe-2.x/
1/10
b) Enter OSSIM Server IP and Password to use for NSClient Secure communication between OSSIM Server and
Client as shown below:
c) Enter Services.msc in Run Command, Right Click on NSClient++ Service, Select Properties.
2/10
d) Goto Logon Tab, and select option Allow Service to interact with desktop
3/10
4/10
service_description
check_command
}
iv)
v)
Drive D Data
check_ntcomm!USEDDISKSPACE!-l d -w 80 -c 90
# /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg
vi)
ntcomm Service Error will probably be shown, to resolve that, add following lines to:
/etc/nagios3/conf.d/services_nagios2.cfg
define command{
command_name check_ntcomm
command_line $USER1$/check_nt -H $HOSTADDRESS$ -s password -p 12489 -t 180 -v $ARG1$ $ARG2$
//Here, we have to enter password that weve given to NSClient++ plugin on Windows Host.
}
vii)
viii)
// Add OSSIM Servers IP, there should be space but not any comma
6/10
# vim /etc/services
ADD Following line:
nrpe
5666/tcp
#NPRE
# chkconfig xinetd on
# systemctl enable xinetd
# service xinetd start
# systemctl start xinetd
//CentOS 7
//CentOS 7
7/10
Install C Compiler:
# apt-get install build-essential libssl-dev
# cd /etc/nagios3/conf.d/
# vim LinServer-1-31.cfg
Modify as per requirement and add following lines into it:
#### HOST DEFINITIONS
define host{
use
generic-host
host_name
LinServer-1-31
alias
Linux Server 1.31
address
192.168.1.31
statusmap_image
linux40.gd2
icon_image
linux40.png
}
#### SERVICE DEFINITIONS
define service{
use
host_name
service_description
generic-service
LinServer-1-31
PING
8/10
check_command
}
define service{
use
host_name
service_description
check_command
}
define service{
use
host_name
service_description
check_command
}
define service{
use
host_name
service_description
check_command
}
define service{
use
host_name
service_description
check_command
}
check_ping!100.0,20%!500.0,60%
generic-service
LinServer-1-31
Directory: /
check_nrpe!check_Root
generic-service
LinServer-1-31
Current Users
check_nrpe!check_users
generic-service
LinServer-1-31
Total Processes
check_nrpe!check_total_procs
generic-service
LinServer-1-31
Directory: /var
check_nrpe!check_Var
9/10
10/10