Multiline service, Graph doesn't show Warn/Crit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krebs
Posts: 2
Joined: Thu Jan 12, 2017 11:29 am

Multiline service, Graph doesn't show Warn/Crit

Post by krebs »

Hi there,
I'm new here, I work for a company who bought nagiosxi for a customer, so dunno where/how to find support ticket account, so I type it here
I developed some plugins but I found a problem that even exists in default plugins.
If perfdata is one only value everything is ok. I can see "warning" and "critical" in graph by clicking yellow triangle or red circle. (check attached image)
If it is a multivalue performance data I cannot see wanring and critical buttons.
example:
rta=0.288ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.364ms;;;; rtmin=0.251ms;;;;
(this is the default ping performance data output)
Is it a bug?
Am I wrong in something?
Thanks in Advance.
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Multiline service, Graph doesn't show Warn/Crit

Post by mcapra »

If you have an active support contract with us, feel free to contact our sales department for information on submitting tickets and accessing the customer section of our support forums.

The warning/critical lines won't show if you have many different metrics with many different (or in your case non-existent) warning/critical thresholds. This is intended behavior and prevents conflicting information from being presented in the performance data graphs.

If the rta is in terms of ms and the pl is in terms of %, displaying the warning/critical thresholds in terms of ms for a metric like pl wouldn't make much sense.
Former Nagios employee
https://www.mcapra.com/
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Multiline service, Graph doesn't show Warn/Crit

Post by rkennedy »

This might help - https://nagios-plugins.org/doc/guidelines.html

@mcapra is right though, and your perfdata speaks it too. See the multiple semi-colons without data between? RTA has 3000, and 5000 defined, which are your lines it will use for thresholds.

Code: Select all

rta=0.288ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.364ms;;;; rtmin=0.251ms;;;;
Former Nagios Employee
krebs
Posts: 2
Joined: Thu Jan 12, 2017 11:29 am

Re: Multiline service, Graph doesn't show Warn/Crit

Post by krebs »

not a "different metrics" problem:

let's see bandwidth in this ezample:

in=1.5425Mbps;80;100;; out=.1022Mbps;80;100;;

has same problem.
bandwidth.png
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Multiline service, Graph doesn't show Warn/Crit

Post by mcapra »

Ah, the thresholds also won't show if there's more than one metric period regardless of the units involved. The logic on the back-end is like this:

Code: Select all

if (count($datasource) <= 1) {
    //show warning/crtical options 
}
else {
    //hide warning/critical options 
}
Former Nagios employee
https://www.mcapra.com/
Locked