Passive checks

4 posts / 0 new
Last post
JantjeSmits
Offline
Last seen: 6 years 5 months ago
Joined: 27.06.2013 - 12:00
Passive checks

Hi there

Could anyone help me today to configurate Nagwin to use passive checks ?

Until i now i only used active checks, but now i have to use the passive ones.

 

I tested with nsclient but get the next results:

2013-11-06 08:51:57: e:..\..\..\..\trunk\modules\NSCAClient\NSCAClient.cpp:435: Error: Failed to connect to: x.x.x.x.:5667 :No connection could be made because the target machine actively refused it
2013-11-06 08:52:02: e:D:\source\nscp\trunk\include\socket/server.hpp:117: Failed to bind: An attempt was made to access a socket in a way forbidden by its access permissions
2013-11-06 08:52:02: e:..\..\..\..\trunk\modules\NRPEServer\NRPEServer.cpp:143: Exception caught: listen: An invalid argument was supplied
2013-11-06 08:52:02: e:..\..\..\trunk\service\NSClient++.cpp:820: Plugin refused to load: NRPEServer

This means that i probably have to activate "something" on the Nagwin server?!?

 

Grz Jan

 

itefix
Offline
Last seen: 26 min 16 sec ago
Joined: 01.05.2008 - 21:33
You need NSCA daemon on the

You need NSCA daemon on the Nagwin side. It is not supported yet. The only way to use passive checks at the moment is to create external command files in the external commands directory.

JantjeSmits
Offline
Last seen: 6 years 5 months ago
Joined: 27.06.2013 - 12:00
Hi I have created a

Hi

I have created a nagios.cmd.nnnn file

This file contains 1 line:

[20131111104727] PROCESS_HOST_CHECK_RESULT;hosttest;0;Host appears to be UP

I can see nagios reading and removing it.In the nagios.log it also appears:

[1384164217] EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;hosttest;0;Host appears to be UP

BUT

The status of the host has not changed ?!?!?

define host{
 use    Dev-Test01
 host_name  hosttest
 alias   hosttest01
 active_checks_enabled         1
 passive_checks_enabled        1 
 flap_detection_enabled        0
}

Wat am i missing ?

Gr Jan

 

itefix
Offline
Last seen: 26 min 16 sec ago
Joined: 01.05.2008 - 21:33
Timestamp has a wrong format.

Timestamp has a wrong format. We've created a new usage example for passive checks. Hope it helps.