i installed Nagios core in my local system I have followed the Link to install it but I am unable to access the web interface i am getting the following error
<?php
// Allow specifying main window URL for permalinks, etc.
$url = 'main.php';
if ("no" == "yes" && isset($_GET['corewindow'])) {
// The default window url may have been overridden with a permalink...
// Parse the URL and remove permalink option from base.
$a = parse_url($_GET['corewindow']);
// Build the base url.
$url = htmlentities($a['path']).'?';
$url = (isset($a['host'])) ? $a['scheme'].'://'.$a['host'].$url : '/'.$url;
$query = isset($a['query']) ? $a['query'] : '';
$pairs = explode('&', $query);
foreach ($pairs as $pair) {
$v = explode('=', $pair);
if (is_array($v)) {
$key = urlencode($v[0]);
$val = urlencode(isset($v[1]) ? $v[1] : '');
$url .= "&$key=$val";
}
}
if (preg_match("/^http:\/\/|^https:\/\/|^\//", $url) != 1)
$url = "main.php";
}
$this_year = '2018';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<title>Nagios: <?php echo $_SERVER['SERVER_NAME']; ?></title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico">
<script LANGUAGE="javascript">
var n = Math.round(Math.random() * 10000000000);
document.cookie = "NagFormId=" + n.toString(16);
</script>
</head>
<frameset cols="180,*" style="border: 0px; framespacing: 0px">
<frame src="side.php" name="side" frameborder="0" style="">
<frame src="<?php echo $url; ?>" name="main" frameborder="0" style="">
<noframes>
<!-- This page requires a web browser which supports frames. -->
<h2>Nagios Core</h2>
<p align="center">
<a href="https://www.nagios.org/">www.nagios.org</a><br>
Copyright © 2010-<?php echo $this_year; ?> Nagios Core Development Team and Community Contributors.
Copyright © 1999-2010 Ethan omegle.2yu.co Galstad<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>
</frameset>
</html>
I already worked on Nagios Core recently, I tried to install Nagios Xi in my local system which I couldn't for some issue, since then I am not able to access Nagios core web interface also Can someone help me how omeglz echat to resolve that issue? Thank you
Unable to access the Nagios web interface in Localhost
-
PaulRajeshMEzra45
- Posts: 11
- Joined: Wed Feb 16, 2022 2:47 am
Re: Unable to access the Nagios web interface in Localhost
Hi @PaulRajeshMEzra45,
Thank you for reaching out!
It sounds like you attempted installing Nagios XI on a server that you already had core configured on, is that correct?
Thank you for reaching out!
It sounds like you attempted installing Nagios XI on a server that you already had core configured on, is that correct?
User unable to access Nagios web interface
Hi Nagios Support Team,
I am facing some rather strange issues with Nagios. I am using Thruk Monitoring Webinterface Version 2.48, OMD 4.41~2022-04-20-labs-edition.
(1) Even after providing access to user, the user is unable to view any hosts/services on the web interface. Below is the contact cofig file i use for all of the users -
define contact {
contact_name userid
use generic-contact
contactgroups cg
email emailid
}
(2) Also one of the user was able to view the console before, but is now unable to login to Nagios gui and everytime he tries to login, a separate user template gets created with login status as login failed. Refer attachments.
(3) Also many a times while doing changes a bug report appears. Refer below -
Url: conf.cgi
Browser:
Version: 2.48/ OMD 4.41~2022-04-20-labs-edition
Release: April 02, 2022Backends: State / Program Version / Data Source Version
0 / 1.3.0 / Livestatus 1.3.0-naemon
release: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Stacktrace:
unknown type: at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Utils/Conf.pm line 221.
Thruk::Utils::Conf::update_conf('/omd/sites/nagios/etc/thruk/cgi.cfg', 'HASH(0x371bb70)', '223ea1446e78c80c78709f8be3249bc41feabaea9bab79a0ad757a7f4f10fe00', 'HASH(0x3677230)', undef) called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 1641
Thruk::Controller::conf::_store_changes('Thruk::Context=HASH(0x6152780)', '/omd/sites/nagios/etc/thruk/cgi.cfg', 'HASH(0x371bb70)', 'HASH(0x3677230)', undef, 1) called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 1052
Thruk::Controller::conf::_process_objects_page('Thruk::Context=HASH(0x6152780)') called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 150
Thruk::Controller::conf::index('Thruk::Context=HASH(0x6152780)', '/thruk/cgi-bin/conf.cgi') called at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 320
eval {...} called at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 315
Thruk::_dispatcher('HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
eval {...} called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x1bc8810)', 'HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Handler/FCGI.pm line 147
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0xac9ca8)', 'CODE(0x1bc8810)') called at /omd/sites/nagios/share/thruk/script/thruk_fastcgi.pl line 31
at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 343.
Thruk::_dispatcher('HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
eval {...} called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x1bc8810)', 'HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Handler/FCGI.pm line 147
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0xac9ca8)', 'CODE(0x1bc8810)') called at /omd/sites/nagios/share/thruk/script/thruk_fastcgi.pl line 31
Kindly assist on all these 3 issue coming in Nagios. Are these bug issues or some changes at Nagios? Awaiting response. Thanks!
I am facing some rather strange issues with Nagios. I am using Thruk Monitoring Webinterface Version 2.48, OMD 4.41~2022-04-20-labs-edition.
(1) Even after providing access to user, the user is unable to view any hosts/services on the web interface. Below is the contact cofig file i use for all of the users -
define contact {
contact_name userid
use generic-contact
contactgroups cg
email emailid
}
(2) Also one of the user was able to view the console before, but is now unable to login to Nagios gui and everytime he tries to login, a separate user template gets created with login status as login failed. Refer attachments.
(3) Also many a times while doing changes a bug report appears. Refer below -
Url: conf.cgi
Browser:
Version: 2.48/ OMD 4.41~2022-04-20-labs-edition
Release: April 02, 2022Backends: State / Program Version / Data Source Version
0 / 1.3.0 / Livestatus 1.3.0-naemon
release: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Stacktrace:
unknown type: at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Utils/Conf.pm line 221.
Thruk::Utils::Conf::update_conf('/omd/sites/nagios/etc/thruk/cgi.cfg', 'HASH(0x371bb70)', '223ea1446e78c80c78709f8be3249bc41feabaea9bab79a0ad757a7f4f10fe00', 'HASH(0x3677230)', undef) called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 1641
Thruk::Controller::conf::_store_changes('Thruk::Context=HASH(0x6152780)', '/omd/sites/nagios/etc/thruk/cgi.cfg', 'HASH(0x371bb70)', 'HASH(0x3677230)', undef, 1) called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 1052
Thruk::Controller::conf::_process_objects_page('Thruk::Context=HASH(0x6152780)') called at /omd/sites/nagios/etc/thruk/plugins-enabled/conf/lib/Thruk/Controller/conf.pm line 150
Thruk::Controller::conf::index('Thruk::Context=HASH(0x6152780)', '/thruk/cgi-bin/conf.cgi') called at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 320
eval {...} called at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 315
Thruk::_dispatcher('HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
eval {...} called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x1bc8810)', 'HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Handler/FCGI.pm line 147
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0xac9ca8)', 'CODE(0x1bc8810)') called at /omd/sites/nagios/share/thruk/script/thruk_fastcgi.pl line 31
at /omd/sites/nagios/share/thruk/lib/Thruk.pm line 343.
Thruk::_dispatcher('HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
eval {...} called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Util.pm line 145
Plack::Util::run_app('CODE(0x1bc8810)', 'HASH(0x61211a8)') called at /omd/sites/nagios/lib/perl5/lib/perl5/Plack/Handler/FCGI.pm line 147
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0xac9ca8)', 'CODE(0x1bc8810)') called at /omd/sites/nagios/share/thruk/script/thruk_fastcgi.pl line 31
Kindly assist on all these 3 issue coming in Nagios. Are these bug issues or some changes at Nagios? Awaiting response. Thanks!
-
DoubleDoubleA
- Posts: 273
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Unable to access the Nagios web interface in Localhost
Moved this to the appropriate forum section.