Hello,
I can't seem to get nrds working on the ncpa client. Please see below:
===========================================================
Versions
===========================================================
Nagios Server (VMWare image): Nagios XI 2014R2.7
Nagios Client OS: SUSE Linux Enterprise Server 12 (x86_64) Service Pack 0
Nagios Client Agent: ncpa-1.8.1-1.os12.x86_64.rpm (downloaded from https://assets.nagios.com/downloads/ncpa/download.php)
===========================================================
ncpa log
===========================================================
rproxy1:~ # tail -f /usr/local/ncpa/var/ncpa_passive.log
2015-07-30 14:09:53,287 19229 INFO Establishing passive handler: Handler
2015-07-30 14:09:53,289 19229 INFO Starting new HTTPS connection (1): nagios1.mc.moneyswitch.net
2015-07-30 14:09:53,305 19229 INFO Starting new HTTPS connection (1): nagios1.mc.moneyswitch.net
2015-07-30 14:09:53,321 19229 ERROR NRDS config recieved from the server contained errors: File contains no section headers.
file: <fdopen>, line: 1
'CONFIG_VERSION="0.4"\n'
===========================================================
Contents of /usr/local/ncpa/etc/ncpa.cfg
===========================================================
[listener]
uid = nagios
certificate = adhoc
loglevel = info
ip = 0.0.0.0
gid = nagcmd
logfile = var/ncpa_listener.log
port = 5693
pidfile = var/ncpa_listener.pid
# Available versions: PROTOCOL SSLv2, SSLv3, TLSv1
ssl_version = TLSv1
[passive]
uid = nagios
#handlers = nrds,nrdp
handlers = nrds
loglevel = info
gid = nagcmd
sleep = 300
logfile = var/ncpa_passive.log
pidfile = var/ncpa_passive.pid
[nrdp]
token = nrdptoken
hostname = yourhostname
parent = yourparent
[nrds]
URL = https://hostname/nrdp/
CONFIG_VERSION = 0
TOKEN = [removed]
CONFIG_NAME = ncpa_plugin_repository
CONFIG_OS = Linux
UPDATE_CONFIG = 1
UPDATE_PLUGINS = 1
[api]
community_string = [removed]
[plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.vbs = cscript $plugin_name $plugin_args //NoLogo
[passive checks]
%HOSTNAME%|cpu usage = /cpu/percent --warning 20 --critical 30
%HOSTNAME%|swap usage = /memory/swap/percent --warning 40 --critical 80
%HOSTNAME%|memory usage = /memory/virtual/percent --warning 60 --critical 80
NCPA and NRDS - ERROR... File contains no section headers.
NCPA and NRDS - ERROR... File contains no section headers.
Last edited by tkersten on Sun Aug 02, 2015 7:18 pm, edited 1 time in total.
Re: NCPA and NRDS - ERROR... File contains no section header
What OS and version is NCPA installed on?
Former Nagios employee
Re: NCPA and NRDS - ERROR... File contains no section header
Hello,
It's SLES 12. I hope that helps.
Thank you.
It's SLES 12. I hope that helps.
Thank you.
Re: NCPA and NRDS - ERROR... File contains no section header
On the Nagios XI server in this folder
is a config file setup for your SLES server.
Can you post that file here?
Code: Select all
/usr/local/nrdp/configs/Can you post that file here?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA and NRDS - ERROR... File contains no section header
Hello,
OK, here it is:
===========================================================
Contents of /usr/local/nrdp/configs/ncpa_plugin_repository.cfg
===========================================================
CONFIG_VERSION="0.4"
CONFIG_OS="Linux"
CONFIG_NAME="ncpa_plugin_repository"
URL="https://hostname/nrdp/"
TOKEN="[removed]"
PLUGIN_DIR="/usr/local/nagios/libexec"
SEND_NRDP="/usr/local/nrdp/clients/send_nrdp.sh"
TMPDIR="/usr/local/nrdp/clients/tmp"
COMMAND_PREFIX=""
LOG_FILE=""
UPDATE_CONFIG="1"
UPDATE_PLUGINS="1"
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Zombie Procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
OK, here it is:
===========================================================
Contents of /usr/local/nrdp/configs/ncpa_plugin_repository.cfg
===========================================================
CONFIG_VERSION="0.4"
CONFIG_OS="Linux"
CONFIG_NAME="ncpa_plugin_repository"
URL="https://hostname/nrdp/"
TOKEN="[removed]"
PLUGIN_DIR="/usr/local/nagios/libexec"
SEND_NRDP="/usr/local/nrdp/clients/send_nrdp.sh"
TMPDIR="/usr/local/nrdp/clients/tmp"
COMMAND_PREFIX=""
LOG_FILE=""
UPDATE_CONFIG="1"
UPDATE_PLUGINS="1"
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Zombie Procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Re: NCPA and NRDS - ERROR... File contains no section header
I think I mentioned this on the forum before - the NCPA-NRDS integration was not fully implemented. The [NRDS] section ended up in the ncpa.cfg by mistake. There should be another ("NCPA") section under the "NRDS Config Manager", but this is still a "work in progress". The idea was to manage all of the nrds or ncpa configs from one, central location (the "NRDS Config Manager" in Nagios XI). This way, you won't need to log in to each client and make any changes there.
It looks like you already installed the NRDS client - these are the "default" Linux checks:
to
in the ncpa.cfg.
Note: You can still use NCPA with passive checks but you won't be able to modify them (make changes) from one, central location. You will need to log into each client, modify the checks under the "[passive checks]" section, and restart the "ncpa_passive" service. I hope this makes sense.
It looks like you already installed the NRDS client - these are the "default" Linux checks:
These checks are run on the cron job and could be modified from within the "NRDS Config Manager". I would change:command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Zombie Procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Code: Select all
handlers = nrdsCode: Select all
handlers = nrdpNote: You can still use NCPA with passive checks but you won't be able to modify them (make changes) from one, central location. You will need to log into each client, modify the checks under the "[passive checks]" section, and restart the "ncpa_passive" service. I hope this makes sense.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA and NRDS - ERROR... File contains no section header
Hello,
Ahh, I understand what you mean and the future plans of having everything in XI sounds great. OK, I guess I'll keep an eye out to see if this changes in the future then. In the meantime, can I suggest changing documentation or otherwise to avoid others spending the time I spent on this before reaching this point?
Thank you.
Ahh, I understand what you mean and the future plans of having everything in XI sounds great. OK, I guess I'll keep an eye out to see if this changes in the future then. In the meantime, can I suggest changing documentation or otherwise to avoid others spending the time I spent on this before reaching this point?
Thank you.
Re: NCPA and NRDS - ERROR... File contains no section header
I will be locking this topic for the time being. If the issue is not fixed in the next version of NCPA, feel free to start a new thread. Meanwhile, I am going to follow on this with our developers. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!