Page 1 of 1

OS version on NCPA hosts

Posted: Thu Jun 12, 2025 5:41 am
by speynaud
Hi,
I wanted to know the OS version from each of server (Linux and Windows) monitored on my nagios XI.
On both server ncpa is installed and working fine (I get data from each srv).

I'm trying as for system uptime to use check_ncpa.py plugin
$USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $USER8$ -M 'system/uptime'
I tried instead of uptime : platform, os_version, uname but nothing working

Do you know how I can get it?

thank you

Re: OS version on NCPA hosts

Posted: Fri Aug 15, 2025 12:05 pm
by ekapsner
Hi @speynaud,

Thank you for reaching out.

For you specific situation, the NCPA command would be the following:

Code: Select all

$USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $USER8$ -M 'system/version'
Which would return something like this:
OK: Version was 10.0.26100 | 'version'=10.0.26100;;;
(This is from a Windows machine)

For any other checks from the NCPA API, a great resource is the NCPA GUI. This can be accessed in the browser at the IP and port of any NCPA machine. By default, the port is 5693. In the API section, one can find all of the options that can be accessed via NCPA.

Re: OS version on NCPA hosts

Posted: Mon Aug 18, 2025 6:06 am
by nomopom670
To get the OS version for Linux and Windows servers in Nagios XI using the NCPA plugin, you can use the check_ncpa.py script. The correct metric for this is os/version. The command would look like this: $USER1$/check_ncpa.py -H $HOSTADDRESS$ -t $USER8$ -M 'os/version'. You can also try os/platform to get a more general description of the OS. Ensure your NCPA configuration allows access to these metrics, which it should by default paybyplatema