Nagios XI AIX RAM utilization
Nagios XI AIX RAM utilization
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI AIX RAM utilization
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)
Also, post the perfdata output for each check? (home --> service detail --> [click the service] --> Advanced tab --> performance data)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios XI AIX RAM utilization
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI AIX RAM utilization
The plugin does not return any performance data.
Can you run the following on your AIX server and post the output:
Can you run the following on your AIX server and post the output:
Code: Select all
svmon | grep memory | awk '{print ($3/$2)*100}'Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios XI AIX RAM utilization
Dear Team,
Please check the attchment for svmon memory on AIX Server.
Please check the attchment for svmon memory on AIX Server.
You do not have the required permissions to view the files attached to this post.
Re: Nagios XI AIX RAM utilization
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"});
}Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios XI AIX RAM utilization
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI AIX RAM utilization
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
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.
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
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....
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....