Page 2 of 3

Re: Distributed Monitoring with Windows Environments

Posted: Fri Feb 23, 2018 5:10 am
by domsch1988
kyang wrote:Yes, the GUI is pretty awesome.

Hmm, but that is interesting... When you added the passive check into the nrdp.cfg. Did you restart ncpa_passive service?

Can you PM or post your nrdp.cfg file for me?

Do you currently have NCPA installed on all of those Windows machines you are trying to get passive checks from?
Yes, i restart the service after every change. Otherwise the changes don't get applied.
And yes, NCPA on all Windows Hosts. Freshly installed 2.2.1.

My Configs from one Server i'm testing are attached (cleared from tokens and passwords ofc)

Re: Distributed Monitoring with Windows Environments

Posted: Fri Feb 23, 2018 5:37 pm
by npolovenko
@domsch1988, Are you able to check the network interface with the following command from a Nagios server?

Code: Select all

./check_ncpa.py -H 10.25.14.10 -t 'Str0ngT0k3n' -P 5693 -M 'interface/LAN-Verbindung-1/bytes_recv' -d -u k -w 10 -c 100

Re: Distributed Monitoring with Windows Environments

Posted: Mon Feb 26, 2018 3:19 am
by domsch1988
npolovenko wrote:@domsch1988, Are you able to check the network interface with the following command from a Nagios server?

Code: Select all

./check_ncpa.py -H 10.25.14.10 -t 'Str0ngT0k3n' -P 5693 -M 'interface/LAN-Verbindung-1/bytes_recv' -d -u k -w 10 -c 100
Yes. And this works with or without spaces. With renaming the Interface i tested:

Code: Select all

./check_ncpa.py -H 192.168.189.20 -t 'Token' -P 5693 -M 'interface/LAN-Verbindung 1/bytes_recv' -d -u k -w 10 -c 100
and

Code: Select all

./check_ncpa.py -H 192.168.189.20 -t 'Token' -P 5693 -M 'interface/LAN-Verbindung-1/bytes_recv' -d -u k -w 10 -c 100
Both work as expected.

Re: Distributed Monitoring with Windows Environments

Posted: Tue Feb 27, 2018 11:13 am
by kyang
Since they are working just fine when running it from the CLI.

But it doesn't work for passive checks?

Are you receiving any errors in ncpa_passive.log? Which would be from the windows machine.

Re: Distributed Monitoring with Windows Environments

Posted: Wed Feb 28, 2018 1:20 am
by domsch1988
kyang wrote:Since they are working just fine when running it from the CLI.

But it doesn't work for passive checks?

Are you receiving any errors in ncpa_passive.log? Which would be from the windows machine.
The only thing i'm getting ars those indicating, that NCPA splits the commands and doesn't know what to do with the second part.

Code: Select all

WARNING:ncpacheck:Unable to parse all arguments from instruction. Mis-paired option: 3/bytes_recv

Re: Distributed Monitoring with Windows Environments

Posted: Wed Feb 28, 2018 5:01 pm
by kyang
Are you running this passive check? I don't see it inside your nrdp.cfg file?

Can you show me a screenshot of that from the NCPA gui while using the API? I would like to see how that node is being defined.

Re: Distributed Monitoring with Windows Environments

Posted: Fri Mar 02, 2018 2:09 am
by domsch1988
kyang wrote:Are you running this passive check? I don't see it inside your nrdp.cfg file?

Can you show me a screenshot of that from the NCPA gui while using the API? I would like to see how that node is being defined.
Yes, this is running. Screenshots are attached. One "Normal" and one with "Run as Nagios Check"
Screenshot_20180302_080702.png
Bildschirmfoto_2018-03-02_08-08-09.png

Re: Distributed Monitoring with Windows Environments

Posted: Fri Mar 02, 2018 2:57 pm
by kyang
Can you show me what the passive check looks like when you click "View in alternate format"

I know there are some special characters that don't work listed in the NCPA GitHub issues, so I wanted to make sure.

https://github.com/NagiosEnterprises/ncpa/issues/395

Re: Distributed Monitoring with Windows Environments

Posted: Mon Mar 05, 2018 4:11 am
by domsch1988
kyang wrote:Can you show me what the passive check looks like when you click "View in alternate format"

I know there are some special characters that don't work listed in the NCPA GitHub issues, so I wanted to make sure.

https://github.com/NagiosEnterprises/ncpa/issues/395
No Problem. The Actual Output copied:

Code: Select all

%HOSTNAME%|<service name> = /interface/LAN-Verbindung-1/bytes_recv --warning 80 --critical 90 --units Gi
And a Screenshot to be sure:
Screenshot_20180305_100925.png
Keep in mind, that i currently have the Adapter renamed to not have spaces so that the monitoring works. I was also able to reproduce the issue on at least 4 Windows Servers (stopped trying after that).

Re: Distributed Monitoring with Windows Environments

Posted: Mon Mar 05, 2018 2:46 pm
by kyang
Interesting, I'll have to try and reproduce it that way our NCPA developer can fix it if possible.

I would like to mention there is a new NCPA release 2.1.3.

Were there any more questions on this or are we all set?