CPU load monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

CPU load monitoring

Post 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!!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU load monitoring

Post by ssax »

See here for ISE:

https://labs.consol.de/nagios/check_nwc ... index.html
https://support.nagios.com/forum/viewto ... 16&t=58246

I think this will also work for the Barracuda:

https://labs.consol.de/nagios/check_nwc ... index.html

See here for some more Barracuda plugins:

https://exchange.nagios.org/directory/P ... /Barracuda

Let us know if you have any questions.

Thank you!
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: CPU load monitoring

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU load monitoring

Post 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.
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: CPU load monitoring

Post 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]#
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU load monitoring

Post 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
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: CPU load monitoring

Post 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]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU load monitoring

Post 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
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

Re: CPU load monitoring

Post 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 ~]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: CPU load monitoring

Post 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.
Locked