Nagiosgraph dont collect data from passive checked hosts
Posted: Mon Mar 24, 2014 6:46 am
Hi, a few days ago I configured active checking for linux hosts via check_nrpe plugin. After this nagios graph stopped collecting data from passive checked hosts. It collects data only from active checked hosts.
I configured nagiosgraph via this procedure:
http://www.linuxfunda.com/2013/04/02/st ... gios-core/
My command.cfg file
And some active and passive services definitions:
act:
pass:
EDIT:
And host nsclient.ini (pass):
EDIT2:
I think I know why Nagios graph don't collect data - hosts can't send notifications, sample of log from one host:
I think it all started when I installed check_nrpe plugin at my Nagios Serwer and configured active monitoring for linux hosts
Can anyone help me with this issue?
I configured nagiosgraph via this procedure:
http://www.linuxfunda.com/2013/04/02/st ... gios-core/
My command.cfg file
Code: Select all
# Dodane 2014-03-06 - mkot
# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line /usr/bin/perl $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 20
}
# Monitorowanie obciążenia CPU
define command{
command_name check_cpu
command_line /usr/bin/perl $USER1$/check_nrpe -$HOSTADDRESS$ -s passwd -p 5667 -c $ARG1$
}
# Monitorowanie obciążenia HDD
define command{
command_name check_disk
command_line /usr/bin/perl $USER1$/check_nrpe -$HOSTADDRESS$ -s passwd -p 5667 -c $ARG1$
}
# Monitorowanie obciążenia RAM
define command{
command_name check_mem
command_line /usr/bin/perl $USER1$/check_nrpe -$HOSTADDRESS$ -s passwd -p 5667 -c $ARG1$
}
# KONIEC - 2014-03-06 - mkot
act:
Code: Select all
# CPU Load - aktywne monitorowanie
define service{
use generic-service,nagiosgraph
hostgroup_name Serwery Windows WA
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,85
notification_interval 60
notification_options w,c
notification_period 24x7
flap_detection_enabled 0
active_checks_enabled 1
passive_checks_enabled 0
}
Code: Select all
define service{
use generic-service,nagiosgraph
hostgroup_name TAIWA
service_description CPU Load
check_command check_nrpe!CPU Load
notification_options w,c
flap_detection_enabled 0
active_checks_enabled 0
passive_checks_enabled 1
}
EDIT:
And host nsclient.ini (pass):
Code: Select all
[/settings/external scripts/alias]
; alias_cpu - Alias for alias_cpu. To configure this item add a section called: /settings/external scripts/alias/alias_cpu
alias_cpu = checkCPU warn=50 crit=80 time=5m time=1m time=30s
; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk
alias_disk_c = CheckDriveSize MinWarn=2% MinCrit=1% Drive=C FilterType=FIXED
; alias_mem - Alias for alias_mem. To configure this item add a section called: /settings/external scripts/alias/alias_mem
alias_mem = checkMem MaxWarn=85% MaxCrit=90% ShowAll=long type=physical
[/settings/scheduler/schedules]
CPU Load tmp=alias_cpu
MEM Load=alias_mem
DISK Load C=alias_disk_c
EDIT2:
I think I know why Nagios graph don't collect data - hosts can't send notifications, sample of log from one host:
Code: Select all
2014-03-24 13:09:45: e:..\..\..\..\trunk\modules\NSCAClient\NSCAClient.cpp:435: Error: Retry failed
2014-03-24 13:12:39: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:12:39: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:12:39: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:12:39: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:12:39: e:..\..\..\..\trunk\modules\NSCAClient\NSCAClient.cpp:435: Error: Retry failed
2014-03-24 13:17:32: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:17:32: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:17:32: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:17:32: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:17:32: e:..\..\..\..\trunk\modules\NSCAClient\NSCAClient.cpp:435: Error: Retry failed
2014-03-24 13:19:45: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:19:45: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:19:45: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:19:45: e:D:\source\nscp\trunk\include\socket/client.hpp:149: Failed to read data: End of file
2014-03-24 13:19:45: e:..\..\..\..\trunk\modules\NSCAClient\NSCAClient.cpp:435: Error: Retry failed