Page 1 of 1
performance graphs not showing warning and critical lines
Posted: Tue Feb 12, 2019 11:41 am
by sampaths
Hi,
We recently upgraded from Nagios XI version 5.2.9 to 5.5.9 on our test server.
Previously we were able to see warning and critical line in the performance graphs.
nag1.PNG
Right now in version 5.5.9 we are not seeing that.
nag2.PNG
please advice, how to enable them.
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 12:15 pm
by lmiltchev
The warning and critical values have been removed from the "popup" after XI 5.3. Also, the warning and critical lines would show on the graph only if you had one datasource. If you had multiple datasources, the line wouldn't show at all.
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 12:45 pm
by sampaths
what is multiple datasources?
Here is how we are running the check.
root@hadcrdtnagios01:~# /usr/local/nagios/libexec/check_nrpe -H HQBISQL80N1 -c CheckMEM -a ShowAll type=physical MaxWarn=95% MaxCrit=97%
OK: physical: Total: 31.994GB - Used: 29.516GB (92%) - Free: 2.479GB (7%)|'physical'=29.51562GB;30.39445;31.03433;0;31.99416 'physical %'=92%;95;97;0;100
root@hadcrdtnagios01:~#
this is a windows server running NSClient++
here is the graph for it.
nag3.PNG
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 12:54 pm
by lmiltchev
Well, you have two datasources in this check - 'physical' and 'physical %'.
OK: physical: Total: 31.994GB - Used: 29.516GB (92%) - Free: 2.479GB (7%)|'physical'=29.51562GB;30.39445;31.03433;0;31.99416 'physical %'=92%;95;97;0;100
You can see both in the graph.
Here's an example of a check with one datasource in the output:
/usr/local/nagios/libexec/check_nt -H x.x.x.x -s "password" -p 12489 -v USEDDISKSPACE -l C -w 90 -c 95
C:\ - total: 107.47 Gb - used: 87.85 Gb (82%) - free 19.62 Gb (18%) | 'C:\ Used Space'=87.85Gb;96.72;102.10;0.00;107.47
You can see the warning and critical lines on the graph.
example01.PNG
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 1:36 pm
by sampaths
We are using check_nrpe, i cannot change all my checks to check_nt now
I am using exactly how it is defined here.
https://support.nagios.com/kb/article/n ... l-169.html
in every implementation of check_nrpe to check memory has both 'physical' and 'physical %' according to this page.
https://support.nagios.com/kb/article/m ... s-774.html
removing data from popup is ok but not able to plot graphs if there are multiple datasources which used to work before, i see this as a feature loss for us if we upgrade to latest version.
or if i am missing something please let me know a way where i can continue using check_nrpe and just get one datasource.
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 3:00 pm
by npolovenko
@sampaths, This is the performance output from your memory check:
'physical'=29.51562GB;30.39445;31.03433;0;31.99416 'physical %'=92%;95;97;0;100
Graph #1 is called 'physical'(its value is roughly 29) and graph #2 is called 'physical %'(its value is 92%).
So since there are 2 graphs in 1, where would the threshold line be? At 97% or at 30(which roughly equals 97%)?
You'd say it makes sense to only include the percentage graph to draw the threshold line in this case. But what about graphs with multiple measurements, like this one? It'd be impossible to figure out where to draw the threshold line.
image.png
That's why the decision was made to only draw a threshold line on graphs where there is only 1 measurement=datasource.
All graphs will still work regardless of how many data sources, but the threshold line will not be shown.
Re: performance graphs not showing warning and critical line
Posted: Tue Feb 12, 2019 4:21 pm
by sampaths
ok I understand, could you please guide me how to use check_nrpe (we don't want to use check_nt) when i have a nsclient++ running on a windows machine.
And monitor for memory check, with only one data source in the output so that we can have the lines for thresholds in the graph.
Re: performance graphs not showing warning and critical line
Posted: Wed Feb 13, 2019 2:23 pm
by npolovenko
@sampaths, Consider using the following command + syntax instead:
/usr/local/nagios/libexec/check_nrpe -H HQBISQL80N1 -c check_memory -a 'warn=free<5%' 'crit=free<3%' 'type=physical' "perf-config=*(ignored:true) %(ignored:false)"