Page 1 of 2
Wrong data - SWAP - Performance graph
Posted: Fri Jun 24, 2016 8:07 am
by sify_nagios
Dear Team,
I would like to get clarified on SWAP performance graph. Unlike other parameters swap uses free value to plot the graph.
Which is not desired in performance graphing.
Ex : One server having 0% swap utilized. But the graph showing like swap is fully utilized.
Value :
VALUE.JPG
But the graph is displayed like the swap fully utilized.
Graph :
VALUE.JPG
Kindly let us know how to fix the above issue asap.
Rgds
Srini
Re: Wrong data - SWAP - Performance graph
Posted: Fri Jun 24, 2016 9:49 am
by rkennedy
Could you show us the check_command associated with the service so we can see the exact way it's being executed? This will help us take a look at it on our end.
Re: Wrong data - SWAP - Performance graph
Posted: Fri Jun 24, 2016 9:59 am
by sify_nagios
Hi Kennedy,
Please find the below check command for your reference.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 192.168.87.27 -t 30 -c check_swap -a '-w 50 -c 20'
Host is configured using Linux wizard provided in Naigos XI.
Please get back to for more info.
Rgds
Srini
Re: Wrong data - SWAP - Performance graph
Posted: Fri Jun 24, 2016 12:07 pm
by tgriep
The check_swap plugin's output is setup to show the amount of free space for the SWAP and not used space.
You may want to look at this plugin should show the amount of used SWAP which is what you are looking for.
https://exchange.nagios.org/directory/P ... ux/details
Re: Wrong data - SWAP - Performance graph
Posted: Sun Jun 26, 2016 11:59 pm
by sify_nagios
Hi Team,
Even though it intend to get the free space in swap.
Graph shouldn't be formed with free space right..? Graph should be in up stream not down stream.
Correct me if i am wrong.
Rgds
Srini
Re: Wrong data - SWAP - Performance graph
Posted: Mon Jun 27, 2016 9:32 am
by tgriep
The graph is showing the correct information, the amount of free swap on that system.
The check_swap plugin's performance data output is returning the free space in the swap. That output is used for the performance graph which has the correct output.
I don't understand what you mean by "Graph should be in up stream not down stream.", can you provide more information about this?
Re: Wrong data - SWAP - Performance graph
Posted: Mon Jun 27, 2016 9:47 am
by sify_nagios
Hi,
Even though plugin retrieves the free space, graph should be plotted by used space right? We can get the used space out of free and total and plot the graphs right ?
Then only we can identify by which time swap value get utilized and also to understand the swap usage growth.
Current graph gives an impression like full graph gets utilized unlike the reality.
If i have submitted this to customer, he would have asked "Is my server utilizing full SWAP memory?"
How can i handle the issue?
I hope i am clear to you now and also conveyed my issue to you clearly.
Rgds
Srini
Re: Wrong data - SWAP - Performance graph
Posted: Mon Jun 27, 2016 10:11 am
by tgriep
No, the graph is showing free space which is the correct output for that plugin.
If you want to plot used swap space, you will have to select another plugin from the link I provided earlier.
Re: Wrong data - SWAP - Performance graph
Posted: Tue Jun 28, 2016 12:16 am
by sify_nagios
tgriep wrote:No, the graph is showing free space which is the correct output for that plugin.
If you want to plot used swap space, you will have to select another plugin from the link I provided earlier.
I do have 1000+ linux server monitoring. Its additional work for me add new script and configure in GUI.
This plugin is not a one which i have added from outside.
Its comes in default wizard of nagios xi(linux wizard).
We are not following plotting free value in graphs in other parameters(memory, disk etc..)
Why SWAP alone? Don't you think Isn't odd ?
Rgds
Srini.
Re: Wrong data - SWAP - Performance graph
Posted: Tue Jun 28, 2016 9:36 am
by tgriep
You could edit the check_swap command. replacing the plugin with one that you need, making sure the command line options are compatible and that would change all of the checks at once.
The only downside is that the graphs may have to be deleted so they will get recreated as the data / labels will not match.