NCPA / NRDP Monitoing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

NCPA / NRDP Monitoing

Post 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 :)
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NCPA / NRDP Monitoing

Post 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
You do not have the required permissions to view the files attached to this post.
Interrex
Posts: 68
Joined: Thu May 19, 2016 8:42 am

Re: NCPA / NRDP Monitoing

Post 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.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NCPA / NRDP Monitoing

Post 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
You do not have the required permissions to view the files attached to this post.
Locked