Page 1 of 1

Switched from SNMP to NCPA, mem and swap graph missing

Posted: Thu Apr 23, 2020 8:30 am
by TBT
We recently switched a few hosts using SNMP over to NCPA for monitoring. Both performance graphs for Memory Usage and Swap Usage are empty stating "No data to display". The other associated performance graphs such as CPU, Disk, etc are working.
perf1.png
If you change the Time Range, going back prior to the switch, the data is present.
perf2.png
Also, viewing the Service Status, all the Status Information is present.
perf3.png
Please advise.

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Thu Apr 23, 2020 3:18 pm
by cdienger
It's likely the format of the data used to graph changed. Move the rrd and xml files for these services(/usr/local/nagios/share/perfdata/<host>/<service_description>.[rrd|xml]), wait 15 minutes or so(depends on the check interval), and new files should be created with data visible in a graph.

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Fri Apr 24, 2020 8:49 am
by TBT
Move them where?

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Fri Apr 24, 2020 12:34 pm
by ssax
Just rename them (or delete them) and they will be automatically rebuilt on the next check (then wait 15 minutes). This occurs if you change the check command on an existing service that initially contained a different number/type of metrics. Did you do that?

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Fri Apr 24, 2020 1:49 pm
by TBT
Removing the *.rrd and *.xml files in question resolved this issue. Thank you.

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Fri Apr 24, 2020 2:19 pm
by ssax
Are we okay to lock this up and mark it as resolved?

Re: Switched from SNMP to NCPA, mem and swap graph missing

Posted: Mon Apr 27, 2020 7:57 am
by TBT
Yes.