performance graphs not showing warning and critical lines

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

performance graphs not showing warning and critical lines

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: performance graphs not showing warning and critical line

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

Re: performance graphs not showing warning and critical line

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: performance graphs not showing warning and critical line

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

Re: performance graphs not showing warning and critical line

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: performance graphs not showing warning and critical line

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sampaths
Posts: 13
Joined: Tue Sep 04, 2018 10:32 am

Re: performance graphs not showing warning and critical line

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: performance graphs not showing warning and critical line

Post 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)"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked