PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

Good morning at all,

I was following the guide below to install PNP4Nagios on my XI machine to have the possibility to use Grafana for graph creation.
This was working very well on my test system. On my production system I'm receiving the following error when I try to access pnp4nagios:
Undefined index: DISP_HOSTNAME
file [line]:
application/controllers/graph.php [91]:
The installation tests of pnp4nagios were successfull. The main difference between my test and the prod system is that the prod XI instance was moved from a CentOS 6 system to a CentOS 7 system with the backup/restore mechanism. The test system is a new installation with CentOS 7.

Guide I followed for installation: https://support.nagios.com/kb/article/n ... a-805.html
Grafana is installed on an other machine.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by ssax »

Please send whichever file you have:

Code: Select all

/etc/httpd/conf.d/pnp4nagios.conf
/etc/apache2/sites-enabled/pnp4nagios.conf
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

/etc/httpd/conf.d/pnp4nagios.conf

Code: Select all

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER

Alias /pnp4nagios "/usr/local/pnp4nagios/share"

<Directory "/usr/local/pnp4nagios/share">
        AllowOverride None
        Order allow,deny
        Allow from all
        #
        # Use the same value as defined in nagios.conf
        #
        AuthName "Nagios Access"
        AuthType Basic
        AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
        Require valid-user
        <IfModule mod_rewrite.c>
                # Turn on URL rewriting
                RewriteEngine On
                Options symLinksIfOwnerMatch
                # Installation directory
                RewriteBase /pnp4nagios/
                # Protect application and system files from being viewed
                RewriteRule "^(?:application|modules|system)/" - [F]
                # Allow any files or directories that exist to be displayed directly
                RewriteCond "%{REQUEST_FILENAME}" !-f
                RewriteCond "%{REQUEST_FILENAME}" !-d
                # Rewrite all other URLs to index.php/URL
                RewriteRule "^.*$" "index.php/$0" [PT]
        </IfModule>
</Directory>
I had to modify the AuthUserFile from the "nagios" to the "nagiosxi" path.

Image
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by ssax »

Generally an undefined index is a warning (notice) and can safely be ignored, please attach your /etc/php.ini.

You can also try editing your /etc/php.ini and change your values to this:

Code: Select all

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
display_errors = Off
Then restart apache:

Code: Select all

service httpd restart
Then validate if it's still showing issues.
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

Here is my php.ini (Comments an empty lines removed)

Code: Select all

[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 60
max_input_time = 120
max_input_vars = 5000
memory_limit = 256M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 21M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 20M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
date.timezone = Europe/Berlin
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]

A part from the E_NOTICE directive the settings were fitting with my php.ini . Unfortunatelly adding the ~E_NOTICE didn't change anything. It also doesn't seem to me like a php error because there is nothing logged to the Apache ssl_error_log.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cdienger »

Are you using the same browser to access both the test and production machine? I found this old post that suggests this can be a browser specific issue: https://support.nagios.com/forum/viewto ... 18&t=11311
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

Yes... I tried Internet Explorer and Firefox. Same issue.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cdienger »

The pnp4nagios.conf didn't get modified the way we would expect if the KB was followed. Try replacing the current one with:

Code: Select all

Alias /pnp4nagios "/usr/local/pnp4nagios/share"

<Directory "/usr/local/pnp4nagios/share">
        AllowOverride None
        Order allow,deny
        #Allow from all
        Allow from 127.0.0.1 ::1
        #
        # Use the same value as defined in nagios.conf
        #
        AuthName "Nagios Access"
        #AuthType Basic
        #AuthUserFile /usr/local/nagios/etc/htpasswd.users
        #Require valid-user
        <IfModule mod_rewrite.c>
                # Turn on URL rewriting
                RewriteEngine On
                Options symLinksIfOwnerMatch
                # Installation directory
                RewriteBase /pnp4nagios/
                # Protect application and system files from being viewed
                RewriteRule "^(?:application|modules|system)/" - [F]
                # Allow any files or directories that exist to be displayed directly
                RewriteCond "%{REQUEST_FILENAME}" !-f
                RewriteCond "%{REQUEST_FILENAME}" !-d
                # Rewrite all other URLs to index.php/URL
                RewriteRule "^.*$" "index.php/$0" [PT]
        </IfModule>
</Directory>
and restart the httpd service.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

The apache coniguration isn't the issue. The change on this Apache configuration you described relies to a old Apache 2.2 configuration. The configuration fits to Apache 2.4 (Require all granted).

I found out by testing that the problem is within the performance data. I copied a host folder from the /usr/local/nagios/share/perfdata folder from my test system to my production system. This copied host can be displayed in PNP4Nagios. So the PNP4Nagios installation is working well.

I just checked the structure of the performance data. The rrdfiles seems all to be of version 3. I found diferences in the XML files.

Not working XML from Prod System:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <IS_MULTI>0</IS_MULTI>
    <DS>1</DS>
    <NAME>rta</NAME>
    <UNIT>ms</UNIT>
    <ACT>0.020</ACT>
    <WARN>3000.000</WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT>5000.000</CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN>0</MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <IS_MULTI>0</IS_MULTI>
    <DS>2</DS>
    <NAME>pl</NAME>
    <UNIT>%%</UNIT>
    <ACT>0</ACT>
    <WARN>80</WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT>100</CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <IS_MULTI>0</IS_MULTI>
    <DS>3</DS>
    <NAME>rtmax</NAME>
    <UNIT>ms</UNIT>
    <ACT>0.044</ACT>
    <WARN></WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT></CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <IS_MULTI>0</IS_MULTI>
    <DS>4</DS>
    <NAME>rtmin</NAME>
    <UNIT>ms</UNIT>
    <ACT>0.013</ACT>
    <WARN></WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT></CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <RRD>
    <RC>0</RC>
    <TXT>just created</TXT>
  </RRD>
  <NAGIOS_CHECK_COMMAND>check-host-alive!!!!!!!!</NAGIOS_CHECK_COMMAND>
  <NAGIOS_DATATYPE>HOSTPERFDATA</NAGIOS_DATATYPE>
  <NAGIOS_DISP_HOSTNAME>perfDataTest</NAGIOS_DISP_HOSTNAME>
  <NAGIOS_DISP_SERVICEDESC>Host Perfdata</NAGIOS_DISP_SERVICEDESC>
  <NAGIOS_HOSTCHECKCOMMAND>check-host-alive!!!!!!!!</NAGIOS_HOSTCHECKCOMMAND>
  <NAGIOS_HOSTNAME>perfDataTest</NAGIOS_HOSTNAME>
  <NAGIOS_HOSTOUTPUT>OK - 127.0.0.1: rta 0.020ms, lost 0%</NAGIOS_HOSTOUTPUT>
  <NAGIOS_HOSTPERFDATA>rta=0.020ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.044ms;;;; rtmin=0.013ms;;;;</NAGIOS_HOSTPERFDATA>
  <NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
  <NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
  <NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
  <NAGIOS_PERFDATA>rta=0.020ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.044ms;;;; rtmin=0.013ms;;;; </NAGIOS_PERFDATA>
  <NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</NAGIOS_RRDFILE>
  <NAGIOS_SERVICEDESC>_HOST_</NAGIOS_SERVICEDESC>
  <NAGIOS_TIMET>1564133716</NAGIOS_TIMET>
  <NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.xml</NAGIOS_XMLFILE>
</NAGIOS>
Working XML from the QA system:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</RRDFILE>
    <RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
    <RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
    <IS_MULTI>0</IS_MULTI>
    <DS>1</DS>
    <NAME>rta</NAME>
    <LABEL>rta</LABEL>
    <UNIT>ms</UNIT>
    <ACT>0.046</ACT>
    <WARN>3000.000</WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT>5000.000</CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN>0</MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</RRDFILE>
    <RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
    <RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
    <IS_MULTI>0</IS_MULTI>
    <DS>2</DS>
    <NAME>pl</NAME>
    <LABEL>pl</LABEL>
    <UNIT>%%</UNIT>
    <ACT>0</ACT>
    <WARN>80</WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT>100</CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</RRDFILE>
    <RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
    <RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
    <IS_MULTI>0</IS_MULTI>
    <DS>3</DS>
    <NAME>rtmax</NAME>
    <LABEL>rtmax</LABEL>
    <UNIT>ms</UNIT>
    <ACT>0.111</ACT>
    <WARN></WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT></CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <DATASOURCE>
    <TEMPLATE>check-host-alive</TEMPLATE>
    <RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</RRDFILE>
    <RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
    <RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
    <IS_MULTI>0</IS_MULTI>
    <DS>4</DS>
    <NAME>rtmin</NAME>
    <LABEL>rtmin</LABEL>
    <UNIT>ms</UNIT>
    <ACT>0.029</ACT>
    <WARN></WARN>
    <WARN_MIN></WARN_MIN>
    <WARN_MAX></WARN_MAX>
    <WARN_RANGE_TYPE></WARN_RANGE_TYPE>
    <CRIT></CRIT>
    <CRIT_MIN></CRIT_MIN>
    <CRIT_MAX></CRIT_MAX>
    <CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
    <MIN></MIN>
    <MAX></MAX>
  </DATASOURCE>
  <RRD>
    <RC>0</RC>
    <TXT>just created</TXT>
  </RRD>
  <NAGIOS_AUTH_HOSTNAME>perfDataTest</NAGIOS_AUTH_HOSTNAME>
  <NAGIOS_AUTH_SERVICEDESC>Host Perfdata</NAGIOS_AUTH_SERVICEDESC>
  <NAGIOS_CHECK_COMMAND>check-host-alive!!!!!!!!</NAGIOS_CHECK_COMMAND>
  <NAGIOS_DATATYPE>HOSTPERFDATA</NAGIOS_DATATYPE>
  <NAGIOS_DISP_HOSTNAME>perfDataTest</NAGIOS_DISP_HOSTNAME>
  <NAGIOS_DISP_SERVICEDESC>Host Perfdata</NAGIOS_DISP_SERVICEDESC>
  <NAGIOS_HOSTCHECKCOMMAND>check-host-alive!!!!!!!!</NAGIOS_HOSTCHECKCOMMAND>
  <NAGIOS_HOSTNAME>perfDataTest</NAGIOS_HOSTNAME>
  <NAGIOS_HOSTOUTPUT>OK - 127.0.0.1: rta 0.046ms, lost 0%</NAGIOS_HOSTOUTPUT>
  <NAGIOS_HOSTPERFDATA>rta=0.046ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.111ms;;;; rtmin=0.029ms;;;;</NAGIOS_HOSTPERFDATA>
  <NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
  <NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
  <NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
  <NAGIOS_PERFDATA>rta=0.046ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.111ms;;;; rtmin=0.029ms;;;; </NAGIOS_PERFDATA>
  <NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.rrd</NAGIOS_RRDFILE>
  <NAGIOS_SERVICEDESC>_HOST_</NAGIOS_SERVICEDESC>
  <NAGIOS_TIMET>1564133845</NAGIOS_TIMET>
  <NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/perfDataTest/_HOST_.xml</NAGIOS_XMLFILE>
  <XML>
   <VERSION>4</VERSION>
  </XML>
</NAGIOS>

For example the <DATASORUCE> tags are including the childs <RRDFILE> <RRD_STROAGE_TYPE> and <RRD_HEARTBEAT> which are missing in the not working XML.
Notable is also the <XML><VERSION>4</VERSION></XML> at the end of the working host.

Could it be that on my old production system the perfdata are genereated with an older meta data version? Can I migrate them in any way?
Also new created hosts are not working on the prod systen.

Just to clarify:
Prod and Test are running the same version (5.6.2)
Prod and Test are both running on the downloaded appliance with CentOS7
Only the prod where restored from a CentOS6 backup
Performance data within Nagios XI are working well in Prod an Test
cmueller
Posts: 14
Joined: Sun Mar 04, 2018 11:07 am

Re: PNP4Nagios not working [Undefined index: DISP_HOSTNAME]

Post by cmueller »

One further reply. Just found the reason for this diference in the XML files.

My production environment is holding a much older version of the process_perfdata.pl within the /usr/local/nagios/libexec folder.

I expect if I replace this with the newer version from the QA instance all new performance data is written in the new way. But what happen with my old performance data. Will this also be updated?
Locked