Skip to main content

Posts

Showing posts from April, 2012

Link Nagios to root of website

By default nagios is accessible at http://nagiosserver/nagios3 . To have it accessible at http://nagiosserver, link the htdocs and stylesheet to /var/www (or wherever the root is located). rm -r /var/www ln -s /usr/share/nagios3/htdocs/ /var/www ln -s /etc/nagios3/stylesheets /var/www You can change /var/www to /var/www/whateeve r, so that it is accessible at http://nagiosserver/whatver

Make tftpd-hpa play nicely with Cisco

The following was tested on Ubuntu 11.10. This is completely insecure, make sure it is confined to a LAN environment, i.e. not publicly accessibly.  apt-get install tftpd-hpa mkdir /tftp chmod 777 /tftp nano /etc/default/tftpd-hpa # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure --create -v" service tftpd-hpa restart  --create is needed to allow client to create new file. Otherwise you will get error stating 'File does not exist' or similar. --secure is so that the client does not need to specify an absolute path such as /tftp/file. The root of the tftp server becomes TFTP_DIRECTORY. -v is for verbose logging in /var/syslog culv-lns1#copy run tftp Address or name of remote host []? 10.2.2.40 Destination filename [culv-lns1-confg]? !! 1446 bytes copied in 0.168 secs (8607 bytes/sec) _________________________________________________