Hello Team,
I am facing a very strange issue. We have configured IP SLA service monitoring on many network devices. For just one device, graph is not getting generated for this particular service. We are monitoring other parameters as well on this device, graph is getting generated for them all. Only IP SLA service is not showing graph only for this device.
I tried to reconfigure the service just to check if it works, but it didnt help.
Device name: SA-RUH-NAKHEEL-CoreSW1
IP: 10.18.118.2
[root@vmaz-nagiosxi perfdata]# ls -lrt SA-RUH-NAKHEEL-CoreSW1
total 7164
-rw-rw-r-- 1 nagios nagios 2982 Sep 8 13:38 Port_254_Bandwidth.xml
-rw-rw-r--. 1 nagios nagios 768224 Sep 8 13:38 Port_254_Bandwidth.rrd
-rw-rw-r-- 1 nagios nagios 4212 Dec 21 11:38 Ping.xml
-rw-rw-r--. 1 nagios nagios 1534768 Dec 21 11:38 Ping.rrd
-rw-rw-r-- 1 nagios nagios 2282 Jan 20 20:22 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 1151496 Jan 20 20:22 IP_SLA_performance.rrd
-rw-rw-r-- 1 nagios nagios 4096 Jan 20 20:27 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 Jan 20 20:27 _HOST_.rrd
-rw-rw-r-- 1 nagios nagios 4039 Jan 20 20:28 Memory_usage_for_switches.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 20 20:28 Memory_usage_for_switches.rrd
-rw-rw-r-- 1 nagios nagios 3617 Jan 20 20:29 SNMP_CPU_Load.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 20 20:29 SNMP_CPU_Load.rrd
[root@vmaz-nagiosxi perfdata]#
Could you please help us on this issue?
Thanks in advance!!
graph data not getting generated
-
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: graph data not getting generated
Hello Team,
Can someone please help me on this?
Can someone please help me on this?
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: graph data not getting generated
Hi kalyanpabolu,
Does that script return performance data?
Go to the service > Advance (see sample picture below): You can also check the log below and see if there is any error or timeout issue for this service:
You can try remove (rename) these two file and wait about 30 minutes then check again.
Regards,
Vinh
Does that script return performance data?
Go to the service > Advance (see sample picture below): You can also check the log below and see if there is any error or timeout issue for this service:
Code: Select all
/usr/local/nagios/var/perfdata.log
Code: Select all
-rw-rw-r-- 1 nagios nagios 2282 Jan 20 20:22 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 1151496 Jan 20 20:22 IP_SLA_performance.rrd
Vinh
You do not have the required permissions to view the files attached to this post.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: graph data not getting generated
Please also note that if you decide to remove those two files below, you will loose all you old history:
-rw-rw-r-- 1 nagios nagios 2282 Jan 20 20:22 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 1151496 Jan 20 20:22 IP_SLA_performance.rrd
Maybe renaming them to something else might be better.
Regards,
Vinh
-rw-rw-r-- 1 nagios nagios 2282 Jan 20 20:22 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 1151496 Jan 20 20:22 IP_SLA_performance.rrd
Maybe renaming them to something else might be better.
Regards,
Vinh
-
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: graph data not getting generated
Hello,
Thanks for your help!!
The issue got resolved after we renamed the IP SLA files.
[root@vmaz-nagiosxi SA-RUH-NAKHEEL-CoreSW1]# ls -rlt
total 7544
-rw-rw-r-- 1 nagios nagios 2982 Sep 8 13:38 Port_254_Bandwidth.xml
-rw-rw-r--. 1 nagios nagios 768224 Sep 8 13:38 Port_254_Bandwidth.rrd
-rw-rw-r-- 1 nagios nagios 4212 Dec 21 11:38 Ping.xml
-rw-rw-r--. 1 nagios nagios 1534768 Dec 21 11:38 Ping.rrd
-rw-rw-r-- 1 nagios nagios 2279 Jan 24 09:55 IP_SLA_performance.xml_bkp
-rw-rw-r-- 1 nagios nagios 1151496 Jan 24 09:55 IP_SLA_performance.rrd_bkp
-rw-rw-r-- 1 nagios nagios 3617 Jan 24 14:19 SNMP_CPU_Load.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 24 14:19 SNMP_CPU_Load.rrd
-rw-rw-r-- 1 nagios nagios 4039 Jan 24 14:19 Memory_usage_for_switches.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 24 14:19 Memory_usage_for_switches.rrd
-rw-rw-r-- 1 nagios nagios 2165 Jan 24 14:20 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 384952 Jan 24 14:20 IP_SLA_performance.rrd
-rw-rw-r-- 1 nagios nagios 4096 Jan 24 14:20 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 Jan 24 14:20 _HOST_.rrd
[root@vmaz-nagiosxi SA-RUH-NAKHEEL-CoreSW1]#
I could not understand the reason of issue. Could you please explain what exactly caused this issue?
Thanks for your help!!
The issue got resolved after we renamed the IP SLA files.
[root@vmaz-nagiosxi SA-RUH-NAKHEEL-CoreSW1]# ls -rlt
total 7544
-rw-rw-r-- 1 nagios nagios 2982 Sep 8 13:38 Port_254_Bandwidth.xml
-rw-rw-r--. 1 nagios nagios 768224 Sep 8 13:38 Port_254_Bandwidth.rrd
-rw-rw-r-- 1 nagios nagios 4212 Dec 21 11:38 Ping.xml
-rw-rw-r--. 1 nagios nagios 1534768 Dec 21 11:38 Ping.rrd
-rw-rw-r-- 1 nagios nagios 2279 Jan 24 09:55 IP_SLA_performance.xml_bkp
-rw-rw-r-- 1 nagios nagios 1151496 Jan 24 09:55 IP_SLA_performance.rrd_bkp
-rw-rw-r-- 1 nagios nagios 3617 Jan 24 14:19 SNMP_CPU_Load.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 24 14:19 SNMP_CPU_Load.rrd
-rw-rw-r-- 1 nagios nagios 4039 Jan 24 14:19 Memory_usage_for_switches.xml
-rw-rw-r--. 1 nagios nagios 1151496 Jan 24 14:19 Memory_usage_for_switches.rrd
-rw-rw-r-- 1 nagios nagios 2165 Jan 24 14:20 IP_SLA_performance.xml
-rw-rw-r-- 1 nagios nagios 384952 Jan 24 14:20 IP_SLA_performance.rrd
-rw-rw-r-- 1 nagios nagios 4096 Jan 24 14:20 _HOST_.xml
-rw-rw-r--. 1 nagios nagios 1534768 Jan 24 14:20 _HOST_.rrd
[root@vmaz-nagiosxi SA-RUH-NAKHEEL-CoreSW1]#
I could not understand the reason of issue. Could you please explain what exactly caused this issue?
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: graph data not getting generated
Please attach these files:
Usually it's because you either changed the check command or the number of metrics changed and the way RRDs work is they require the same number of metrics from creation when inserting data, otherwise if there is extra (or not enough) metrics the data will fail to insert.
Code: Select all
IP_SLA_performance.xml_bkp
IP_SLA_performance.rrd_bkp
-
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: graph data not getting generated
Hello,
PFA the requested file.
PFA the requested file.
You do not have the required permissions to view the files attached to this post.
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: graph data not getting generated
From the XML file:
So the rrd file expects three data sources but something with the check changed and now it's only trying to insert one metric (where before it was three) which the rrd will not allow.
Code: Select all
<RRD>
<RC>1</RC>
<TXT>/usr/local/nagios/share/perfdata/SA-RUH-NAKHEEL-CoreSW1/IP_SLA_performance.rrd: expected 3 data source readings (got 1) from 1611467671</TXT>
</RRD>