Auto Login to Nagios Webpage
Posted: Thu May 14, 2015 8:23 am
Hi Guys,
I'm trying to setup Nagios to auto load in a raspberry PI so I can have it mounted on a screen. I've managed to get the system to load directly in Chromium but it asks for the username and password, here's how I've done it so far. Can you help me by passing the password through?
GNU nano 2.2.6 File: /etc/xdg/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xset s noblank
@xset s off
@xset -dpms
@python /home/pi/launch_nagios.py
GNU nano 2.2.6 File: /home/pi/launch_nagios.py
# Python script to launch nagios on Raspberry Pi.
import subprocess
def open_browser():
# Start chromium and redirect output.
url = "http://192.168.1.11/nagios3/"
chromium_log_file = open("/home/pi/log-chromium.txt", "w")
subprocess.Popen(["chromium", "--disable-infobars", "--disable-session-$
open_browser()
Thank you
I'm trying to setup Nagios to auto load in a raspberry PI so I can have it mounted on a screen. I've managed to get the system to load directly in Chromium but it asks for the username and password, here's how I've done it so far. Can you help me by passing the password through?
GNU nano 2.2.6 File: /etc/xdg/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@xset s noblank
@xset s off
@xset -dpms
@python /home/pi/launch_nagios.py
GNU nano 2.2.6 File: /home/pi/launch_nagios.py
# Python script to launch nagios on Raspberry Pi.
import subprocess
def open_browser():
# Start chromium and redirect output.
url = "http://192.168.1.11/nagios3/"
chromium_log_file = open("/home/pi/log-chromium.txt", "w")
subprocess.Popen(["chromium", "--disable-infobars", "--disable-session-$
open_browser()
Thank you