Thursday, July 31, 2008

Howto Link ilo2 Webinterface into Nagios

i needed to link my ilo2 webinterfaces into the Nagios Host Pages. As i got a bunch of servers i searched something to make this as simple as possible for me.

To ease the pain in of adding new servers, just add all your ilo2 controller to your dns domain. I added a CNAME Entry for every server like -ilo..tld

Now just create a hostextinfo file:

/usr/local/nagios/etc/hostextinfo_custom.cfg
# HP Server with ilo2 Controllers
define hostextinfo {
host_name server1,server2,server3,server4,serverX
notes <a href=https://$HOSTNAME$-ilo.mydomain.tld target=_blank style='text-decoration: underline'>$HOSTNAME$ -- ilo2 Webinterface</a>
icon_image hp.png
}

Now place something like: cfg_file hostextinfo_custom.cfg to your nagios.cfg to make sure it will be included on startup of the nagios daemon.

Now you will see a ilo2 Link in every Host View.

bohboh,
kratediggah

No comments: