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
OS version on NCPA hosts
Re: OS version on NCPA hosts
Hi @speynaud,
Thank you for reaching out.
For you specific situation, the NCPA command would be the following:
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.
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'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.
-
nomopom670
- Posts: 1
- Joined: Mon Aug 18, 2025 6:04 am
Re: OS version on NCPA hosts
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
Last edited by nomopom670 on Mon Aug 18, 2025 11:15 pm, edited 1 time in total.