BANGALORE (Reuters) - Hewlett-Packard Co, the world's top personal computer maker, said it agreed buy cybersecurity firm ArcSight Inc for $1.5 billion in cash.