Page 1 of 1
negative report for memory usage monitoring
Posted: Thu Oct 08, 2020 12:53 pm
by rnjie
i noticed a negative value on one of my servers memory monitoring, am not sure why the value is negative, its the correct value but it has a negative sign see below
[
[email protected] ~]$ /usr/local/nagios/libexec/check_snmp_mem.pl -H DXDCLTP7 -C plut0 --v2c -w 85,85 -c 95,95 --perfdata
Ram : -58%, Swap : 49% : ; OK | ram_used=-9354748;13826321;15452947;0;16266260 swap_used=2069800;3565155;3984585;0;4194300
Re: negative report for memory usage monitoring
Posted: Fri Oct 09, 2020 9:55 am
by ssax
What version of the plugin are you running?
Code: Select all
/usr/local/nagios/libexec/check_snmp_mem.pl -V
What is the full output of this command?
Code: Select all
/usr/local/nagios/libexec/check_snmp_mem.pl -H DXDCLTP7 -C plut0 --v2c -w 85,85 -c 95,95 --perfdata -v
What type of system is DXDCLTP7? (what OS is it running/brand of device)
Re: negative report for memory usage monitoring
Posted: Fri Oct 09, 2020 10:52 am
by rnjie
dximonp1 ~]# /usr/local/nagios/libexec/check_snmp_mem.pl -V
check_snmp_mem version : 1.1
dximonp1 ~]# /usr/local/nagios/libexec/check_snmp_mem.pl -H DXDCLTP7 -C plut0 --v2c -w 85,85 -c 95,95 --perfdata -v
Alarm at 15
SNMP v2c login
Ram : 27768984 (27448112 cached) / 33043476 : -67
Swap : 3823100 / 4194300 : 9
Ram : -67%, Swap : 9% : ; OK | ram_used=-22173620;28086955;31391302;0;33043476 swap_used=371200;3565155;3984585;0;4194300
You have new mail in /var/spool/mail/root
the server is redhat7
Re: negative report for memory usage monitoring
Posted: Mon Oct 12, 2020 1:11 pm
by ssax
I'm seeing this on my system as well with check_snmp_mem.pl, does this one show properly?
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H DXDCLTP7 -C plut0 --v2c -m "Physical" -T pl -w 10 -c 5 -f -v
What about this one?
Code: Select all
/usr/local/nagios/libexec/check_snmp_mem.pl -H DXDCLTP7 -C plut0 --v2c -w 85,85 -c 95,95 --perfdata -v -m