Page 1 of 1

check_mem.pl returns incorrect output for few servers

Posted: Thu Apr 19, 2012 7:13 am
by Khush
Hi Support team,

I am using the check_mem.pl plugin for solaris memory usage.below is the option used:-
./check_mem.pl -w 20 -c 10 -f -C
But for few servers it gives kstat error and when I eliminate the -C option and use ./check_mem.pl -w 20 -w 10 -f I get the output.

The issue is for few servers if i do prstat -t and calculate the memory usage and match it with my check_mem.pl output it is not matching and not even nearby. My check_mem.pl gives critical usage and where as the prstat shows just 18% memory used. Please help with how does this plugin calculates the memory usages and why it is not giving correct output for few of the servers.

Regards,
khush

Re: check_mem.pl returns incorrect output for few servers

Posted: Thu Apr 19, 2012 5:45 pm
by jsmurphy
I'm not very familiar with this particular plugin, it may be best to just shoot a quick email to the plugin author found on the nagios exchange page: http://exchange.nagios.org/directory/Pl ... pl/details they would probably be the best person to ask :)

Re: check_mem.pl returns incorrect output for few servers

Posted: Fri Apr 20, 2012 10:03 am
by Khush
Thank you for your reply. Please suggest any other method or plugin using which I can monitor Solaris memory usage and also need graphs :-)

Re: check_mem.pl returns incorrect output for few servers

Posted: Fri Apr 20, 2012 1:11 pm
by agriffin
I'm not sure what version of check_mem.pl you're using but the version from Nagios Exchange is old. If that's what you're using, give this version a try and see if that helps.