Problem with custom_check_mem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Problem with custom_check_mem

Post by WillemDH »

hello,

I'm having issues monitoring memory on an OpenSuse (VMware Management Appliance) server that I need in order to use the box293_vmware_plugin.

it seems the % is not calculated resulting in a critcal result all of the time.

This is the command and result:

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nrpe -H vmaserver -t 120 -c check_mem -a '-w 10 -c 5 -nocache'
OUTPUT: CRITICAL - 3795 / 3962 MB (%) Free Memory, Used: 360 MB, Shared: 0 MB, Buffers: 37 MB, Cached: 193 MB | total=3962MB free=3795MB used=360MB shared=0 buffers=37MB cached=193MB
A bug?

Grtz

WIllem
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with custom_check_mem

Post by lmiltchev »

Most probably you are missing the "bc" package. Try running:

Code: Select all

zypper install bc
Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Problem with custom_check_mem

Post by WillemDH »

It worked Ludmill. Cheerz. Thread can be closed.
Nagios XI 5.8.1
https://outsideit.net
Locked