Friday, 29 January 2010

GP Error: Your login has been removed from the user activity file and you cannot be in the accounting system

This happened when I had a user stuck account 

https://mbs.microsoft.com/knowledgebase/kbdisplay.aspx?wtntzsmnwukntmmyyuskwotvunvlmrysqxnqrzmnxnpnvplx&wa=wsignin1.0

Thursday, 28 January 2010

Ubuntu - using lynx.cur (installing PEAR php)

Downloaded lynx.cur

sudo apt-get install lynx

then using lynx:

lynx.cur -source http://pear.php.net/go-pear | php

create temp directory

mkdir /usr/local/nagios/temp

setup directory permissions:

chmod 004 /usr/local/nagios/temp   --> to be read by all

http://www.computerhope.com/unix/uchmod.htm

Wednesday, 27 January 2010

MRTG

Location:

/usr/local/src

http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

GD
./ configure

Easy Guide: Installing Nconf for Nagios on Ubuntu

I've created a download directory on root

sudo mkdir download

cd download

now download the file (check latest version)

sudo wget http://sourceforge.net/projects/nconf/files/nconf/1.2.6-0/nconf-1.2.6-0.tgz/download


create nconf db

mysqladmin -u root -p   create nconf

mysql -u root -p

mysql> create user nconf \g
mysql> grant usage on *.* to nconf@localhost identified by 'nconf' \g
mysql> grant all privileges on nconfdb.* to nconf@localhost \g

mysql> show databases \g







Still having a few problems setting up the password......to be continued....










Next untar the tarball

cd /var/www/html/
sudo tar zxvf /download/nconf-1.2.6-0.tgz

Thursday, 21 January 2010

Event ID: 9781

MSExchangeIS Mailbox
Cat: Background Cleanup

There is an online maintenance overlaop for database operations storeage group\mailbox database
please revicse online maintenance schedule

http://technet.microsoft.com/en-us/library/bb691410.aspx

Friday, 15 January 2010

Zabbix

http://www.zabbix.com/wiki/howto/install/ubuntu/ubuntuinstall

http://sourceforge.net/projects/zabbix/files/

Thursday, 14 January 2010

Ubuntu - Mailx

sudo apt-get mailx

configuration = /etc/postfix/main.cf

restart /etc/init.d/postfix reload

/usr/bin/mailx

Wednesday, 13 January 2010

Nagios Email Notifications

I've followed these instructions

But had to use this path to get to my commands.cfg

/usr/local/nagios/etc/objects/commands.cfg

to change ‘/bin/mail’ references to ‘/usr/bin/mail’.

Ubuntu networking (9.10)

Configuring Static ip address in Ubuntu server
Ubuntu installer has configured our system to get its network settings via DHCP, Now we will change that to a static IP address for this you need to edit Edit /etc/network/interfaces and enter your ip address details (in this example setup I will use the IP address 172.19.0.10):
sudo vi /etc/network/interfaces
and enter the following save the file and exit
# The primary network interface
auto eth0
iface eth0 inet static
address 172.19.0.10
netmask 255.255.255.0
network 172.19.0.0
broadcast 172.19.0.255
gateway 172.19.0.1
Now you need to restart your network services using the following command
sudo /etc/init.d/networking restart
You need to setup manually DNS servers in resolv.conf file when you are not using DHCP.
sudo vi /etc/resolv.conf
You need to add look something like this
search domain.com
nameserver xxx.xxx.xxx.xxx

My Nagios Configuration Notes

Editing Nagios Config
sudo vi /usr/local/nagios/etc/nagios.cfg     ---> enable other services/hosts

Verifying Nagios Config
sudo vi /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


STEPS in Editing switch config

1. sudo vi /usr/local/nagios/etc/objects/switch.cfg
2. sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
3. sudo service nagios restart

Restart Nagios Service
sudo service nagios restart


(uptime)
# define service{
    use            generic-service
    host_name        BLA
    services_description    Uptime
    check_command        check_snmp!-C public -o sysUpTime.0
    }

Tuesday, 12 January 2010

Quick 'show tech all' capture

On your laptop or any PC on the network

Start TFTP Server (make note of the IP Address)

Use Putty to telnet to the switch

switch> en
switch# copy command 'show tech all' tftp 200.200.200.91 showtechallbla.txt