Hello,
I've just started deploying the NCPA agent in my environment and I'm running into an issue where the NCPA wizard is not populating the disk metrics, network interface metrics, or services discovery portions of the wizard. I'm trying to monitor Windows Server 2016, 2012R2 and 2008R2 with NCPA but getting the same result on all flavors. The wizard will continue on without error with adding the new host, just without those metrics/service monitors. I've updated to XI 5.6.5. I've updated the plugin to 1.1.5 from the NCPA download page. I've updated the config wizard to 2.0.6. I'm using version 2.1.8 of the agent. All have not resolved the issue. I'm using the default listener configuration (aside from adding in my token). I don't plan on using passive monitoring and have left the passive configuration at default as well. I've attached screenshots of what the fields look like.
Thanks!
NCPA Wizard Metrics Not Showing
NCPA Wizard Metrics Not Showing
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Wizard Metrics Not Showing
Can you try running this from the command line replacing HOSTNAME and TOKEN from your Nagios XI server to see if you get results
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t TOKEN --listRe: NCPA Wizard Metrics Not Showing
Here is the output
Code: Select all
[root@QVCNAGIOS libexec]# ./check_ncpa.py -H ***Edited*** -t ***Edited*** --list
{
"root": {
"processes": [],
"logs": {
"message": "No log type selected. Select log types using 'name=<type>'. Example: api/logs?name=System. Multiple log types can be selected."
},
"memory": {
"swap": {
"used": [
6.46,
"GiB"
],
"total": [
18.809999999999999,
"GiB"
],
"percent": [
34.399999999999999,
"%"
],
"free": [
12.35,
"GiB"
]
},
"virtual": {
"available": [
10.51,
"GiB"
],
"total": [
16.0,
"GiB"
],
"percent": [
34.299999999999997,
"%"
],
"free": [
10.51,
"GiB"
],
"used": [
5.4900000000000002,
"GiB"
]
}
},
"system": {
"node": "***Edited***",
"uptime": [
2402585.0,
"s"
],
"system": "Windows",
"machine": "AMD64",
"version": "10.0.14393",
"time": 1565209603.592,
"release": "10",
"timezone": [
"Pacific Standard Time",
"Pacific Daylight Time"
],
"processor": "Intel64 Family 6 Model 45 Stepping 2, GenuineIntel",
"agent_version": "2.1.8"
},
"services": [],
"user": {
"count": [
2,
"users"
],
"list": [
[
"***Edited***",
"***Edited***"
],
"users"
]
},
"windowscounters": [],
"interface": {
"Ethernet0": {
"dropin": [
0,
"packets"
],
"bytes_recv": [
96.75,
"GiB"
],
"packets_recv": [
138624505,
"packets"
],
"dropout": [
0,
"packets"
],
"bytes_sent": [
21.379999999999999,
"GiB"
],
"errout": [
0,
"errors"
],
"errin": [
0,
"errors"
],
"packets_sent": [
77934573,
"packets"
]
},
"isatap.{D6E0D490-7536-48D6-9CF1-C2EFE0E24C3E}": {
"dropin": [
0,
"packets"
],
"bytes_recv": [
0.0,
"GiB"
],
"packets_recv": [
0,
"packets"
],
"dropout": [
0,
"packets"
],
"bytes_sent": [
0.0,
"GiB"
],
"errout": [
0,
"errors"
],
"errin": [
0,
"errors"
],
"packets_sent": [
0,
"packets"
]
},
"Loopback Pseudo-Interface 1": {
"dropin": [
0,
"packets"
],
"bytes_recv": [
0.0,
"GiB"
],
"packets_recv": [
0,
"packets"
],
"dropout": [
0,
"packets"
],
"bytes_sent": [
0.0,
"GiB"
],
"errout": [
0,
"errors"
],
"errin": [
0,
"errors"
],
"packets_sent": [
0,
"packets"
]
}
},
"disk": {
"mount": {
"D:|": {
"device_name": [
"D:\\"
],
"opts": "cdrom",
"fstype": ""
}
},
"logical": {
"C:|": {
"used_percent": [
28.5,
"%"
],
"used": [
22.629999999999999,
"GiB"
],
"free": [
56.859999999999999,
"GiB"
],
"device_name": [
"C:\\"
],
"fstype": "NTFS",
"total": [
79.489999999999995,
"GiB"
],
"opts": "rw,fixed"
}
},
"physical": {
"PhysicalDrive0": {
"read_count": [
348121,
"c"
],
"write_bytes": [
222.78,
"GiB"
],
"write_count": [
5688561,
"c"
],
"read_time": [
300,
"ms"
],
"read_bytes": [
8.5,
"GiB"
],
"write_time": [
7658,
"ms"
]
}
}
},
"plugins": [],
"cpu": {
"count": [
[
2
],
"cores"
],
"idle": [
[
2201016.46875,
2229008.609375
],
"ms"
],
"percent": [],
"system": [
[
66512.59375,
62126.015625
],
"ms"
],
"user": [
[
135056.953125,
111450.4375
],
"ms"
]
}
}
}
[root@QVCNAGIOS libexec]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Wizard Metrics Not Showing
Hmm, I just tested this with all the same versions against 2012R2 server and everything populated as expected.
Not sure what chars you may have in your password but is there any chance you could test an alpha-numeric token on one of your servers and see if that works? It's possible we may have found a bug, but we need to decipher why it isn't populating.
Another thing to look at would be the developer tools in your browser to see if you are getting any console errors when it is trying to make the AJAX calls
Not sure what chars you may have in your password but is there any chance you could test an alpha-numeric token on one of your servers and see if that works? It's possible we may have found a bug, but we need to decipher why it isn't populating.
Another thing to look at would be the developer tools in your browser to see if you are getting any console errors when it is trying to make the AJAX calls
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Wizard Metrics Not Showing
I looked at the code and I believe we found a bug, we were able to replicate it and fix it.
Attached is a new version of the wizard that should resolve the issue
Upload through Admin -> Manage Config Wizards
Attached is a new version of the wizard that should resolve the issue
Upload through Admin -> Manage Config Wizards
You do not have the required permissions to view the files attached to this post.
Re: NCPA Wizard Metrics Not Showing
It worked! The fields now populate! Thank you!!!
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA Wizard Metrics Not Showing
Great!ehln wrote:It worked! The fields now populate! Thank you!!!
Glad to help.