NRPE: Command 'check_mem' not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: NRPE: Command 'check_mem' not defined

Post 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.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Command 'check_mem' not defined

Post 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.

Code: Select all

/usr/bin/vmstat -vh
Can you login to the AIX server and run it and post the full output here?
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: NRPE: Command 'check_mem' not defined

Post 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 >
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Command 'check_mem' not defined

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: NRPE: Command 'check_mem' not defined

Post by RIDS_I2MP »

Hello,

PFA the plugin from the server.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Command 'check_mem' not defined

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: NRPE: Command 'check_mem' not defined

Post by RIDS_I2MP »

Hello,

Thanks for checking that.
Let me know if you have any update on it.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Command 'check_mem' not defined

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked