MNTOS not displaying tac.cgi information in MNTOS URL

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gpgoriup
Posts: 4
Joined: Tue Aug 13, 2013 2:15 pm

MNTOS not displaying tac.cgi information in MNTOS URL

Post by gpgoriup »

I have a number of Nagios Core instances running in my closed network. Each instance of Nagios is monitoring a specific area of the network. I am trying to install MNTOS so that I can consolidate dashboards but I am running into problems trying to display content information from the tac.cgi file. I am running Apache 2.2.27 with Nagios Core 3.5.1. My network.ini file appears to be working as I am able to render the public web site. I can display networks and contacts listed from my network.ini and contacts.ini on the page but the page is not rendering any dynamic information from my tac.cgi files (meaning the up/down, warnings/cricital, acknowledged, etc. do not have any data). The error message I get indicates MNTOS cannot retrieve the Nagios information from any network identified in my network.ini file. Has anyone seen this error before?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by abrist »

Can you post your network.ini file?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
gpgoriup
Posts: 4
Joined: Tue Aug 13, 2013 2:15 pm

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by gpgoriup »

My network.ini file looks like this:

[Headquarters]
id=1
location="Florida Building 1"
network="Production"
nagios="https://10.10.10.1:8001/nagios/cgi-bin/tac.cgi"
public="https://10.10.10.1:8001/nagios"
contacts=1,2
icon="img/nagios-clearbg.png"

[Campus2]
id=2
location="Florida Building 2"
network="People Services"
nagios="https://10.10.20.1:8001/nagios/cgi-bin/tac.cgi"
public="https://10.10.20.1:8001/nagios"
contacts=1,2
icon="img/TheGazelle.png"
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by tgriep »

Try changing this line from
nagios="https://10.10.10.1:8001/nagios/cgi-bin/tac.cgi"

to

Code: Select all

nagios="https://username:password@10.10.10.1:8001/nagios/cgi-bin/tac.cgi"
Where the username and the password is the username and password to login to the server at 10.10.10.1
Be sure to check out our Knowledgebase for helpful articles and solutions!
gpgoriup
Posts: 4
Joined: Tue Aug 13, 2013 2:15 pm

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by gpgoriup »

I've tried it both ways and neither seems to work.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by tgriep »

Open a web browser on a PC and see if you can get to the TAC data from the command below.
Post back the screen that you see when you try this.

Code: Select all

https://username:password@10.10.10.1:8001/nagios/cgi-bin/tac.cgi
Be sure to check out our Knowledgebase for helpful articles and solutions!
gpgoriup
Posts: 4
Joined: Tue Aug 13, 2013 2:15 pm

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by gpgoriup »

Sorry for the delayed response. Unfortunately I am unable to post the contents of your request because it is hosted on a different network. I can say that when I put that link into a browser I am able to see the TAC.cgi link (Tactical Overview page). They only different I notice is the menu column on the left side is not displayed, everything else is in working. The hyperlinks for Network Outages, Host, Services and Monitoring Services are all working.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by tgriep »

The main thing I wanted to know is if it worked or not.

Is there a firewall between the MNTOS server and the Nagios server?
Are both of the servers on the same network?

I'll try to duplicate the problem you are having and let you know what I find.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: MNTOS not displaying tac.cgi information in MNTOS URL

Post by tgriep »

I have my MNTOS system up and It seems to be working except it doesn't seem to be refreshing. Still looking into that.

Can you check the apache error logs to see if there are any errors?

Code: Select all

tail --lines=200 /var/log/httpd/error_log
tail --lines=200 /var/log/httpd/access_log
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked