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?
OS and Version
Re: OS and Version
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
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
There are various system API endpoints that you could use. Here's a few examples of checks run from the CLI:
Is this what you are looking for?
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']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
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
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
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
Great!dbcummings wrote:No. That is perfect. Thank you. You may lock this post.
Locking thread