Page 1 of 1

NCPA / NRDP Monitoing

Posted: Tue Feb 22, 2022 5:57 am
by Interrex
Hi.

I have read the general documentation, and are doing the basic monitoring as CPU, MEM, Disk, Service, Application etc and it's working good.
Is it possible to see if an application is running in background or foreground on Windows 10 ?

I think it's hard to find documentation / examples for how I can expand my monitoring with NCPA / NRDP.
So if anyoune have any tips or links please post them below :)

Re: NCPA / NRDP Monitoing

Posted: Tue Feb 22, 2022 4:27 pm
by pbroste
Hello @interrex

Thanks for reaching out, with inquiries on options for monitoring services. The Nagios XI provides Configuration Wizards that provide menu-driven configuration. Nagios XI => Configure => Configuration Wizards.
[/list]

Please let us know if you have further questions.

Thanks,
Perry

Re: NCPA / NRDP Monitoing

Posted: Sat Feb 26, 2022 3:00 am
by Interrex
Thank you for replying.

I'm aware that other plugins can solve this, but I need to use NRDP /NCPA plugin for monitoring.
Sorry for not clearifying that in my previous post.

As far as I can see the process api do not offer information about the state of the application, as foreground / background etc, only if it's running and cpu, mem etc stats. Is this correct ?

It might be possible to run it as a plugin, as a custom script executed from the NCPA / NRDP service.

Re: NCPA / NRDP Monitoing

Posted: Tue Mar 01, 2022 12:33 pm
by pbroste
Hello @Interrex

Thanks for following up and providing additional details. Took a look at the Passive options utilizing 'NRDP' and tested the following that I found in the exchange forum:
we use this script for multiple lines of output:
define command {
command_name notify-service-by-nrdp
command_line /path/send_nrdp.sh "$HOSTNAME$" "$SERVICEDESC$" $SERVICESTATEID$ "$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$" "$SERVICEPERFDATA$"
}
/path/send_nrdp.sh:
#!/bin/bash
TEST=$(echo "$4 | $5" | sed 's/$/\n/' | tr -d "\r\n" )
/usr/local/nrdp/clients/send_nrdp.php --url=http://1.1.1.1/nrdp --token=xyzterw --host="$1" --service="$2" --state="$3" --output="$TEST"
In my test I used the following command: /usr/local/nrdp/clients/send_nrdp.php --url=http://192.168.xxx.xxx/nrdp --token=welcome --host="192.168.xxx.xxx" --service="nxlog" --state="0" --output=/root/send_nrdp.sh

The output then generates a 'Unconfigure Object' that I approve and the output looks like this:
  • nxlog.png
This is the option I tested on my VM today; I am sure that other possibilities will work to script checks to feed into 'NRDP'

Thank,
Perry