Hey,
I've setup some decent inventory collection inspired by mmarkwitzz Windows inventory collection its based on the same HTML tables. Thanks mmarkwitzz.
Link to Windows collection: https://www.zabbix.com/forum/showthread.php?t=26862
Collects:
1) OS version
2) Chassis Serial Number
3) Chassis Part Number
4) Model
5) CPU - Model / Part / Serial / Cores / Threads per core
6) Memory - Part / Serial / Slot and Extender location / Size
7) Raid - Serial / Logical and Physical disks configured / Firmware
8) Disks - Part / Serial / Size / Enclosure and Bay location
9) Software - Description and Version
10) ILO Address
11) SMH Address


Prerequisites:
1) WBEM Management Bundle will need to be installed, this can be obtained from the HP software depot...its free.
2) If want the software collected you will need to grant read access to the zabbix user like so (as root):
swacl -l root -M user:zabbix:r
3) If want to collect raid / disk details you will need to run the *cron.sh script as root. Now this is a one of to grab the data into a temp file to be processed by the main inventory script. However as you can image if you replace a disk you will need to run it again. I've left this up to you if you want to cron it as root to run once a day if will update the temp file.
How
1) Add this to your zabbix_agentd.conf
UserParameter=hpux.inv[*],"/home/zabbix/scripts/zabb_inventory.sh" "$1" "$2" "$3"
2) Update the attached scripts home folder in the variables section
templogs="/home/zabbix/scripts/logs/"
templogs="/path/to/log/directory"
3) Cron zabb_inventory_cron.sh or run script as run
23 30 * * * /path/to/script/zabb_inventory_cron.sh
./zabb_inventory_cron.sh
4) Import the attached zabbix template
5) Add template to zabbix server
6) restart agent on client server
Feedback welcome, this should be a good base for a linux version. I'll work on that a bit later.
Thanks.
I've setup some decent inventory collection inspired by mmarkwitzz Windows inventory collection its based on the same HTML tables. Thanks mmarkwitzz.
Link to Windows collection: https://www.zabbix.com/forum/showthread.php?t=26862
Collects:
1) OS version
2) Chassis Serial Number
3) Chassis Part Number
4) Model
5) CPU - Model / Part / Serial / Cores / Threads per core
6) Memory - Part / Serial / Slot and Extender location / Size
7) Raid - Serial / Logical and Physical disks configured / Firmware
8) Disks - Part / Serial / Size / Enclosure and Bay location
9) Software - Description and Version
10) ILO Address
11) SMH Address


Prerequisites:
1) WBEM Management Bundle will need to be installed, this can be obtained from the HP software depot...its free.
2) If want the software collected you will need to grant read access to the zabbix user like so (as root):
swacl -l root -M user:zabbix:r
3) If want to collect raid / disk details you will need to run the *cron.sh script as root. Now this is a one of to grab the data into a temp file to be processed by the main inventory script. However as you can image if you replace a disk you will need to run it again. I've left this up to you if you want to cron it as root to run once a day if will update the temp file.
How
1) Add this to your zabbix_agentd.conf
UserParameter=hpux.inv[*],"/home/zabbix/scripts/zabb_inventory.sh" "$1" "$2" "$3"
2) Update the attached scripts home folder in the variables section
templogs="/home/zabbix/scripts/logs/"
templogs="/path/to/log/directory"
3) Cron zabb_inventory_cron.sh or run script as run
23 30 * * * /path/to/script/zabb_inventory_cron.sh
./zabb_inventory_cron.sh
4) Import the attached zabbix template
5) Add template to zabbix server
6) restart agent on client server
Feedback welcome, this should be a good base for a linux version. I'll work on that a bit later.
Thanks.