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
Swap Memory issue on Solaris Server
Swap Memory issue on Solaris Server
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Swap Memory issue on Solaris Server
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
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
@kyang,
Lets forget about plugin, if i am adding that server using configuration wizard then also facing same issue.
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
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!
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
Nagios Version == Nagios XI 2014 R2.7
Configuration Wizard == Solaris Monitoring Wizard
Error == UNKNOWN: Unknown output from '/usr/local/bin/top -n
Configuration Wizard == Solaris Monitoring Wizard
Error == UNKNOWN: Unknown output from '/usr/local/bin/top -n
-
kyang
Re: Swap Memory issue on Solaris Server
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.
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
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 )
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
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.
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.
Either through the GUI or I'll have it attached in a zip as well.
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.
Re: Swap Memory issue on Solaris Server
updated wizard but still same..
Please find attached screenshot for 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
I'll have to try and replicate this myself.
Are you using Solaris 10 or 11?
Are you using Solaris 10 or 11?