Page 3 of 3
Re: Some questions about NCPA
Posted: Mon Sep 14, 2015 1:51 pm
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.
Re: Some questions about NCPA
Posted: Mon Sep 21, 2015 2:37 pm
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:|
Re: Some questions about NCPA
Posted: Tue Sep 22, 2015 9:29 am
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:|'
Re: Some questions about NCPA
Posted: Tue Sep 22, 2015 2:59 pm
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.
Re: Some questions about NCPA
Posted: Tue Sep 22, 2015 4:01 pm
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"?
Re: Some questions about NCPA
Posted: Thu Sep 24, 2015 11:44 am
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
Re: Some questions about NCPA
Posted: Thu Sep 24, 2015 12:39 pm
by Box293
Re: Some questions about NCPA
Posted: Thu Sep 24, 2015 1:55 pm
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...".
Re: Some questions about NCPA
Posted: Thu Sep 24, 2015 4:47 pm
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.