Page 1 of 1

Error graph

Posted: Thu Nov 29, 2018 5:27 am
by bashar.abed
Hi,

We have nagios Xi 5.5.7 vm machine ,if i go to Graph Explorer to check the graph we have fake information as attached graph

the threshold Waring and critical line is not correct because the memory is ok and not critical


[[email protected] ~]$ /usr/local/nagios/libexec/check_snmp_mem.pl -H x.x.x.x -C jawwal-snmp --v2c -w 90%,90% -c 95%,95% -f
Ram : 19%, Swap : 0% : ; OK | ram_used=51379988;237459409;250651599;0;263843788 swap_used=54064;30412796;32102396;0;33791996

Thanks

Re: Error graph

Posted: Thu Nov 29, 2018 6:03 am
by bashar.abed
and how can put the line critical and warning about this graph

Performance Graphs

Re: Error graph

Posted: Thu Nov 29, 2018 6:05 pm
by npolovenko
Hello, @bashar.abed. What's the total amount of ram do you have on the SNMP storage device?
The second perfgraf generates threshold lines automatically and it only works for plugins with a simple logic, they need to only measure one particular perfdata data source. This plugin measures two data sources: ram and swap.

Re: Error graph

Posted: Fri Nov 30, 2018 2:27 am
by bashar.abed
Hi,

the first graph you notice the lines warning and critical is fake and please see the command the memory is ok

what is wrong

Re: Error graph

Posted: Fri Nov 30, 2018 5:05 pm
by npolovenko
@bashar.abed , I also had issues with this plugin and Nagios was showing incorrect threshold lines. Please try using the alternative plugin instead. Go to Configure -> Configuration Wizards and search for the "Linux SNMP" wizard. Follow the wizard to add a memory check, let it run for a few hours and then use it in the Graph Explorer instead of the old one. Let me know whether threshold lines display correctly.