When I tried to restart Nagios, the command line gave me a config error which after some research had to do with the services configuration. When I corrected this, Nagios started just fine, but I still couldnt't login. I can login to Nagios Core, but I need the config options from Nagios XI.
Some more research led to the discovery that my login.php file was probably corrupted because all the other PHP files are just code (I can't read PHP yet) but the login.php is all just garbled letters and numbers. Is there a place where I can download a new login.php file or do I have to start over from scratch (which isn't a problem)?
This problem occured when I installed the X Window system with KDE on the CentOS machine. I use the virtual appliance with CentOS 6.
Thanks for helping.
-Edit-
I researched some more and found the login.php file of another test version of Nagios XI. This file has the same crazy code which I don't understand. I still think there is something wrong with this file because I haven't changed any of the PHP files.
To make it easier for you guys I include the code here.
Code: Select all
<?php @"SourceGuardian"; //v8.2 ?><?php // Copyright (c) 2008-2010 Nagios Enterprises, LLC. All rights reserved. ?><?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__n=$__x[0]*10000+$__x[1]*100+$__x[2];$__u=strtolower(substr(php_uname(),0,3));$__f=$__f0='ixed.'.substr($__v,0,strpos($__v,'.',3)).'.'.$__u;$__ff=$__ff0='ixed.'.$__v.'.'.$__u;$__ed=ini_get('extension_dir');if(!$__e=realpath($__ed)) die('extension_dir does not exist: '.$__ed);if($__n<50205){$__d=getcwd();if(@$__d[1]==':'){$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f;$__ff='/ixed/'.$__ff;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if (file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff);else if (file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load')){if(file_exists($__e.'/'.$__ff0)) dl($__ff0);else if(file_exists($__e.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){die('PHP script <B>'.__FILE__.'</B> is protected by <A HREF="http://www.sourceguardian.com/">SourceGuardian</A> and requires the SourceGuardian loader <B>'.$__f0.'</B>. The SourceGuardian loader has not been installed, or is not installed correctly. Please find the required loader within SourceGuardian installation directory or visit the <A HREF="http://www.sourceguardian.com/ixeds/">SourceGuardian php encoder</A> site to download it.');exit();}}return sg_load('E6A4CE1AD86196B2AAQAAAARAAAABHAAAACABAAAAAAAAAD/G2i/sqE/YFCOn/NJqq41V2NJLfPOKshYuiTL8f7rExZguiHxZxDBBbWf9ILET/9W9mW8iN9tlUujlJaAnaq2utL9cdbGJpgpMECzeOdIKYmk1PQw2BuLB9pgRviMeD06TfpemXk8u1Bz8hVdLD053AUAAAAoTgAATlWIgXkH2fWT1K2Zf2vnsiXniPn6jKhPyZEkcu/HUQMhZRI0IxgGEI9ZYnF7lA50XUDT58EtT9knKSkVCjHio4B4/gMz92tzGahbfB4Tzyx5c/ZXPR/OIAoGiugBgm3moMGolct2proocMcbJIQiwNBYr5/TDgCzkHJRrnjOGXL5j0woKXuAn1BVHugbFcaaIu8joJWOjZJafWX1A3S/1T+dCYGBiG5WiI1B8rBICq01nMwu+zn06bQXFZRDZIrIV9LhYZujEttOki1EfKa3dWQpGyMErADUwhA63UGqu1glMNuCUm6z7WhBnpxloyB/vsSi0mipq7RBHT5DSKaA1anO+/XMO+c4jMOfjwdQrJfz4BoORBs/QCthtkxLAv2bXLbvD3MMmf9ZqXLtfHKMYvATKZi7GPcIyET/Wf3i2LwQLckKP70Z9X6hBMV1zuhiHErrMZXSGO/67EjvowH49ln3bYVUrlZAlu4ePOMJKgCmj1RusGHiE+SpZdzFg1wMeLzARjyEKnVrR84JW/Ag4vTrRL9jxmBineJivAB52MsjW/4ZYSl/8HrQdoKETjageoQ2BbSVTAGpTg3Xv6rsbDLK273/MyLx5Fwd/lUzLyC1F/5Jrn5tSWrbcFRpaxa3qpo5Rb6x6yb6ZvanNgXXGnRTKq2PcUTVrQZmHOT9BwgwK2HV8oNZS+3fzuyHWCX8s0GDi120eAYLg0xdwPKs5EdNHwfwhzDqPwrZPPgex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