The links provided do explain this, but there are some caveats to the process. NCPA is in a state of transition right now which is why direct answers aren't easy. Also neglecting to provide the information requested doesn't help matters such as the output I requested. For example here is such output from a dummy system:
Code: Select all
{
"value": {
"root": {
"services": [],
"processes": [],
"user": {
"count": [
1,
"c"
],
"list": [
[
"root"
],
"name"
]
},
"memory": {
"swap": {
"total": [
2147479552,
"b"
],
"percent": [
0.2,
"%"
],
"free": [
2143322112,
"B"
],
"used": [
4157440,
"B"
]
},
"virtual": {
"available": [
1062133760,
"b"
],
"total": [
1929261056,
"b"
],
"percent": [
44.9,
"%"
],
"free": [
261988352,
"B"
],
"used": [
1667272704,
"B"
]
}
},
"interface": {
"lo": {
"packets_sent": [
927722,
"c"
],
"dropin": [
0,
"c"
],
"bytes_recv": [
229822137,
"b"
],
"packets_recv": [
927722,
"c"
],
"errin": [
0,
"c"
],
"dropout": [
0,
"c"
],
"bytes_sent": [
229822137,
"b"
],
"errout": [
0,
"c"
]
},
"enp0s3": {
"packets_sent": [
884684,
"c"
],
"dropin": [
0,
"c"
],
"bytes_recv": [
1433144475,
"b"
],
"packets_recv": [
13042162,
"c"
],
"errin": [
0,
"c"
],
"dropout": [
0,
"c"
],
"bytes_sent": [
550138658,
"b"
],
"errout": [
0,
"c"
]
}
},
"disk": {
"logical": {
"|boot": {
"total_size": [
520794112,
"b"
],
"used_percent": [
41.1,
"%"
],
"used": [
214065152,
"b"
],
"free": [
306728960,
"b"
],
"device_name": [
[
"/dev/sda1"
],
"name"
]
},
"|home": {
"total_size": [
20222836736,
"b"
],
"used_percent": [
0.2,
"%"
],
"used": [
33796096,
"b"
],
"free": [
20189040640,
"b"
],
"device_name": [
[
"/dev/mapper/centos-home"
],
"name"
]
},
"|": {
"total_size": [
41427873792,
"b"
],
"used_percent": [
7.2,
"%"
],
"used": [
2976378880,
"b"
],
"free": [
38451494912,
"b"
],
"device_name": [
[
"/dev/mapper/centos-root"
],
"name"
]
}
},
"physical": {
"sr0": {
"read_time": [
2,
"ms"
],
"read_bytes": [
49152,
"b"
],
"write_count": [
0,
"c"
],
"write_time": [
0,
"ms"
],
"write_bytes": [
0,
"b"
],
"read_count": [
12,
"c"
]
},
"sda2": {
"read_time": [
334399,
"ms"
],
"read_bytes": [
693708288,
"b"
],
"write_count": [
2596808,
"c"
],
"write_time": [
25635741,
"ms"
],
"write_bytes": [
19076805120,
"b"
],
"read_count": [
33522,
"c"
]
},
"sda1": {
"read_time": [
4751,
"ms"
],
"read_bytes": [
26622464,
"b"
],
"write_count": [
83,
"c"
],
"write_time": [
13912,
"ms"
],
"write_bytes": [
2134016,
"b"
],
"read_count": [
555,
"c"
]
},
"dm-2": {
"read_time": [
387,
"ms"
],
"read_bytes": [
629248,
"b"
],
"write_count": [
58963,
"c"
],
"write_time": [
589481,
"ms"
],
"write_bytes": [
183302144,
"b"
],
"read_count": [
149,
"c"
]
},
"dm-0": {
"read_time": [
337508,
"ms"
],
"read_bytes": [
690777088,
"b"
],
"write_count": [
2752420,
"c"
],
"write_time": [
75255467,
"ms"
],
"write_bytes": [
18889013760,
"b"
],
"read_count": [
33422,
"c"
]
},
"dm-1": {
"read_time": [
8056,
"ms"
],
"read_bytes": [
1871872,
"b"
],
"write_count": [
1096,
"c"
],
"write_time": [
807217,
"ms"
],
"write_bytes": [
4489216,
"b"
],
"read_count": [
318,
"c"
]
}
}
},
"system": {
"node": [
[
"avandemore-centos7.nagios.com"
],
"name"
],
"machine": [
[
"x86_64"
],
"name"
],
"uptime": [
[
706921.0
],
"s"
],
"version": [
[
"#1 SMP Mon Oct 24 16:09:20 UTC 2016"
],
"name"
],
"release": [
[
"3.10.0-327.36.3.el7.x86_64"
],
"name"
],
"agent_version": [
[
"1.8.1"
],
""
],
"system": [
[
"Linux"
],
"name"
],
"processor": [
[
"x86_64"
],
"name"
]
},
"agent": {
"plugin": [
"utils.sh",
"check_dummy",
"check_rrdtraf.php",
"check_snmp_mem.pl",
"check_nna.py",
"check_smtp_send",
"check_pop",
"check_bpi.php",
"check_pnp_rrds.pl",
"check_email_delivery",
"check_xisla.php",
"check_asterisk.pl",
"utils.pm",
"check_snmp_css_main.pl",
"check_cluster",
"check_mysql_health",
"check_imap_receive",
"check_nwstat",
"check_udp",
"check_ntp",
"check_rrdtraf",
"check_postgres.pl",
"check_ifoperstatus",
"check_smtp",
"check_mssql_server.py",
"check_snmp_linkproof_nhr.pl",
"check_nagios_performance.php",
"check_mrtgtraf",
"check_snmp_vrrp.pl",
"check_wave",
"check_ups",
"check_flexlm",
"check_ifoperstatnag",
"check_file_age",
"urlize",
"folder_watch.pl",
"check_nntps",
"check_snmp_storage.pl",
"check_mssql",
"check_load",
"check_by_ssh",
"check_wmi_plus.conf",
"check_esx3.pl",
"check_ftp_fully",
"check_snmp_load.pl",
"check_hpjd",
"check_ntp_time",
"check_disk_smb",
"check_rpc",
"check_snmp_cpfw.pl",
"check_wmi_plus.ini",
"check_mssql_database.py",
"check_snmp_win.pl",
"check_nagiosxiserver.php",
"check_nagioslogserver.php",
"check_mongodb.py",
"check_simap",
"send_nsca",
"check_procs",
"check_webinject.sh",
"check_nt",
"process_perfdata.pl",
"check_mountpoints.sh",
"check_snmp_boostedge.pl",
"check_snmp_process.pl",
"check_bl",
"check_ssh",
"check_mrtg",
"negate",
"check_sensors",
"check_time",
"check_tcp",
"check_ntp_peer",
"check_mysql_query",
"check_jabber",
"check_mysql",
"check_ifstatus",
"check_nntp",
"check_snmp",
"check_dir",
"check_nagios",
"check_dig",
"check_snmp_storage_wizard.pl",
"check_snmp_load_wizard.pl",
"check_tftp.sh",
"check_snmp_process_wizard.pl",
"check_snmp_nsbox.pl",
"check_snmp_env.pl",
"check_breeze",
"check_snmp_int.pl",
"check_ldap",
"check_iostat",
"check_nrpe",
"check_email_delivery_epn",
"check_sip",
"check_ide_smart",
"check_ncpa.py",
"check_snmp_generic.pl",
"check_dns",
"check_uptime",
"check_swap",
"check_domain.php",
"check_spop",
"check_fping",
"check_radius_adv",
"check_imap",
"check_users",
"check_real",
"check_ping",
"check_win_snmp_disk.pl",
"check_log",
"check_em01.pl",
"check_wmi_plus.pl",
"check_email_loop.pl",
"check_overcr",
"check_mailq",
"check_disk",
"check_oracle",
"check_apt",
"check_ircd",
"check_ftp",
"check_smtp_send_epn",
"check_ssmtp",
"check_icmp",
"check_ldaps",
"check_snmp_css.pl",
"check_clamd",
"check_dhcp",
"check_http",
"check_imap_receive_epn"
]
},
"cpu": {
"count": [
[
2
],
"c"
],
"idle": [
[
684945.78,
683886.38
],
"ms"
],
"percent": [],
"system": [
[
3408.75,
3272.07
],
"ms"
],
"user": [
[
17078.73,
17637.01
],
"ms"
]
}
}
}
}
Given such information it's easier to work with as long as it is in scope.