Page 1 of 2
Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Fri Apr 21, 2017 3:41 am
by sarfarosh
Hi Team,
PFA, we are unable to see the Toggle Critical/Warning buttons on performance graph of Memory Usage. This is the problem with both windows and linux servers.
Note:
We can see toggle buttons for other services.
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Fri Apr 21, 2017 11:29 am
by mcapra
Typically this happens when there's multiple data sources found in the service's performance data file. Can you share the output of this command:
Code: Select all
rrdtool info /usr/local/nagios/share/perfdata/ageuprdapp018-7/Memory_Usage.rrd
Can you also share the output of that service's check command executed from the CLI?
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Mon Apr 24, 2017 1:06 am
by sarfarosh
Hi mcapra,
Please find the output of below:
[root@andover-nagiosxi ~]# rrdtool info /usr/local/nagios/share/perfdata/ageuprdapp018-7/Memory_Usage.rrd
filename = "/usr/local/nagios/share/perfdata/ageuprdapp018-7/Memory_Usage.rrd"
rrd_version = "0003"
step = 60
last_update = 1493013599
ds[1].type = "GAUGE"
ds[1].minimal_heartbeat = 8460
ds[1].min = NaN
ds[1].max = NaN
ds[1].last_ds = "77"
ds[1].value = 4.5430000000e+03
ds[1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 2880
rra[0].cur_row = 2353
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 2880
rra[1].cur_row = 2599
rra[1].pdp_per_row = 5
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 3.0800000000e+02
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 4320
rra[2].cur_row = 4044
rra[2].pdp_per_row = 30
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 2.2330000000e+03
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 5840
rra[3].cur_row = 1432
rra[3].pdp_per_row = 360
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 2.7804116667e+04
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 2880
rra[4].cur_row = 2507
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 2880
rra[5].cur_row = 1539
rra[5].pdp_per_row = 5
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 7.7000000000e+01
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 4320
rra[6].cur_row = 1197
rra[6].pdp_per_row = 30
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 7.7000000000e+01
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 5840
rra[7].cur_row = 4055
rra[7].pdp_per_row = 360
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 7.8000000000e+01
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[8].cf = "MIN"
rra[8].rows = 2880
rra[8].cur_row = 2504
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MIN"
rra[9].rows = 2880
rra[9].cur_row = 648
rra[9].pdp_per_row = 5
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 7.7000000000e+01
rra[9].cdp_prep[0].unknown_datapoints = 0
rra[10].cf = "MIN"
rra[10].rows = 4320
rra[10].cur_row = 1249
rra[10].pdp_per_row = 30
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 7.7000000000e+01
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[11].cf = "MIN"
rra[11].rows = 5840
rra[11].cur_row = 5646
rra[11].pdp_per_row = 360
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 7.7000000000e+01
rra[11].cdp_prep[0].unknown_datapoints = 0
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Mon Apr 24, 2017 10:11 am
by mcapra
Can you also share the output of that service's check command executed from the CLI? I want to be sure that the metrics involved are the same format as the data source.
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Tue Apr 25, 2017 3:47 am
by sarfarosh
Hi mcapra,
Please find the CLI command & Output for memory usage below:
[nagios@andover-nagiosxi ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.1.18.28 -t 30 -c CheckMEM -a ShowAll=long type=physical MaxWarn=80% MaxCrit=90%
OK: physical memory: Total: 8G - Used: 6.18G (77%) - Free: 1.82G (23%)|'physical memory %'=77%;80;90 'physical memory'=6.18GB;6.4;7.2;0;8
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Tue Apr 25, 2017 12:13 pm
by mcapra
The core problem is that the returned output contains 2 performance metrics that are using 2 different units:
'physical memory %'=77%;80;90 'physical memory'=6.18GB;6.4;7.2;0;8
The warning/critical thresholds won't be displayed in this situation because, on a graph, it doesn't make sense to apply percentage values to gigabyte values and vice versa. Future versions of our performance graphs may contain special handling for such cases, but the current version of Nagios XI simply won't display the thresholds if there are multiple UOMs involved.
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Wed Apr 26, 2017 2:24 am
by sarfarosh
Hi Mcapra,
Please find the memory usage command output of linux server. I am not getting the toggle buttons for this also.
/usr/local/nagios/libexec/check_nrpe -H 10.1.2.21 -t 30 -c check_mem -a '-w 20 -c 10'
OK - 214996 / 258294 MB (83%) Free Memory, Used: 170171 MB, Shared: 94794 MB, Buffers: 749 MB, Cached: 126873 MB | total=258294MB free=214996MB used=170171MB shared=94794MB buffers=749MB cached=126873MB
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Wed Apr 26, 2017 9:37 am
by mcapra
In the case of this particular check_nrpe execution, the performance data isn't returning warning/critical thresholds. It's just returning the value. Thus, the performance graph has no thresholds to display.
Code: Select all
total=258294MB free=214996MB used=170171MB shared=94794MB buffers=749MB cached=126873MB
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Thu Apr 27, 2017 1:44 am
by sarfarosh
Hi mcapra,
Can you please provide me the solution ? What should be done to to overcome this issue ?
Re: Toggle Critical/Warning Not Displaying for Memory Usage
Posted: Thu Apr 27, 2017 9:53 am
by SteveBeauchemin
Question - the second example where you have shown your output syntax. Is that from a Linux host? If so, in order to answer your question please provide the nrpe definition you are using for check_mem.
in my nrpe.cfg file, check_mem can be any script I want it to be. I actually have 2.
Code: Select all
command[check_mem]=/usr/local/nagios/libexec/custom_check_mem.sh $ARG1$
command[check_mem2]=/usr/local/nagios/libexec/check_mem.pl $ARG1$
In order to help you, the plugin script you are using needs to be known. Then it probably would need to be modified such that the Performance data output follows the proper syntax guidelines that Nagios provides. Look here for the full syntax.
https://nagios-plugins.org/doc/guidelines.html#AEN200
in particular, this piece.
Code: Select all
'label'=value[UOM];[warn];[crit];[min];[max]
Steve B