James Cook
2018-10-16 12:49:26 UTC
After updating to PHP 7.2 on Centos 7 I discovered that pnp4nagios would no longer display network interface graphs for linux hosts. This issue appears to be caused by $WARN[1] and $CRIT[1] not being set so they are not numeric values. I added the code below to work around the problem to etc/pnp4nagios/templates/check_mk-lnx_if.php (just before the "# Convert bytes to bits if necessary" line).
if(!is_numeric($WARN[1])) {
$warn=0;
}
if(!is_numeric($CRIT[1])) {
$crit=0;
}
This is in check_mk raw 1.5.0p5 with pnp4nagios 0.6.26.
Hope this helps someone else.
--
James M. Cook
Systems Administrator
Information Technology Services
Plymouth State University
(603) 535-2858
***@plymouth.edu
Need Help?
http://go.plymouth.edu/helpdesk
if(!is_numeric($WARN[1])) {
$warn=0;
}
if(!is_numeric($CRIT[1])) {
$crit=0;
}
This is in check_mk raw 1.5.0p5 with pnp4nagios 0.6.26.
Hope this helps someone else.
--
James M. Cook
Systems Administrator
Information Technology Services
Plymouth State University
(603) 535-2858
***@plymouth.edu
Need Help?
http://go.plymouth.edu/helpdesk