OS and Version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

OS and Version

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: OS and Version

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: OS and Version

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: OS and Version

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: OS and Version

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: OS and Version

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: OS and Version

Post by dbcummings »

No. That is perfect. Thank you. You may lock this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: OS and Version

Post by scottwilkerson »

dbcummings wrote:No. That is perfect. Thank you. You may lock this post.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked