Nagiosmap


#1

Does anyone know how to get nagiosmap running, and how to use this tool correctly. I have the nagiosmap.pl in the /etc/nagios/ but i get the following error running it:

couldn’t connect to display “:0” at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Tk/MainWindow.pm line 55.
MainWindow->new(-title,NagiosMap v3.2) at ./nagiosmap.pl line 96


#2

I resolved this issue you have to have a desktop running in order for the display to work. The server only has command line.


#3

Good app. It’s better than doing it by hand. Works great if you have an X server running too, which you found out. There are many apps that you can run from a server, but display the output on some other server. I do this often.
Example: SErver1 with no X display system. At a bash prompt I type “export DISPLAY=123.123.123.123:0.0"
At the 123.123.123.123 machine, I type xhost server1
Then on server machine, type the command of the app, TESTAPP &” and the display appears on my machine, and not the server’s.