RE export configs from Nagios 1.1 to 2.7.

Rob Blake rob.blake at gmail.com
Tue Mar 20 10:36:36 CET 2007


On 3/19/07, Ben Rosenberg <red.kryptonite at gmail.com> wrote:
>
> I'm not a PHP guru, so I'm not sure what this out put means. Could you
> hip me to how you used the object_config_fix script to convert your
> 1.x cfg files to 2.x cfg files?
>
> - Ben
>
> 3:22PM brosenbe at direwolf:~/Desktop/convert/ > php object_config_fix.php
>
> Warning: Invalid argument supplied for foreach() in
> /home/brosenbe/Desktop/convert/object_config_fix.php on line 124
>
>
>
> ################################################################
> No host objects configured (somethings very wrong with that)
> Exiting to prevent configuration damage
> ################################################################
>
>
> zsh: exit 1     php object_config_fix.php
>
> On 3/15/07, Marc Powell <marc at ena.com> wrote:
>


Just looking at the source, you need to supply your main configuration file
as a command line argument, so I would guess something like

php object_config_fix.php /usr/local/nagios/etc/nagios.cfg

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070320/7a415fc5/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list