Graphing ILOM sensor values

The Sun Fire X4150 have a lot of hardware sensors available from the Integrated Lights Out Manager(ILOM). There are several temperature, voltage and power values available. You can make these values available via SNMP by changing the settings inside the ILOM web gui. Hey, then it’s easy to make some nice Cacti graphs. You just need to know which OID gives which value. On this page you can download a spreadsheet with those OIDs. From this information you can build your own data and graph templates in Cacti.  It’s easy to have Cacti probe the sensors via SNMP and then graph them.  The templates I created for the below graphs are also available for download.

I have created three graphs. One showing temperatures, one for power supply and one showing the input voltages the machines receive from our hosting center.



Cacti graph for ILOM temperature sensors

Power supply:

Cacti graph for ILOM power supply

Input voltage:

Cacti graph showing input voltage from ILOM


Excel file with OID : X4150_SNMP_SENSORS

Cacti templates: ILOM_sensors_templates

Use the Cacti import template function to setup the graphs.

Cacti memory graph for Solaris with ZFS

At ITVerkstan we use Cacti to graph and monitor all kinds of values on our Solaris servers. When setting up Cacti we wanted to create a graph to show the memory usage. This proved to be much harder to implement than I could first foresee.

We also use the almighty ZFS to have customers reside on their own separate file systems. This solution has gives us an extremely flexible, reliable and secure way to handle several customers on the same servers.

The problem when trying to monitor memory usage on a Solaris system with active ZFS file systems comes from Arc (Adaptive replacement cache).  Arc is the ZFS memory caching system. Arc default behavior is to use all available memory except 1 Gb. This makes tools such as top and wmstat report that most of the memory is used but in reality it’s available for applications to use. Arc will return memory when applications need it.

None of the graph templates I found for memory on Solaris could give me an honest view of the usage.

I therefore created my own graph and included the Arc values.

Cacti graph showing ZFS Arc cache and memory

The input values to the graph was made availabe to Cacti by SNMP. Three scripts was added to the server and then assigned their own OIDs in /etc/sma/snmp/snmpd.conf:

exec . zfs /bin/bash /local/admin/sbin/zfs_arc_cache
exec . free_mem /bin/bash /local/admin/sbin/free_mem
exec . zfs_size /bin/bash /local/admin/sbin/zfs_arc_cache_size


ZIO_BUF=$(kstat -p zfs:0:arcstats:c|awk '{print $NF}')
echo $ZIO_BUF


FREE=$(($(pagesize)*$(kstat -p unix:0:system_pages:freemem|awk '{print $NF}')))
echo $FREE


ZIO_BUF=$(kstat -p zfs:0:arcstats:size|awk '{print $NF}')
echo $ZIO_BUF

After adding the scripts and restarting SMA the data input and graphs in Cacti needs to be defined.

Below you can download the ones we use.  The xml file includes three data templates (one for each script) and one graph template.

Just download and use the Cacti import template function.

Templates for Cacti:  cacti_graph_template_solaris_free_mem