Swap Memory issue on Solaris Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Swap Memory issue on Solaris Server

Post 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
You do not have the required permissions to view the files attached to this post.
kyang

Re: Swap Memory issue on Solaris Server

Post 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
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Swap Memory issue on Solaris Server

Post by rtsupport »

@kyang,

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

Re: Swap Memory issue on Solaris Server

Post 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!
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Swap Memory issue on Solaris Server

Post by rtsupport »

Nagios Version == Nagios XI 2014 R2.7
Configuration Wizard == Solaris Monitoring Wizard
Error == UNKNOWN: Unknown output from '/usr/local/bin/top -n
kyang

Re: Swap Memory issue on Solaris Server

Post 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.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Swap Memory issue on Solaris Server

Post 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 )
kyang

Re: Swap Memory issue on Solaris Server

Post 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.
You do not have the required permissions to view the files attached to this post.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: Swap Memory issue on Solaris Server

Post by rtsupport »

updated wizard but still same..

Please find attached screenshot for same.
You do not have the required permissions to view the files attached to this post.
kyang

Re: Swap Memory issue on Solaris Server

Post by kyang »

I'll have to try and replicate this myself.

Are you using Solaris 10 or 11?
Locked