TCN-Link wrote:I need to know what the client uses to collect the data from the scripts on passive checks. The documents reference making a text file, but they don't seem to tell how the contents of that text file should be laid out to where Nagios understands what to do with the data once the client collects it. Maybe I'm missing it somewhere, so I'll need this explained to me.
NRDP/NRDS (Nagios Remote Data Processor/Source) are the two protocols we usually recommend for transfer of passive checks. In that documentation you reviewed:
In order to send passive service checks from external applications and servers to Nagios, you'll need to use the NSCA or NRDP addon
to facilitate the transfer of data to the Nagios XI server.
Nagios XI has it's own NRDP server built-in which can be configured on the "Inbound Transfers" page:
2017_01_25_15_39_30_Administration_Nagios_XI.png
Once the NRDP server is configured, all we really need to do is configure a source to start shipping things to the NRDP server. This document describes the very bare-bones process of sending a passive check to a remote Nagios XI system:
https://assets.nagios.com/downloads/nag ... erview.pdf
NCPA, the Nagios Cross-Platform Agent, can be very easily configured to submit it's check results to Nagios XI via passive checks. Here's the docs for leveraging NCPA to send passive checks:
https://www.nagios.org/ncpa/help/2.0/passive.html
TCN-Link wrote:Also, I need to make sure that the client computer name (not just its IP address) is being accurately reported with the data collected.
If you were using NCPA, rather than configuring a passive check to use it's current hostname/address:
Code: Select all
%HOSTNAME%|__HOST__ = system/agent_version
%HOSTNAME%|CPU Usage = cpu/percent --warning 60 --critical 80 --aggregate avg
%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
You could hard-code a specific name in a given computer's configuration:
Code: Select all
bob-computer|__HOST__ = system/agent_version
bob-computer|CPU Usage = cpu/percent --warning 60 --critical 80 --aggregate avg
bob-computer|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
bob-computer|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
bob-computer|Process Count = processes --warning 300 --critical 400
Assuming that your Nagios XI had a host named "bob-computer". The process for using the raw send_nrdp.php script is roughly the same; You're specifying the hostname directly rather than automagically populating it somehow.
You do not have the required permissions to view the files attached to this post.