Wrong data - SWAP - Performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Wrong data - SWAP - Performance graph

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Wrong data - SWAP - Performance graph

Post 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.
Former Nagios Employee
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: Wrong data - SWAP - Performance graph

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong data - SWAP - Performance graph

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: Wrong data - SWAP - Performance graph

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong data - SWAP - Performance graph

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: Wrong data - SWAP - Performance graph

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong data - SWAP - Performance graph

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sify_nagios
Posts: 54
Joined: Thu Aug 20, 2015 8:01 am

Re: Wrong data - SWAP - Performance graph

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wrong data - SWAP - Performance graph

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked