-
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
XML getting to large for pnp4nagios add garbage ^@^@ to XML file #46
Comments
Hello,
It would decrease also nagios/icinga load has no performance data will have to be processed anymore for that plugin. Also, no more hundreds of performance data showed in nagios/icinga gui (which is useless). |
Hi, I am using Naemon which uses mod-gearman to distribute checks. So, pnp4nagios fetches the perfdata from gearmand queue. As described here: https://labs.consol.de/nagios/mod-gearman/index.html I guess it's more likely this is a pnp4nagios issue or possibly Naemon/mod-gearman. However, if perfdata was less, it would perhaps not be triggered. Regards, Bjorn |
"max xml file for such a check is 112K" does not mean you have defined a max of that, right? In interfacetable_v3t. |
As far as I remember I didn't specify any file size limit in interfacetable_v3t |
Hi,
I have a problem with pnp4nagios getting issues because XML gets corrupted with "^@^@" in the xml file. I think it's related to the size of the xml. There is one rrd and one xml file per switch interface. Problem is that the xml file for one interface contains the <NAGIOS_PERFDATA> for all interfaces. Then also <NAGIOS_SERVICEPERFDATA> contains all interfaces, so the XML file exceeds 128KB.
Error from pnp4nagios:
XML file "/opt/nagios/pnp4nagios/var/perfdata/sesssw101-vc/If_xe-0_0_23.xml" not parsable.
XML Errors:
Char 0x0 out of allowed range
Premature end of data in tag NAGIOS_CHECK_COMMAND line 163
Premature end of data in tag NAGIOS line 2
At least it seems related to size. Don't see this problem for anything else.
If I change in the XML file:
<NAGIOS_CHECK_COMMAND>check_junos_ex_interface^@^@</NAGIOS_CHECK_COMMAND>
To:
<NAGIOS_CHECK_COMMAND>check_junos_ex_interface</NAGIOS_CHECK_COMMAND>
It works. Meaning removing "^@^@". I guess the addition of the "^@^@" is not interfacetable's error but a side effect of xml getting so large.
Anything that can be done on interfacetable side of things to address this?
The text was updated successfully, but these errors were encountered: