Page 1 of 2

Swap Memory issue on Solaris Server

Posted: Tue Feb 06, 2018 9:20 am
by rtsupport
Hi,

we are monitoring Swap Memory on linux/solaris servers and its working fine for all except two Solaris server. we are using common services method using hostgroup (adding that group all common services added automatically) on these two servers all services are working fine but only on swap memory we are getting output as " UNKNOWN: Unknown output from '/usr/local/bin/top -n " ..


Steps done --

we have verified configuration with working Solaris server, all are same.
Add/remove server.
Tried with monitoring with swap memory services only.
Tried with adding server with Configuration wizard.

Notable point :

when we checked plugin which we are using to fetch the swap memory status, it is printing output from line No. 231 as UNKNOWN.... need your help over here...

--------------------
223 }
224 elsif( $method eq "top" && $cmdout =~ /^Memory: \d+[kMGT]? phys mem, \d+[kMGT]? free mem, (\d+)([kMGT]?) total swap, (\d+)([kMGT]?) free swap$/) {
225 ( $total_val, $total_uom, $available_val, $available_uom) =
226 ( $1, $2, $3, $4);
227 $total = valuom2bytes( $total_val, $total_uom);
228 $available = valuom2bytes( $available_val, $available_uom);
229 }
230 else {
231 print "UNKNOWN: Unknown output from '$cmd': '$cmdout'\n";
232 exit( $STATUS{ 'UNKNOWN'});
-------------------------

Details from server on which we are having swap memory issue.

OS == SunOS *** 5.10 Generic_150400-52 sun4u sparc SUNW,SPARC-Enterprise

nagios$ /usr/local/bin/top -n
load averages: 11.32, 13.96, 15.05 03:59:45
427 processes: 420 sleeping, 7 on cpu

Memory: 64G real, 26G free, 12G swap in use, 47G swap free

Error from Command --
nagios$ ./check_swap.pl -w 80 -c 70
UNKNOWN: Unknown output from '/usr/local/bin/top -n | /usr/bin/grep Memory': 'Memory: 64G real, 26G free, 12G swap in use, 47G swap free

Re: Swap Memory issue on Solaris Server

Posted: Tue Feb 06, 2018 11:43 am
by kyang
Hi @rtsupport,

I can't say for sure since this isn't our plugin. Best thing to do is to email the creator and see if he has run into this issue or has a fix.

The other option would be to use our check_swap plugin from our nagios-plugins package.

https://github.com/nagios-plugins/nagios-plugins

Re: Swap Memory issue on Solaris Server

Posted: Wed Feb 07, 2018 5:53 am
by rtsupport
@kyang,

Lets forget about plugin, if i am adding that server using configuration wizard then also facing same issue.

Re: Swap Memory issue on Solaris Server

Posted: Wed Feb 07, 2018 11:01 am
by kyang
What version of Nagios XI do you have?

What configuration wizard? Solaris wizard? NRPE wizard or Linux wizard?

Could you screenshot or show us any errors? Thanks!

Re: Swap Memory issue on Solaris Server

Posted: Wed Feb 07, 2018 11:53 am
by rtsupport
Nagios Version == Nagios XI 2014 R2.7
Configuration Wizard == Solaris Monitoring Wizard
Error == UNKNOWN: Unknown output from '/usr/local/bin/top -n

Re: Swap Memory issue on Solaris Server

Posted: Wed Feb 07, 2018 12:23 pm
by kyang
Thanks.

What version is the solaris config wizard on?

You can check by going to XI Home page --> Admin --> under System Extensions click "Manage Config Wizards" (This may or may not be different, I'm not a newer version of XI and do not have your version running beside me)

Scroll down until you see the Solaris Wizard. Right now we are on 1.2.5, so if you are not. Please scroll back up and check for updates and install them.

Although I'm on XI 5.4.12 --> the latest version.

Re: Swap Memory issue on Solaris Server

Posted: Thu Feb 08, 2018 5:37 am
by rtsupport
Currently we are on --
Solaris
Monitor a Solaris server.
Version: 1.2.2

But again, we are having issue with only two servers other servers are working fine. and on server end we have checked swap memory seems all are ok, ( Output has been pasted in earlier chat )

Re: Swap Memory issue on Solaris Server

Posted: Thu Feb 08, 2018 10:48 am
by kyang
Could you try updating your Solaris config wizard to our latest version? NOTE: (Make sure you have a back up just in case)

Either through the GUI or I'll have it attached in a zip as well.
solaris.zip
Here's our documentation on installing new config wizards.

https://assets.nagios.com/downloads/nag ... izards.pdf

Then rerun the wizard, and let us know the outcome and post any screenshots to help us.

Re: Swap Memory issue on Solaris Server

Posted: Fri Feb 09, 2018 6:32 am
by rtsupport
updated wizard but still same..

Please find attached screenshot for same.

Re: Swap Memory issue on Solaris Server

Posted: Fri Feb 09, 2018 11:12 am
by kyang
I'll have to try and replicate this myself.

Are you using Solaris 10 or 11?