AIX CPU Stats
- costanza2k1
- Posts: 197
- Joined: Fri Aug 09, 2013 12:19 pm
AIX CPU Stats
Do you guys know why I'm not getting performance graphs from AIX?
You do not have the required permissions to view the files attached to this post.
Re: AIX CPU Stats
Not really. Let's see the performance data being returned. Please go to the Service Details page, click the service, and go to the Advanced tab. Send a screenshot.
Former Nagios employee
- costanza2k1
- Posts: 197
- Joined: Fri Aug 09, 2013 12:19 pm
Re: AIX CPU Stats
That would certainly be why - it looks like you are getting no performance data!
Please run the following from the command line as root and post the results:
of course replacing "<remote AIX host IP>" with the actual IP.
Please run the following from the command line as root and post the results:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <remote AIX host IP> -t 30 -c check_aix_cpu -a '-w 80 -c 90'
Former Nagios employee
- costanza2k1
- Posts: 197
- Joined: Fri Aug 09, 2013 12:19 pm
Re: AIX CPU Stats
Code: Select all
[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H xx.xxx.xxx.xxx -t 30 -c check_aix_cpu -a '-w 80 -c 90'
WARNING - CPU usage at 82.25%Re: AIX CPU Stats
Can you provide a link to the plugin that is being run by check_aix_cpu on the remote machine? My guess is that plugin simply does not provide perfdata.
If it is this one:
http://exchange.nagios.org/directory/Pl ... ge/details
then this seems to be the case. It's a relatively short perl script though, and it might not be too hard to hack in the perfdata if you have a perl person on your team.
If it is this one:
http://exchange.nagios.org/directory/Pl ... ge/details
then this seems to be the case. It's a relatively short perl script though, and it might not be too hard to hack in the perfdata if you have a perl person on your team.
Former Nagios employee
- costanza2k1
- Posts: 197
- Joined: Fri Aug 09, 2013 12:19 pm
Re: AIX CPU Stats
That's the one...this can be closed...I'll have someone work with me...thanks!
Re: AIX CPU Stats
Actually, I happen to be a perl guy and this should be dead simple. Change this:
to this:
Code: Select all
if ($usage >= $crit) {
printf("CRITICAL - CPU usage at $usage%\n");
exit($STATUSCODE{"CRITICAL"});
}
elsif ($usage >= $warn) {
printf("WARNING - CPU usage at $usage%\n");
exit($STATUSCODE{"WARNING"});
}
elsif ($usage < $warn) {
printf("OK - CPU usage at $usage%\n");
exit($STATUSCODE{"OK"});
}
Code: Select all
if ($usage >= $crit) {
printf("CRITICAL - CPU usage at $usage%|cpu=$usage%\n");
exit($STATUSCODE{"CRITICAL"});
}
elsif ($usage >= $warn) {
printf("WARNING - CPU usage at $usage%|cpu=$usage%\n");
exit($STATUSCODE{"WARNING"});
}
elsif ($usage < $warn) {
printf("OK - CPU usage at $usage%|cpu=$usage%\n");
exit($STATUSCODE{"OK"});
}
Former Nagios employee