Page 1 of 2

memory performance graph

Posted: Tue Sep 29, 2015 5:42 am
by murawweh.daher
Hi everybody;

i checking the memory and the result in performance graph displayed in MB.
How can i display it in percentage instead of MB?

Re: memory performance graph

Posted: Tue Sep 29, 2015 9:31 am
by tgriep
Can you post which plugin you are running?
Depending on the plugin, if you add the percent to your warning and critical thresholds, that could change the performance output to percentage.

Re: memory performance graph

Posted: Wed Sep 30, 2015 3:22 am
by murawweh.daher
i use check_snmp_mem
$USER1$/check_snmp_mem.pl -H $HOSTADDRESS$ $ARG1$

what the best plugin used to check memory in percentage?

Re: memory performance graph

Posted: Wed Sep 30, 2015 9:23 am
by lgroschen
Think tom is correct- you can just get percentage output from passing the % symbol with the warning and critical:

Check this manual and since there different ways to send the command based on device, etc just find what you are looking for and test the command until it outputs how you would like.
http://nagios.manubulon.com/snmp_mem.html

Re: memory performance graph

Posted: Wed Sep 30, 2015 9:47 am
by jdalrymple
It depends on the platform you're monitoring. Honestly I don't know of any for Linux, but I do believe that check_nrpe for Windows (NSCP) offers perfdata in percentage:

[jdalrymple@localhost libexec]$ ./check_nrpe -H <winhost> -c checkmem -a MaxWarn=95% MaxCrit=98%
OK: committed: Total: 31.91GB - Used: 11.318GB (35%) - Free: 20.592GB (64%), physical: Total: 15.91GB - Used: 9.968GB (62%) - Free: 5.942GB (37%)|'committed'=11.31803GB;30.31476;31.27207;0;31.91028 'committed %'=35%;94;97;0;100 'physical'=9.96821GB;15.11476;15.59207;0;15.91028 'physical %'=62%;95;97;0;100

**edit**
lgroschen wrote:Think tom is correct- you can just get percentage output from passing the % symbol with the warning and critical:
I can't confirm this:

Code: Select all

[jdalrymple@localhost libexec]$ ./check_snmp_mem.pl -H 127.0.0.1 -C public -w 90%,90% -c 95%,95% -f
Argument "v6.0.1" isn't numeric in numeric lt (<) at ./check_snmp_mem.pl line 465.
Ram : 60%, Swap : 8% : ; OK | ram_used=598144;903089;953260;0;1003432 swap_used=175712;1887433;1992291;0;2097148

Re: memory performance graph

Posted: Wed Sep 30, 2015 12:00 pm
by murawweh.daher
i tested it before but still in graph the value in MB.

Re: memory performance graph

Posted: Wed Sep 30, 2015 1:41 pm
by tgriep
Can you go to that service check and click on the advanced tab and verify the performance data is now returning a percentage value?
If it is, you will need to delete the xml and rrd file for that service and the graph will start to populate for you.

Re: memory performance graph

Posted: Thu Oct 01, 2015 12:27 am
by murawweh.daher
i checked it and was in MB, i remove the xml and rrd files, and wait until rebuild it, but all of that was not work, still display it in MB.

Re: memory performance graph

Posted: Thu Oct 01, 2015 6:35 am
by jdalrymple
As I stated, it doesn't appear that the plugin you're using does what you want. It will either have to be customized or you will need to use a different plugin

We need to know what platform you're monitoring to be able to help further.
jdalrymple wrote:It depends on the platform you're monitoring. Honestly I don't know of any for Linux, but I do believe that check_nrpe for Windows (NSCP) offers perfdata in percentage:

[jdalrymple@localhost libexec]$ ./check_nrpe -H <winhost> -c checkmem -a MaxWarn=95% MaxCrit=98%
OK: committed: Total: 31.91GB - Used: 11.318GB (35%) - Free: 20.592GB (64%), physical: Total: 15.91GB - Used: 9.968GB (62%) - Free: 5.942GB (37%)|'committed'=11.31803GB;30.31476;31.27207;0;31.91028 'committed %'=35%;94;97;0;100 'physical'=9.96821GB;15.11476;15.59207;0;15.91028 'physical %'=62%;95;97;0;100
.

Re: memory performance graph

Posted: Thu Oct 01, 2015 6:40 am
by murawweh.daher
the OS windows 2008 Enterprise, HP 580G7