Page 2 of 2
Re: Script to find nmon for AIX
Posted: Mon Aug 24, 2015 2:13 pm
by jdalrymple
Lot's of options. As I mentioned, you're a good portion of the way there with your currently selected plugin. You'll just need to get NRPE compiled and installed on your platform:
This document assumes Linux, if you are an AIX admin though most of the concepts should make sense to you:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Once that's compiled and configured, the setup you currently have can be used to send the data back to the Nagios server.
Re: Script to find nmon for AIX
Posted: Mon Aug 24, 2015 2:20 pm
by raamardhani7
jdalrymple wrote:Lot's of options. As I mentioned, you're a good portion of the way there with your currently selected plugin. You'll just need to get NRPE compiled and installed on your platform:
This document assumes Linux, if you are an AIX admin though most of the concepts should make sense to you:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Once that's compiled and configured, the setup you currently have can be used to send the data back to the Nagios server.
Hi Jdalrymple,
I have installed the binaries and NRPE plugin is working fine. I wanted to have nmon monitored
Thanks again.
Re: Script to find nmon for AIX
Posted: Mon Aug 24, 2015 2:46 pm
by jdalrymple
raamardhani7 wrote:I have installed the binaries and NRPE plugin is working fine. I wanted to have nmon monitored
Perfect, and it seems your cron is working, so the only thing left is to add these commands to your nrpe.cfg. Something like the following at the bottom should work:
Code: Select all
command[check_nmon_cpu]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k CPU_ID -s User%,Sys%,Wait%,Idl
command[check_nmon_pages]/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k PAGE -s pgin,pgout,pgsin,pgsout
command[check_nmon_netio]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k NET,NETERROR -s en0-read-KB/s,en0-write-KB/s,en0-ierrs,en0-oerrs,en0-collisions
command[check_nmon_diskio]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k IOADAPT -s fcsx_read-KB/s,fcsx_write-KB/s,fcsx_xfer-tps
command[check_nmon_memory]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k MEM -s Real Free %,Virtual free %
Then appropriate services setup in nagios that run a command something like:
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_nmon_cpu
And the like
Make sense?
Re: Script to find nmon for AIX
Posted: Tue Aug 25, 2015 1:12 am
by raamardhani7
jdalrymple wrote:raamardhani7 wrote:I have installed the binaries and NRPE plugin is working fine. I wanted to have nmon monitored
Perfect, and it seems your cron is working, so the only thing left is to add these commands to your nrpe.cfg. Something like the following at the bottom should work:
Code: Select all
command[check_nmon_cpu]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k CPU_ID -s User%,Sys%,Wait%,Idl
command[check_nmon_pages]/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k PAGE -s pgin,pgout,pgsin,pgsout
command[check_nmon_netio]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k NET,NETERROR -s en0-read-KB/s,en0-write-KB/s,en0-ierrs,en0-oerrs,en0-collisions
command[check_nmon_diskio]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k IOADAPT -s fcsx_read-KB/s,fcsx_write-KB/s,fcsx_xfer-tps
command[check_nmon_memory]=/path/to/check_nmon -F /etc/perf/nmonserver_name.nmon -k MEM -s Real Free %,Virtual free %
Then appropriate services setup in nagios that run a command something like:
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_nmon_cpu
And the like
Make sense?
Thank you so much Jdalrymple.. You can close this thread now..
