Page 1 of 1

NSCA PASSIVE CHECKS

Posted: Wed Feb 24, 2016 12:04 pm
by tejanagios
HI,

I am trying to set-up real timevent log monitoring using nagios XI, set-up nsca client in nsclient++ here are the details:
[/modules]

CheckSystem=enabled
CheckDisk=enabled
CheckExternalScripts=enabled
NRPEServer=enabled
Scheduler=enabled
NSCAClient=enabled



[/settings/default]
allowed hosts=172.24.48.16
password = simple10
insecure = true



########configure the scheduler for NSCA######

[/settings/scheduler/schedules/default]
interval=5m

[/settings/scheduler/schedules]
cpu=alias_cpu
mem=alias_mem
disk=alias_disk
service=alias_service


#### configure the NSCA client settings #####
[/settings/NSCA/client]
hostname=qa-wts1.jlr.ktsecureqa.co.uk

[/settings/NSCA/client/targets/default]
address=172.24.48.16
encryption=DES
password=1234


[/settings/NRPE/server]

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true

; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = false

; PORT NUMBER - Port to use for NRPE.
port = 5666

# ENABLE SSL ENCRYPTION

insecure = true

# ALLOW ARGUMENTS
allow arguments=True
#COMMAND TIMEOUT
timeout=30

[/settings/external scripts]

allow arguments=True



[/settings/external scripts/scripts]

test_ps1 = cmd /c echo scripts\check_test.ps1; exit($lastexitcode) | powershell.exe -command -

#### that is the config file.

when I changed the checks from active to passive , the entire checks on nagios xi starts to reload. also, could you look at my config file and tell me if its correctly set-up please.

Re: NSCA PASSIVE CHECKS

Posted: Wed Feb 24, 2016 6:07 pm
by hsmith
Take a look at this article: https://outsideit.net/real-time-eventlog-monitoring/

Also, are you getting any errors?

Re: NSCA PASSIVE CHECKS

Posted: Thu Feb 25, 2016 7:59 am
by tejanagios
I had to go through several checks, from opening ports and checking IP TABLES, to managing unconfigured objects with-in nagios.

it works now, for 3 basic windows check to begin with. Can i define passive checks before hand so that i don't have to use the un-configured objects wizard?

if so, could you please quote or point me to an example please.

Re: NSCA PASSIVE CHECKS

Posted: Thu Feb 25, 2016 12:17 pm
by lmiltchev
Can i define passive checks before hand so that i don't have to use the un-configured objects wizard?

if so, could you please quote or point me to an example please.
You can always examine the passive check that you already have setup via the un-configured objects wizard, and use these configs as an example.

Code: Select all

CCM->Services-><your passive service>->View Text Config (the diskette icon)
You can add a new service under the CCM (Services) by clicking on the "Add New" button.

BTW, why do you want to set up these check manually? Using the un-configured objects wizard is a lot easier...