[Wed Dec 18 08:43:49 2013] [error] [client x.x.x.x] PHP Deprecated: Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: http://x.x.x.x/nagios/pnp/index.php/gra ... tEthernet2
i have added a new function interfacetable_v3t in nagios as i want to monitor bult subinterface bandwidth and performance thorough this plugin but i am getting above error how do i fix it ?
PHP Deprecated: Function eregi() is deprecated
Re: PHP Deprecated: Function eregi() is deprecated
Please do not post questions in unrelated threads. I have split your post from the thread and started a new one.
Former Nagios employee
Re: PHP Deprecated: Function eregi() is deprecated
really i was not knowing that , my intense was not bad. i wanted that issue to be fix. next time i will take care.
Zajil NMS
Re: PHP Deprecated: Function eregi() is deprecated
What version of XI are you running?
How about php?
How about php?
Code: Select all
yum list installed | grep php
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: PHP Deprecated: Function eregi() is deprecated
NagiosXI version : 2012R1.8
[root@localhost ~]# yum list installed | grep php
php.x86_64 5.3.3-14.el6_3 @updates
php-cli.x86_64 5.3.3-14.el6_3 @updates
php-common.x86_64 5.3.3-14.el6_3 @updates
php-gd.x86_64 5.3.3-14.el6_3 @updates
php-mbstring.x86_64 5.3.3-14.el6_3 @updates
php-mcrypt.x86_64 5.3.3-1.el6 @epel
php-mssql.x86_64 5.3.3-1.el6 @epel
php-mysql.x86_64 5.3.3-14.el6_3 @updates
php-pdo.x86_64 5.3.3-14.el6_3 @updates
php-pear.noarch 1:1.9.4-4.el6 @base
php-pear-HTML-Template-IT.noarch
1.3.0-2.el5 @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pgsql.x86_64 5.3.3-14.el6_3 @updates
php-snmp.x86_64 5.3.3-14.el6_3 @updates
php-xml.x86_64 5.3.3-14.el6_3 @updates
[root@localhost ~]# yum list installed | grep php
php.x86_64 5.3.3-14.el6_3 @updates
php-cli.x86_64 5.3.3-14.el6_3 @updates
php-common.x86_64 5.3.3-14.el6_3 @updates
php-gd.x86_64 5.3.3-14.el6_3 @updates
php-mbstring.x86_64 5.3.3-14.el6_3 @updates
php-mcrypt.x86_64 5.3.3-1.el6 @epel
php-mssql.x86_64 5.3.3-1.el6 @epel
php-mysql.x86_64 5.3.3-14.el6_3 @updates
php-pdo.x86_64 5.3.3-14.el6_3 @updates
php-pear.noarch 1:1.9.4-4.el6 @base
php-pear-HTML-Template-IT.noarch
1.3.0-2.el5 @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pgsql.x86_64 5.3.3-14.el6_3 @updates
php-snmp.x86_64 5.3.3-14.el6_3 @updates
php-xml.x86_64 5.3.3-14.el6_3 @updates
Zajil NMS
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: PHP Deprecated: Function eregi() is deprecated
We have never recommending using the pnp links directly as you have shown for Nagios XI, you should use the following to get the image for the graphs
This does some error handling on old code in PNP
Code: Select all
http://x.x.x.x/nagiosxi/includes/components/perfdata/graphApi.php?host=xx-xx-2&service=If_GigabitEthernet2