Nagios Core - Passive checks no communication.
Posted: Fri May 18, 2018 12:15 pm
Hey folks, I am new to Nagios and am working on a Nagios Core server setup on an Ubuntu 16.04 Server, and an NCPA agent on a client windows 10 local machine. I am trying to setup a passive check between the two systems. I feel that I am missing one thing in order for the client system to communicate with my ubuntu server. I am able to see a grayed out windows placeholder text on the Nagios server but it will never receive any information from the client.
If anyone has some ideas or can help me it would be greatly appreciated.
I will dump the information of my configs.
Server:
in
I have added the new_host.cfg file in /usr/local/nagios/etc/object/new_host.cfg with the following code
In the commands.cfg file i added
In the templates.cfg file i have added the following
And added the following in services within the templates section.
Windows 10 Client has the NCPA.cfg file in the default file location used when installing the agent. The following code is from that file.
I have also added firewall rules for port 5693 and can access nrdp web interface on the server and on the ncpa agent on the client.
Does anyone have any ideas what might be causing the lack of communication?
If anyone has some ideas or can help me it would be greatly appreciated.
I will dump the information of my configs.
Server:
in
Code: Select all
/usr/local/nagios/etc/nagios.cfg
cfg_file=/usr/local/nagios/etc/objects/new_host.cfg
Code: Select all
define host {
use passive_host
host_name Webprint
}
define service {
use passive_service
service_description CPU Usage
host_name Webprint
}
define service {
use passive_service
service_description Disk Usage
host_name Webprint
}
define service {
use passive_service
service_description Swap Usage
host_name Webprint
}
define service {
use passive_service
service_description Memory Usage
host_name Webprint
}
define service {
use passive_service
service_description Process Count
host_name Webprint
}
Code: Select all
define command {
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$
}
Code: Select all
define host {
use generic-host
name passive_host
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options d,u,r
}
Code: Select all
define service {
use generic-service
name passive_service
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
}
Code: Select all
#
# AUTO GENERATED NRDP CONFIG FROM WINDOWS INSTALLER
#
[passive checks]
# Host check - This is to stop "pending check" status in Nagios
%HOSTNAME%|__HOST__ = system/agent_version
# Service checks
%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
%HOSTNAME%|Process Count = processes --warning 300 --critical 400
Does anyone have any ideas what might be causing the lack of communication?