check_mem.pl returns incorrect output for few servers

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Khush
Posts: 5
Joined: Tue Apr 17, 2012 7:08 am

check_mem.pl returns incorrect output for few servers

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_mem.pl returns incorrect output for few servers

Post 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 :)
Khush
Posts: 5
Joined: Tue Apr 17, 2012 7:08 am

Re: check_mem.pl returns incorrect output for few servers

Post 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 :-)
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_mem.pl returns incorrect output for few servers

Post 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.
Locked