Some questions about NCPA

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Some questions about NCPA

Post by tgriep »

Try running this for the firewall settings to see if that allows all hosts in.

Code: Select all

/sbin/iptables -I INPUT -p tcp -m tcp --dport 5693 -j ACCEPT
/sbin/service iptables save
For your check, you would only have to define it like this.

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.56.1 -t nagi_os_NCPA -P 5693 -M memory/virtual
Try that and see if that resolves it for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RandomGuy86
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Some questions about NCPA

Post by RandomGuy86 »

Code: Select all

/sbin/iptables -I INPUT -p tcp -m tcp --dport 5693 -j ACCEPT
/sbin/service iptables save
This worked. But what exactly have I done here?

The memory command worked as well. How can I set it up that the available memory is displayed in megabyte or gigabyte? "-n M" just puts an M behind everything instead of the default value (it even replaces the "%").

How do I translate this to an command:

Code: Select all

https://192.168.56.1:5693/api/disk/logical/C:|?token=nagi_os_NCPA
This freezes the terminal, I have to cancel it with CTRL + C:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.56.1 -t nagi_os_NCPA -P 5693 -M disk/logical/C:|
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Some questions about NCPA

Post by lmiltchev »

Try wrapping the "disk/logical/C:|" in single quotes:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.56.1 -t nagi_os_NCPA -P 5693 -M 'disk/logical/C:|'
Be sure to check out our Knowledgebase for helpful articles and solutions!
RandomGuy86
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Some questions about NCPA

Post by RandomGuy86 »

Okay, all active checks seem to work fine now.

I still have no clue where to start with NRDP and passive checks. I do not find any useful information on how to set it up.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Some questions about NCPA

Post by lmiltchev »

I still have no clue where to start with NRDP and passive checks. I do not find any useful information on how to set it up.
What is the specific issue that you are having at the moment? Can you show us the passive checks that you have defined in the ncpa.cfg and post the "ncpa_passive.log"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
RandomGuy86
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Some questions about NCPA

Post by RandomGuy86 »

lmiltchev wrote:Can you show us the passive checks that you have defined in the ncpa.cfg and post the "ncpa_passive.log"?
That's my problem. I have no clue how to define a service for a passive check (sent via NRDP by a NCPA daemon). If I search for help about Nagios, NRDP and passive checks all I find is the installation guide and threads of people who attempted to use NRDP but eventually given up because they could not figure out how to get it running.

ncpa_passive.log (shortened) from my Windows Client
ncpa_passive - Copy.txt
(120.28 KiB) Downloaded 227 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Some questions about NCPA

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RandomGuy86
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Some questions about NCPA

Post by RandomGuy86 »

That's for NSCA. Does it also work for NRDP?
Right now Nagios tells me that "Service is not scheduled to be checked...".
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Some questions about NCPA

Post by Box293 »

In relation to passive checks the service definitions remain the same.

If your Nagios services are not being updated from the NRDP client, check the nagios.log file as it will make noise if it can't find the host or service.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked