Page 1 of 4
Nagios XI AIX RAM utilization
Posted: Thu Aug 07, 2014 5:52 am
by nagarjuna
Dear Team,
As we have configured AIX through nrpe plugin but we are not getting graphs in memory utilization, from check_aix_ram plugin.
Please suggest how we can get Memory utilization graphs from check_aix_ram and check_mem_pl.
Re: Nagios XI AIX RAM utilization
Posted: Thu Aug 07, 2014 10:08 am
by abrist
Could you post the two plugins in question?
Also, post the perfdata output for each check? (home --> service detail --> [click the service] --> Advanced tab --> performance data)
Re: Nagios XI AIX RAM utilization
Posted: Thu Aug 07, 2014 2:27 pm
by nagarjuna
SnapCrab_NoName_2014-8-8_0-48-16_No-00.png
Dear Team,
Please find the attached plugins with performance data screenshots.
from check_aix_ram plugin we are not getting graphs in AIX
also we are not getting graphs from check_mem.pl plugin in AIX
Note : but we are getting memory graphs in CentOS, Redhat, SuSE Linux system.
We need memory graphs in AIX from any plugin.
Re: Nagios XI AIX RAM utilization
Posted: Thu Aug 07, 2014 4:57 pm
by abrist
The plugin does not return any performance data.
Can you run the following on your AIX server and post the output:
Code: Select all
svmon | grep memory | awk '{print ($3/$2)*100}'
Re: Nagios XI AIX RAM utilization
Posted: Fri Aug 08, 2014 8:34 am
by nagarjuna
Dear Team,
Please check the attchment for svmon memory on AIX Server.
Re: Nagios XI AIX RAM utilization
Posted: Fri Aug 08, 2014 2:03 pm
by abrist
Alright. You should be able to alter the print statements at the bottom of the check_aix_ram script to include the value in the perfdata (| usage=$usage):
Code: Select all
if ($usage >= $crit) {
printf("CRITICAL - RAM usage at $usage% | usage=$usage\n");
exit($STATUSCODE{"CRITICAL"});
}
elsif ($usage >= $warn) {
printf("WARNING - RAM usage at $usage% | usage=$usage\n");
exit($STATUSCODE{"WARNING"});
}
elsif ($usage < $warn) {
printf("OK - RAM usage at $usage% | usage=$usage\n");
exit($STATUSCODE{"OK"});
}
else {
printf("UNKNOWN - unable to determin usage");
exit($STATUSCODE{"UNKNOWN"});
}
Re: Nagios XI AIX RAM utilization
Posted: Wed Aug 20, 2014 6:06 am
by nagarjuna
Dear Team,
We have configured VMWare host and guest with monitoring wizard. In that we are getting checks and respective result of that checks, but we are facing issues when guest system is migrating in another host, its sending alert "Host does not exist".
We need solution for if system migration happen from one host to another host in cluster, system should be able to monitor by NagiosXI.
We dont want to break graphs which is happening, when system is migrating.
Please help on this.
Re: Nagios XI AIX RAM utilization
Posted: Wed Aug 20, 2014 10:09 am
by slansing
Soooo..... was your memory question resolved? If you have a question on a completely different topic, you will want to open it in a new thread.
Re: Nagios XI AIX RAM utilization
Posted: Wed Aug 20, 2014 1:16 pm
by nagarjuna
Dear Team,
Vmware:
I am so sorry, it was happened by mistake.
For RAM utilization graphs, i need 1 more day, i just came today from bangalore. As you have suggested i need to check with that.
Tomorrow i will update you on the same. Thanks
Thank you very much.
Re: Nagios XI AIX RAM utilization
Posted: Thu Aug 21, 2014 2:40 pm
by nagarjuna
Dear Team,
As i have checked with additional system syntax which is suggested by you for check_aix_ram. I think i have done somewhere mistake that is the reason i am not getting proper checks. as i checked i am getting following error from plugin after adding additional syntax.
#./check_aix_ram 75 80
./check_aix_ram[12]: 0403-057 Syntax error at line 32 : `{' is not expected.
Please check the plugin file..check_aix_ram
+1 # !/bin/sh
+2 #
+3 # check aix ram usage
+4 #
+5 [ $# -ne 2 ] && echo "usage: $0 <warn> <crit>" && exit 3
+6
+7 WARN=$1
+8 CRIT=$2
+9
+10 RAMUSAGE=`svmon | grep memory | awk '{ print ($3/$2)*100 }'`
+11
+12 if [ ${RAMUSAGE} -ge ${WARN} ] && [ ${RAMUSAGE} -lt ${CRIT} ]; then
+13
+14 echo "WARN - RAM usage is at ${RAMUSAGE}%"
+15 exit 1;
+16
+17 elif [ ${RAMUSAGE} -ge ${CRIT} ]; then
+18
+19 echo "CRIT - RAM usage is at ${RAMUSAGE}%"
+20 exit 2;
+21
+22 elif [ ${RAMUSAGE} -lt ${WARN} ]; then
+23
+24 echo "OK - RAM usage is at ${RAMUSAGE}%"
+25 exit 0;
+26
+27 else
+28
+29 echo "UNKNOWN - RAM usage"
+30 exit 3;
+31 if ($usage >= $crit) {
+32
+33 printf("CRITICAL - RAM usage at $usage% | usage=$usage\n");
+34 exit($STATUSCODE{"CRITICAL"});
+35 }
+36
+37 elsif ($usage >= $warn) {
+37 elsif ($usage >= $warn) {
+38
+39 printf("WARNING - RAM usage at $usage% | usage=$usage\n");
+40 exit($STATUSCODE{"WARNING"});
+41 }
+42
+43 elsif ($usage < $warn) {
+44
+45 printf("OK - RAM usage at $usage% | usage=$usage\n");
+46 exit($STATUSCODE{"OK"});
+47 }
+48
+49 else {
+50 printf("UNKNOWN - unable to determin usage");
+51 exit($STATUSCODE{"UNKNOWN"});
+52 }
+53 fi
---------------------------------------------------------------------------------------
I think i made mistake in plugin please suggest....