Page 2 of 2

Re: Cisco ISE Device Memory and CPU Usage Monitoring

Posted: Tue Apr 28, 2020 1:20 pm
by vignesha
Hi,

I have added the mentioned flag and now we are able to fetch the details. PFB output for reference

OUtput:
[root@xxxxxxxlibexec]# /usr/local/nagios/libexec/check_nwc_health --hostname=xx.xxx.xx.xx -t 60 --community='xxxxxxxxxxx' --mode=cpu-load --warning=90 --critical=95 --servertype=generic_ucd
OK - cpu (total): 8.52%, user: 6.17%, system: 2.23%, nice: 0.01%, wait: 0.12%, kernel: 0.00%, interrupt: 0.00%, load-1 is 0.27, load-5 is 0.33, load-15 is 0.30 | 'cpu_usage'=8.52%;90;95;0;100 'user_usage'=6.17%;90;95;0;100 'system_usage'=2.23%;90;95;0;100 'nice_usage'=0.01%;90;95;0;100 'wait_usage'=0.12%;90;95;0;100 'kernel_usage'=0%;90;95;0;100 'interrupt_usage'=0%;90;95;0;100 'load-1'=0.27;90;95;; 'load-5'=0.33;90;95;; 'load-15'=0.30;90;95;;

[root@xxxxxxx libexec]# /usr/local/nagios/libexec/check_nwc_health --hostname=xx.xxx.xx.xx -t 30 --community='xxxxxxxxxxx' --mode=memory-usage --warning=90 --critical=95 --servertype=generic_ucd
OK - memory usage is 19.79%, swap usage is 0.10% | 'memory_usage'=19.79%;90;95;0;100 'swap_usage'=0.10%;90;95;0;100


Thanks for your help, before closing the thread i have few questions

1. Could you explain --servertype=generic_ucd flag in detail
2. --servertype=generic_ucd flag is not available in plugin help
3. will --servertype=generic_ucd flag will get differ for any other devices

Re: Cisco ISE Device Memory and CPU Usage Monitoring

Posted: Tue Apr 28, 2020 2:37 pm
by tgriep
1. Instead of the plugin trying to determine automatically what the device is, that option forces the plugin to use the generic_ucd method to gather the information. Which uses OIDs from UCD MIB to gather the data from the device which has the information for the detailed output you are looking for.
2. I opened up the plugin in a text editor to view the list of servertypes, that is where I found it.
3. It may not work across all devices so you will have to test each device.

Re: Cisco ISE Device Memory and CPU Usage Monitoring

Posted: Wed Apr 29, 2020 12:50 pm
by vignesha
Hi,

Thanks for your valuable answer, now we are good to close the thread. :)