jdalrymple wrote:raamardhani7 wrote:./check_nmon -F /usr/local/nagios/libexec/check_nmon_disk.php -k DISKBUSY,DISKREAD,DISKWRITE,DISKXFER -s hdiskx
UNKNOWN - NMON file /usr/local/nagios/libexec/check_nmon_disk.php older than an hour. NMON is stopped!
This reads like you're running check_nmon from the Nagios server - this won't work.
You need to run the perl script nmond.pl on the AIX host. This will create the nmon spreadsheet file that you'll pass into the next script.
You then need to run check_nmon.pl using the -F argument to specify the file created in the prior step. This check_nmon.pl must be run
via NRPE on the AIX host.
To my knowledge, nmon has no daemon mode where you can magically extract statistics across the network - I may be wrong however.
Hi.. Thanks for your inputs..
I am running those commands on Remote server, not on Nagios server.
However I have changed the nmon_directory in that script. and ran the nmond.pl script.
==========================================================================================
Below is the output of nmon processes.
ps -ef | grep nmon | grep -v grep
root 9699376 1 0 00:01:05 - 0:01 /usr/bin/topas_nmon -fdt -s 300 -A -m /etc/perf/nmon -G -I 0.1 -K -P -M -V -^ -l 150 -w 4 -youtput_dir=/etc/perf/nmon/server_name -ystart_time=00:01:05,Aug24,2015
root 10748018 1 0 10:53:08 pts/0 0:00 /usr/bin/topas_nmon -F /etc/perf/nmonserver_name.nmon -t -S -P -V -s 60 -c 1500 -youtput_dir=/etc/perf/nmonserver_name.nmon -ystart_time=10:53:07,Aug24,2015
First pid is earlier one and the second pid is running after I executed the script. Is this going to make any difference, since 2 PID's running for nmon??
============================================================================
I have changed -F to the path where the nmon files are written and seems like the script is working.
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k CPU_ID -s User%,Sys%,Wait%,Idl
OK - All counters within specified thresholds
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k CPU_ID -s User%,Sys%,Wait%,Idl
OK - All counters within specified thresholds
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k PAGE -s pgin,pgout,pgsin,pgsout
OK - All counters within specified thresholds | PAGE[pgin]=0.0 PAGE[pgout]=0.9 PAGE[pgsin]=0.0 PAGE[pgsout]=0.0 root@server_name:/usr/local/nagios/libexec
# ./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
OK - All counters within specified thresholds
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k IOADAPT -s fcsx_read-KB/s,fcsx_write-KB/s,fcsx_xfer-tps
OK - All counters within specified thresholds
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k CPU_ID -s User%,Sys%,Wait%,Idl
OK - All counters within specified thresholds
# ./check_nmon -F /etc/perf/nmonserver_name.nmon -k MEM -s Real Free %,Virtual free %
OK - All counters within specified thresholds
Or Can you suggest any other script that I can use for nmon process? That would really help me.