Issue with memory plugin on linux clients

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Issue with memory plugin on linux clients

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with memory plugin on linux clients

Post by lmiltchev »

Can you show the actual command ran from the CLI, and the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Issue with memory plugin on linux clients

Post by ravish78 »

$ /usr/local/nagios/libexec/check_memory -w 85 -c 90
Memory OK. 4% used.
$
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with memory plugin on linux clients

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Issue with memory plugin on linux clients

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with memory plugin on linux clients

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Issue with memory plugin on linux clients

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with memory plugin on linux clients

Post by slansing »

What are you currently using to check the CPU on your remote systems? Are you using the standard NRPE CPU check?
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Issue with memory plugin on linux clients

Post 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]
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with memory plugin on linux clients

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