Page 1 of 1

php warning from snmp walk

Posted: Tue Apr 19, 2011 11:12 am
by jon.bilderback
I had to create a new log file for php, because I'm getting the following 2 messages about 3 times a second (for each one):

Code: Select all

[19-Apr-2011 10:55:49] PHP Warning:  include_once(/usr/local/nagiosxi/html/includes/components/snmpwalk/../configwizardhelper.inc.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/snmpwalk/snmpwalk.inc.php on line 8
[19-Apr-2011 10:55:49] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/nagiosxi/html/includes/components/snmpwalk/../configwizardhelper.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/snmpwalk/snmpwalk.inc.php on line 8
I'd like to remove snmp walk from my configuration (it hasn't been as useful in my situation), is there a way to do that manually?

Re: php warning from snmp walk

Posted: Tue Apr 19, 2011 12:52 pm
by tonyyarusso
Sure - you can just delete the directory, which in this case appears to be /usr/local/nagiosxi/html/includes/components/snmpwalk/ (you may have a wizard as well by the same name).

Re: php warning from snmp walk

Posted: Wed Apr 20, 2011 8:57 am
by jon.bilderback
My apologies, I didn't want to delete it, just wanted to see if I could fix the error so that I'm not spamming my logs.

Re: php warning from snmp walk

Posted: Wed Apr 20, 2011 11:00 am
by tonyyarusso
Well, the "correct" way would be to fix the error in the code if that's the issue. First check - are you sure you installed it in the correct place? Sometimes people get confused and install a component under wizards or a wizard under components.