Question regarding memory usage on Solaris servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Question regarding memory usage on Solaris servers

Post by Berto »

On the Solaris servers being monitored, memory usage shows stats for 'free', 'used', 'shared', and 'cache'. Is there a way to set alerts around the 'cache' value that is being collected? In other words, if I have a server showing 46GB of memory is being cached and I would like to get an alert when half that value is reached, is that possible?

--Berto
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Question regarding memory usage on Solaris servers

Post by mcapra »

Just so we're on the same page, what agent are you using to retrieve the system metrics for this machine? NRPE, SNMP, NCPA, etc.

Can you show me the command definition being leveraged to check the machine's available memory?
Former Nagios employee
https://www.mcapra.com/
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Question regarding memory usage on Solaris servers

Post by Berto »

The agent being used is NRPE and this server is using the xiwizard_nrpe_service template and looking at the common settings tab I see;

check_command: check_nrpe
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

I attached a screenshot of the tab inside Nagios XI.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Question regarding memory usage on Solaris servers

Post by ssax »

The plugin that it calls (custom_check_mem) doesn't support it and I was unable to find one specifically for Solaris, it should be fairly easy to add though, please run these commands on the Solaris server and send me the entire output:

Code: Select all

/usr/local/nagios/libexec/custom_check_mem -w 30 -c 10
free -m
free -m | head -1 | gawk '{print $6}'
free -m | head -2 | tail -1
free -m -w | head -2 | tail -1
Thank you
Locked