Page 1 of 1

OS and Version

Posted: Wed Nov 06, 2019 8:20 am
by dbcummings
Hello,

We are using the NCPA for 99% of our server monitoring. The NCPA collects the OS and version. However, in Nagios XI, we have to supply the OS version. Is their a way for Nagios to collect that information automagically? If not, can we please open an ER on this?

Re: OS and Version

Posted: Wed Nov 06, 2019 10:04 am
by lmiltchev
Do you have NCPA installed on the Nagios XI server? Are you asking how to use check_ncpa.py locally (on the XI box) to get the OS/Version info or how to get it without the agent? Can you elaborate?

Re: OS and Version

Posted: Wed Nov 06, 2019 10:12 am
by dbcummings
I want to collect all the OS and version numbers from every server we monitoring using the NCPA. I want that data collected in Nagios XI.

Re: OS and Version

Posted: Wed Nov 06, 2019 10:21 am
by lmiltchev
There are various system API endpoints that you could use. Here's a few examples of checks run from the CLI:

Code: Select all

[root@main-nagios-xi libexec]# ./check_ncpa.py -H x.x.x.x -P 5693 -t mytoken -M system/system
OK: System was ['Linux']
[root@main-nagios-xi libexec]# ./check_ncpa.py -H x.x.x.x -P 5693 -t mytoken -M system/machine
OK: Machine was ['x86_64']
[root@main-nagios-xi libexec]# ./check_ncpa.py -H x.x.x.x -P 5693 -t mytoken -M system/release
OK: Release was ['2.6.32-754.17.1.el6.x86_64']

[root@main-nagios-xi libexec]# ./check_ncpa.py -H y.y.y.y -P 5693 -t mytoken -M system/system
OK: System was ['Windows']
[root@main-nagios-xi libexec]# ./check_ncpa.py -H y.y.y.y -P 5693 -t mytoken -M system/machine
OK: Machine was ['AMD64']
[root@main-nagios-xi libexec]# ./check_ncpa.py -H y.y.y.y -P 5693 -t mytoken -M system/release
OK: Release was ['7']
Is this what you are looking for?

Re: OS and Version

Posted: Wed Nov 06, 2019 10:24 am
by dbcummings
Yes. That could help, but ultimately, I would like this to be collected as part of the host data in Nagios XI. Today, when we use a wizard, we manually assign a OS to the server. I would like that to be imported and that data associated with the host in Nagios XI.

Re: OS and Version

Posted: Wed Nov 06, 2019 11:03 am
by lmiltchev
I just talked to our developers, and they said that they will be filing a feature request on adding this functionality. Please let us know if you have any further questions.

Re: OS and Version

Posted: Thu Nov 07, 2019 6:48 am
by dbcummings
No. That is perfect. Thank you. You may lock this post.

Re: OS and Version

Posted: Thu Nov 07, 2019 7:37 am
by scottwilkerson
dbcummings wrote:No. That is perfect. Thank you. You may lock this post.
Great!

Locking thread