graph template - plot negative

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

graph template - plot negative

Post by zaji_nms »

Dear Expert,

i need to plot a data source value to negative side on a performance graph template what changes is required to be done ??? i have enclosed attached graph where i can not see the Q traffic and drop pkt due to different unit

Regards,
Yusuf
You do not have the required permissions to view the files attached to this post.
Zajil NMS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: graph template - plot negative

Post by abrist »

Can you show us a full output of the check including all 3 performance data metrics?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: graph template - plot negative

Post by zaji_nms »

Performance Data: queued_bw=0.02Mb/s;285.00;342.00; transmitted_bw=0.02Mb/s;285.00;342.00; drop_pkt=356;20;40;
Zajil NMS
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: graph template - plot negative

Post by sreinhardt »

Unless it is expected at some point that you will actually hit the warning and critical numbers, I would highly suggest altering those before looking to change the pnp template. This will make it so that your graph actually has some movement to it, whereas now it would only show a straight line just above 0, similar to what you see now. You might try a warning\critical of 5\10 or 15\30 and see how that works for you. I can fairly safely say that you don't appear to ever go near the current warning and critical values, so this may also provide a little bit more reasonable alerting if something is off.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: graph template - plot negative

Post by zaji_nms »

i only want to plot following value which is drop_pkt=356 negative in graph template , so my ds_1 and ds_2 values will come up and ds_3 will come down
You do not have the required permissions to view the files attached to this post.
Zajil NMS
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: graph template - plot negative

Post by zaji_nms »

solved ...using below command in graph_template
$def[1] .= "CDEF:drop=var3,-1,* " ;
Zajil NMS
Locked