russellvt / pnp4nagios

PNP is an addon to Nagios/Icinga which analyzes performance data provided by plugins and stores them automatically into RRD-databases.
https://docs.pnp4nagios.org
GNU General Public License v2.0
5 stars 3 forks source link

Fresh install fails "Undefined index: srv" #11

Open russellvt opened 1 year ago

russellvt commented 1 year ago

Aftter a fresh from-source install, pnp4nagios fails with a "Undefined index: srv" when accessing the top-level URL.

Note: the top-level URL redirects from /pnpnagios/ to /pnp4nagios/graph?host=**hostname** where hostname is the first host found in the /var/perfdata directory. The only data in that directory are the _HOST_.xml and _HOST_.rrd files.

Note: The host performance data may not be properly collecting, yet (but this error should be handled a bit better, anyway).

image

russellvt commented 1 year ago

This is from Issue #186 in lingej's original repo. I have tested this on my own fork.

Basically, looks like this happens where there is no service associated with a given host.