Page 2 of 2

Re: Nagios passive checks

Posted: Fri May 25, 2018 3:33 pm
by scottwilkerson
you have an syntax error in this file, can you attach?

Code: Select all

/usr/local/nrdp/server/config.inc.php

Re: Nagios passive checks

Posted: Wed May 30, 2018 4:49 pm
by neo_infraestructura
I'm sorry for the delay. I didn't see the "Page 2" link :cry: In the attachment is the file required.

Now, I was trying to keep moving forward with this passive check process, and I have troubles making the NCPA work. I did install the NCPA in a server to test, I did configure the /usr/local/ncpa/etc/ncpa.cfg and create a /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg simple only for test:
%HOSTNAME%|Memory Usage = memory/virtual/total --warning 80 --critical 90 --units GiB
And when I restart the ncpa service int his server I get this in the log file of ncpa:
nagios1.png
How can I fix this?

p.s: I don't have any of the files named in the error image. Are they necessary?

Re: Nagios passive checks

Posted: Wed May 30, 2018 5:45 pm
by scottwilkerson
remove the contents of line 15 from that file someone made an error when editing this and the following should not be there on line 15

Code: Select all

);
Lets, please fix one issue before moving on to another because you also wouldn't be able to send passive checks via NCPA if you had this config error.

Re: Nagios passive checks

Posted: Thu May 31, 2018 8:27 am
by neo_infraestructura
Ok the NRDP it's working!
nagios1.png

Re: Nagios passive checks

Posted: Thu May 31, 2018 9:06 am
by scottwilkerson
Excellent! Good to hear.

Re: Nagios passive checks

Posted: Thu May 31, 2018 10:08 am
by neo_infraestructura
neo_infraestructura wrote:I'm sorry for the delay. I didn't see the "Page 2" link :cry: In the attachment is the file required.

Now, I was trying to keep moving forward with this passive check process, and I have troubles making the NCPA work. I did install the NCPA in a server to test, I did configure the /usr/local/ncpa/etc/ncpa.cfg and create a /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg simple only for test:
%HOSTNAME%|Memory Usage = memory/virtual/total --warning 80 --critical 90 --units GiB
And when I restart the ncpa service int his server I get this in the log file of ncpa:
nagios1.png
How can I fix this?

p.s: I don't have any of the files named in the error image. Are they necessary?
I'm still having this problem :/

Re: Nagios passive checks

Posted: Thu May 31, 2018 10:37 am
by scottwilkerson
Can you share both of your NCPA config files?

Re: Nagios passive checks

Posted: Thu May 31, 2018 2:11 pm
by neo_infraestructura
I share with you the config files of the linux server that must send its status to Nagios.
They come from the route:
-ncpa.cfg: /usr/local/ncpa/etc/
-nrdp.cfg: /usr/local/ncpa/etc/ncpa.cfg.d/

Re: Nagios passive checks

Posted: Fri Jun 01, 2018 7:13 am
by scottwilkerson
And is the error in the log on the NCPA host exactly the same as it was before? Do you see any entries in Admin -> Unconfigured objects in the XI interface?