Page 1 of 2

Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 12:34 pm
by ravish78
Hi team

we are using check_memory plugin in Linux servers and we do not see graphs for the data.
The memory plugins for windows and unix (check_mem.pl) doesn't have any issues and graphs also working in those.

Can you please let us know what needs to be done to resolve this.we need graphs for the data in Linux servers.


Also we observed the data is visible only from 12:00am to 3:00am. while the checks are mentioned for 24*7.
Is this standard patter

11-02-2013 00:00:00 11-02-2013 00:47:14 0d 0h 47m 14s SERVICE OK (HARD) Memory OK. 4% used.
11-03-2013 00:00:00 11-03-2013 03:40:26 0d 4h 40m 26s SERVICE OK (HARD) Memory OK. 4% used.

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 1:01 pm
by lmiltchev
Can you show the actual command ran from the CLI, and the output of it?

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 1:12 pm
by ravish78
$ /usr/local/nagios/libexec/check_memory -w 85 -c 90
Memory OK. 4% used.
$

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 1:21 pm
by lmiltchev
Not all plugins return perfdata. I don't see a pipe and anything after it in the output, which indicates that this plugin doesn't return perfdata. Usually, you would see something like this:
WARNING - 87.5% (901380 kB) used!|TOTAL=1030684KB;;;; USED=901380KB;;;; FREE=129304KB;;;; CACHES=479552KB;;;;
Can you provide us with the download link to this plugin, so that we can test it?

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 1:46 pm
by ravish78
We are using the attached script.
Not sure from where we downloaded we are using since long time.
Please suggest if it is wrong. Also can you suggest any recommended plugin from nagios to make memory work along with graphs.

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 2:36 pm
by lmiltchev
This plugin doesn't return perfdata. There is a variety of pluings on the Nagios Exchange for monitoring memory on Linux servers, that do return perfdata. You will need to decide which one will fit your needs. Here's one - check_mem.sh (just an example) that you can probably use:

http://exchange.nagios.org/directory/Pl ... sh/details

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 5:27 pm
by ravish78
Yes this worked thank you very much for your help.

Also can you suggest a similar plugin for cpu checks in Linux which is compatible with graphs.

Re: Issue with memory plugin on linux clients

Posted: Mon Nov 04, 2013 5:47 pm
by slansing
What are you currently using to check the CPU on your remote systems? Are you using the standard NRPE CPU check?

Re: Issue with memory plugin on linux clients

Posted: Tue Nov 05, 2013 6:51 am
by ravish78
We are used the attached plugin to check the CPU utilization but getting error

$ ./check_cpu.sh -v
-ksh: ./check_cpu.sh: not found [No such file or directory]

Re: Issue with memory plugin on linux clients

Posted: Tue Nov 05, 2013 10:13 am
by slansing
I'd recommend using:

http://exchange.nagios.org/directory/Pl ... sh/details

You will also need to make sure the iostat package is installed on the linux system.