Nagiosmap.pl problems


#1

Am running:

perl nagiosmap.pl

but keep getting the following error:

/usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi/Tk # perl /usr/local/nagios/share/nagiosmap.pl
couldn’t connect to display “:0” at /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi/Tk/MainWindow.pm line 55.

I have had a look around this forum for how to fix it but no one says how they got it working.

Anyone help?

Thanks.


#2

are you running the command on a local server running X or a remote server connecting via ssh?

Luca


#3

Remote via ssh, although the server itself isn’t running any GUI.


#4

When you connect to remote system using ssh, you have to enable x forwarding. It might be turned off on the ssh server, since some think it’s a security risk.
On sshd server check for
X11Forwarding yes
in the /etc/ssh/sshd_config file.

Edited Thu Feb 16 2006, 08:27PM ]


#5

AND you need a running XServer on the local machine…
It’s no trivial task if you are running a windows client :slight_smile:

Luca


#6

[quote=“luca”]AND you need a running XServer on the local machine…
It’s no trivial task if you are running a windows client :slight_smile:

Luca[/quote]

Cheers, could you explain the XServer bit a bit more for me as am very new to Linux :wink: