Page 1 of 1
CPU load monitoring
Posted: Thu Dec 17, 2020 6:43 am
by kalyanpabolu
Hello Team,
We want to monitor CPU load for ISE servers and Barracuda web filters.
Could you please provide specific plugins for them?
Thanks in advance!!
Re: CPU load monitoring
Posted: Thu Dec 17, 2020 6:24 pm
by ssax
Re: CPU load monitoring
Posted: Tue Dec 22, 2020 4:10 am
by kalyanpabolu
Hello,
Thanks for your help!!
That plugin is working fine for ISE servers.
For Baracudda, we are bale to fetch CPU load details, but when we cross verify it after logging into the device, the valur=e is not correct.
For eg: Nagios was showing 92% CPU load but actually it was just 42%.
Can you please help us to get the accurate values?
Re: CPU load monitoring
Posted: Tue Dec 22, 2020 6:16 pm
by ssax
Were you using the check_nwc_health one or a different plugin for the barracuda? (link us to the exact one you're using if it's not check_nwc_health)
Please re-run the command from the XI server and send us the full output.
Re: CPU load monitoring
Posted: Wed Dec 23, 2020 3:01 am
by kalyanpabolu
Hello,
We are using the standard check_nwc_health plugin only. Below is the command output for Baracuda 10.1.253.253.
I am attaching the screenshot of Baracuda dashboard here. If you see from screenshot, the system load is 6%. At the same time we checked from Nagios, it is giving system percent as 1.79%.
We are unable to understand why its giving different value?
[root@HO1-NAGIOSXI libexec]# ./check_nwc_health --hostname 10.1.253.253 --mode cpu-load --community mrtg#429monitor --verbose
OK - cpu (total): 21.98%, user: 1.59%, system: 1.79%, nice: 1.08%, wait: 17.52%, kernel: 0.00%, interrupt: 0.00%
checking cpus
cpu (total): 21.98%
user: 1.59%
system: 1.79%
nice: 1.08%
wait: 17.52%
kernel: 0.00%
interrupt: 0.00% | 'cpu_usage'=21.98%;50;90;0;100 'user_usage'=1.59%;50;90;0;100 'system_usage'=1.79%;50;90;0;100 'nice_usage'=1.08%;50;90;0;100 'wait_usage'=17.52%;50;90;0;100 'kernel_usage'=0%;50;90;0;100 'interrupt_usage'=0%;50;90;0;100
[root@HO1-NAGIOSXI libexec]#
Re: CPU load monitoring
Posted: Wed Dec 23, 2020 10:14 am
by ssax
More than likely the barricuda is doing this for their load calculation:
https://campus.barracuda.com/product/em ... +Firewall/
Based on the plugin it's likely just pulling the values that are returned to it by the remote device (and not doing the over time calculation), please send the output of these commands:
Code: Select all
snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.52
snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.51
snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.50
snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.53
If those don't return anything, try these:
Code: Select all
snmpwalk -Os -v1 -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.52
snmpwalk -Os -v1 -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.51
snmpwalk -Os -v1 -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.50
snmpwalk -Os -v1 -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.53
Re: CPU load monitoring
Posted: Wed Dec 23, 2020 10:22 am
by kalyanpabolu
Hello,
Below is the output:
[root@HO1-NAGIOSXI libexec]# snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.52
ssCpuRawSystem.0 = Counter32: 3460490516
[root@HO1-NAGIOSXI libexec]# snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.51
ssCpuRawNice.0 = Counter32: 230581704
[root@HO1-NAGIOSXI libexec]# snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.50
ssCpuRawUser.0 = Counter32: 1600954475
[root@HO1-NAGIOSXI libexec]# snmpwalk -Os -v2c -c 'mrtg#429monitor' 10.1.253.253 1.3.6.1.4.1.2021.11.53
ssCpuRawIdle.0 = Counter32: 201717206
[root@HO1-NAGIOSXI libexec]#
Re: CPU load monitoring
Posted: Wed Dec 23, 2020 4:51 pm
by ssax
What is the full output of this command?
Code: Select all
/usr/local/nagios/libexec/check_nwc_health -t 120 -vv --mode cpu-load --hostname 10.1.253.253 --community 'mrtg#429monitor'
Looking at the code it looks like it's using this for calculations which seems to do the delta changes:
https://github.com/lausser/check_nwc_he ... bsystem.pm
Re: CPU load monitoring
Posted: Thu Dec 24, 2020 1:53 am
by kalyanpabolu
Hello,
Below is the output:
[root@HO1-NAGIOSXI ~]# /usr/local/nagios/libexec/check_nwc_health -t 120 -vv --mode cpu-load --hostname 10.1.253.253 --community 'mrtg#429monitor'
[CPUSUBSYSTEM]
cpu_usage: 8.81726327767329
delta_ssCpuRawIdle: 445538
delta_ssCpuRawInterrupt: 0
delta_ssCpuRawKernel: 0
delta_ssCpuRawNice: 5842
delta_ssCpuRawSystem: 3966
delta_ssCpuRawUser: 8561
delta_ssCpuRawWait: 24714
delta_timestamp: 613
interrupt_usage: 0
kernel_usage: 0
nice_usage: 1.19560968521615
ssCpuIdle: 92
ssCpuRawIdle: 241691794
ssCpuRawIdle_per_sec: 726.815660685155
ssCpuRawInterrupt: 0
ssCpuRawInterrupt_per_sec: 0
ssCpuRawKernel: 0
ssCpuRawKernel_per_sec: 0
ssCpuRawNice: 231237973
ssCpuRawNice_per_sec: 9.53017944535073
ssCpuRawSystem: 3461155712
ssCpuRawSystem_per_sec: 6.46982055464927
ssCpuRawUser: 1601722899
ssCpuRawUser_per_sec: 13.9657422512235
ssCpuRawWait: 2835997100
ssCpuRawWait_per_sec: 40.3164763458401
ssCpuSystem: 0
ssCpuUser: 1
system_usage: 0.811672032106684
user_usage: 1.75207369310775
wait_usage: 5.05790786724271
info: interrupt: 0.00%
OK - cpu (total): 8.82%, user: 1.75%, system: 0.81%, nice: 1.20%, wait: 5.06%, kernel: 0.00%, interrupt: 0.00%
checking cpus
cpu (total): 8.82%
user: 1.75%
system: 0.81%
nice: 1.20%
wait: 5.06%
kernel: 0.00%
interrupt: 0.00% | 'cpu_usage'=8.82%;50;90;0;100 'user_usage'=1.75%;50;90;0;100 'system_usage'=0.81%;50;90;0;100 'nice_usage'=1.20%;50;90;0;100 'wait_usage'=5.06%;50;90;0;100 'kernel_usage'=0%;50;90;0;100 'interrupt_usage'=0%;50;90;0;100
[root@HO1-NAGIOSXI ~]#
Re: CPU load monitoring
Posted: Mon Dec 28, 2020 6:52 pm
by ssax
I'm unable to see what the issues is with the plugin, since this is a 3rd party plugin please create a new issue here so that the developer of it can fix it:
https://github.com/lausser/check_nwc_health/issues
I took a look but I was unable to find where the bug is.