-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined offset: 5 #27
Comments
Hello, |
I remember that the fix for pnp had been merged in march/avril 2015, so pnp 0.6.25 is not compatible with check_multi format generated by icinga2. You need to use a newer version including the fix. Go for 0.6.26 to be sure. |
Hello I have newer version 0.6.26 installed. -- If_eth0_If_eth0__check_interface_table_port__BitsIn.rrd The XML files are correct. Have several section But the files names are longer and problem with Are the filesnamen wrong? My Service Name is "Interface-Table" Check Command for Linux: Thx. |
the parameter --perfdataservicedesc should be used with --perfdatadir (see http://www.tontonitch.com/tiki/tiki-index.php?page=Nagios+plugins+-+interfacetable_v3t+-+documentation+-+0.05+-+Plugin+usage). And that's my recommendation to use these 2 parameters to directly write the performance data files in the PNP spool dir. Hereunder an example of service definition for icinga2. You can also put part of that in a "interface-table" service template and call that from a service definition.
Tel me if this fix your issue, or if you prefer to let icinga2 processing the perfdata. In that second case, you should not specify perfdataservicedesc. |
Thank you for your support. Now almost everything works. I tested with "--perfdataservicedesc and --perfdatadir" -- is OK It only miss a graph "Operations Status" for individual interfaces. Do you know which option is still missing? Thx. |
Nice to see that you've made it working on your environment 👍 The "Operations Status" graph is replaced by default by a status bar at the top of the "interface traffic" graph, for each interface (this is the green line at the top of the 1st graph you posted, green=up, red=down). It's to do an economy of 1 graph per interface. |
👍 |
Hello, I habe Problem. Perfdatafiles Check reports RRD ERRORS FOUND.
Errors come from check_interfacetable_v3t.
These are the files of long interface names.
What can I do? .. .. .../esx01/If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash.xml creating '/var/lib/pnp4nagios/perfdata/ esx01/If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash_If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash__check_interface_table_port__PpsOutDiscard.rrd': DER DATEINAME IST ZU LANG
.../esx01/If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash.xml creating '/var/lib/pnp4nagios/perfdata/ esx01/If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash_If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash__check_interface_table_port__PpsOutDiscard.rrd': DER DATEINAME IST ZU LANG
.../esx02/If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash.xml creating '/var/lib/pnp4nagios/perfdata/ esx02/If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash_If_Link_Aggregation_PatientenInternet_SurfLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash__check_interface_table_port__PpsOutDiscard.rrd': DER DATEINAME IST ZU LANG
.../esx02/If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash.xml creating '/var/lib/pnp4nagios/perfdata/ esx02/If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash_If_Link_Aggregation_PatientenInternet_OfficeLan_on_switch__vSwitch3._load_balancing_algorithm__source_port_id_hash__check_interface_table_port__PpsOutDiscard.rrd': DER DATEINAME IST ZU LANG .. .. Thx. Artur
Am 15-Feb-2018 14:22:11 +0100 schrieb notifications@github.com:
Closed #27.
…--
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
-------------------------------------------------------------------------------------------------
FreeMail powered by mail.de - MEHR SICHERHEIT, SERIOSITÄT UND KOMFORT
|
This is a new issue -> opened a new issue #50 |
I need your help.
My Performance Graph Module PNP in Icinga2 display Error :
"Undefined offset: 5, templates/check_interface_table_global.php (70)"
I have found that, not all RRD files are created and the XML files are not completely or wrong.
-- If_eth0_BitsIn.rrd
-- If_eth0_BitsOut.rrd
-- If_eth0_OperStatus.rrd
-- If_eth0.xml
-- If_lo_BitsIn.rrd
-- If_lo_BitsOut.rrd
-- If_lo_OperStatus.rrd
-- If_lo.xml
-- Interface_global_adminupfree.rrd
-- Interface_global_freeports.rrd
-- Interface_global_ports.rrd
-- Interface_global_uptime.rrd
-- Interface_global_useddelta.rrd
-- Interface_global_watched.rrd
-- Interface_global.xml
-- Interface-Table_time.rrd
-- Interface-Table.xml
Unfortunately, 2 "Interface" XML files are created, instead of just one. (Interface_global.xml and Interface-Table.xml)
Each This file has only 1 section.
The other RRDs entries are missing (freeports, ports, uptime, useddelta, watched)
Interface_global.xml - only Interface_global_adminupfree.rrd
<DATASOURCE> <TEMPLATE>check_interface_table_global</TEMPLATE> <RRDFILE>/var/lib/pnp4nagios/perfdata/Monitor/Interface_global_adminupfree.rrd</RRDFILE> <RRD_STORAGE_TYPE>MULTIPLE</RRD_STORAGE_TYPE>
Interface-Table.xml - only Interface-Table_time.rrd
<DATASOURCE> <TEMPLATE>check_interface_table_global</TEMPLATE> <RRDFILE>/var/lib/pnp4nagios/perfdata/Monitor/Interface-Table_time.rrd</RRDFILE> <RRD_STORAGE_TYPE>MULTIPLE</RRD_STORAGE_TYPE>
Even the if_eth0 … and if_lo … XML files have only one section (If_xxx_BitsOut…)
Also missing are other RRD files (If_xxx_Pkts…) are not available.
I'm working with Icinga2, PNP4Nagios 0.6.25, PNP Module
I’ve already installed check_interface_table_v3t.pl (0.05-1) several times.
I have not found a solution to my problem on the internet
Thx.
monitorjunkie
The text was updated successfully, but these errors were encountered: