<br><br><div><span class="gmail_quote">On 3/19/07, <b class="gmail_sendername">Ben Rosenberg</b> <<a href="mailto:red.kryptonite@gmail.com">red.kryptonite@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm not a PHP guru, so I'm not sure what this out put means. Could you<br>hip me to how you used the object_config_fix script to convert your<br>1.x cfg files to 2.x cfg files?<br><br>- Ben<br><br> 3:22PM brosenbe@direwolf
:~/Desktop/convert/ > php object_config_fix.php<br><br>Warning: Invalid argument supplied for foreach() in<br>/home/brosenbe/Desktop/convert/object_config_fix.php on line 124<br><br><br><br>################################################################
<br>No host objects configured (somethings very wrong with that)<br>Exiting to prevent configuration damage<br>################################################################<br><br><br>zsh: exit 1 php object_config_fix.php
<br><br>On 3/15/07, Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:<br></blockquote></div><br><br>Just looking at the source, you need to supply your main configuration file as a command line argument, so I would guess something like
<br><br>php object_config_fix.php /usr/local/nagios/etc/nagios.cfg<br><br>Rob<br>