Page 2 of 2
Re: NRPE: Command 'check_mem' not defined
Posted: Thu Jun 27, 2019 12:04 am
by RIDS_I2MP
Hello,
We dont have root access to the server, I ran the command as nagios user and got below output":
PRODUCTION> nagios@eu1pdwu094: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_mem.pl -f -w 20 -c 10
Memory CRITICAL - 0.0% (0 kB) free
PRODUCTION> nagios@eu1pdwu094: /usr/local/nagios/libexec >
PRODUCTION> nagios@eu1pdwu094: /usr/local/nagios/libexec > uname -a
AIX eu1pdwu094 1 7 00C5D92F4C00
We downloaded the plugin from below link:
https://github.com/justintime/nagios-plugins
Can we go for some other plugin if this plugin is not working here?
I just want to monitor physical memory usage on this server at the earliest, please suggest.
Re: NRPE: Command 'check_mem' not defined
Posted: Thu Jun 27, 2019 9:28 am
by tgriep
The copy of the plugin you are running, the following command is ran from the perl script to gather the data for the calculations.
Can you login to the AIX server and run it and post the full output here?
Re: NRPE: Command 'check_mem' not defined
Posted: Fri Jun 28, 2019 3:31 am
by RIDS_I2MP
Hello,
Below is the output (in home dir):
PRODUCTION> nagios@eu1pdwu094: /home/nagios > /usr/bin/vmstat -vh
12582912 memory pages
12120032 lruable pages
929674 free pages
3 memory pools
2676590 pinned pages
90.0 maxpin percentage
3.0 minperm percentage
90.0 maxperm percentage
28.9 numperm percentage
3510215 file pages
0.0 compressed percentage
0 compressed pages
28.9 numclient percentage
90.0 maxclient percentage
3510215 client pages
0 remote pageouts scheduled
16146221 pending disk I/Os blocked with no pbuf
0 paging space I/Os blocked with no psbuf
2228 filesystem I/Os blocked with no fsbuf
131 client filesystem I/Os blocked with no fsbuf
90030766 external pager filesystem I/Os blocked with no fsbuf
0 Virtualized Partition Memory Page Faults
0 Time resolving virtualized partition memory page faults
0 Number of 4k page frames loaned
0 Percentage of partition memory loaned
64.7 percentage of memory used for computational pages
PRODUCTION> nagios@eu1pdwu094: /home/nagios >
===============================================
Below is the output (in /usr/bin dir):
PRODUCTION> nagios@eu1pdwu094: /usr/bin > /usr/bin/vmstat -vh
12582912 memory pages
12120032 lruable pages
465425 free pages
3 memory pools
2677991 pinned pages
90.0 maxpin percentage
3.0 minperm percentage
90.0 maxperm percentage
32.1 numperm percentage
3896256 file pages
0.0 compressed percentage
0 compressed pages
32.1 numclient percentage
90.0 maxclient percentage
3896256 client pages
0 remote pageouts scheduled
16146221 pending disk I/Os blocked with no pbuf
0 paging space I/Os blocked with no psbuf
2228 filesystem I/Os blocked with no fsbuf
131 client filesystem I/Os blocked with no fsbuf
90030766 external pager filesystem I/Os blocked with no fsbuf
0 Virtualized Partition Memory Page Faults
0 Time resolving virtualized partition memory page faults
0 Number of 4k page frames loaned
0 Percentage of partition memory loaned
65.3 percentage of memory used for computational pages
PRODUCTION> nagios@eu1pdwu094: /usr/bin >
Re: NRPE: Command 'check_mem' not defined
Posted: Fri Jun 28, 2019 8:57 am
by tgriep
The output of the plugin on your AIX server for some reason does not match the plugin from that site. Can you get the plugin from the server and upload it here?
Code: Select all
/usr/local/nagios/libexec/check_mem.pl
Re: NRPE: Command 'check_mem' not defined
Posted: Mon Jul 01, 2019 2:49 am
by RIDS_I2MP
Hello,
PFA the plugin from the server.
Re: NRPE: Command 'check_mem' not defined
Posted: Mon Jul 01, 2019 8:10 am
by tgriep
The plugin that is posted looks like it was truncated and is missing most of the code.
I would re-download the plugin and verify that the whole plugin was downloaded and see if that works.
Re: NRPE: Command 'check_mem' not defined
Posted: Fri Jul 05, 2019 1:07 am
by RIDS_I2MP
Hello,
Thanks for checking that.
Let me know if you have any update on it.
Re: NRPE: Command 'check_mem' not defined
Posted: Mon Jul 08, 2019 8:47 am
by tgriep
What update are you waiting for?
What I posted earlier is that the plugin is missing most of the code and you will have to download the plugin again and re-install it on the server.