ss_host_disk.php - Seg Fault on Solaris 10

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ChrisFord
Posts: 2
Joined: Thu Jan 13, 2011 8:13 pm

ss_host_disk.php - Seg Fault on Solaris 10

Post by ChrisFord »

Hi,

I am using Cacti (0.8.7g) to monitor 8 hosts (HP blade server running RHEL5.3).
I was originally running Cacti on one of the blades, but have moved it onto a different server (Solaris x86 - use for all stats and reporting).

It was all working fine on the RedHat machine, but on the Solaris box I am having problems with disk space reporting. I am using the "Host MIB - Hard Drive Space" data template.

Whenever ss_host_disk.php is run, I get a segmentation fault (in the SNMP call - see trace below). This causes two problems, firstly, I do not get any disk space reports (they all return zero), and secondly, when the host.php page is invoked in "edit" mode it causes PHP to crash.

All other SNMP based stats seem to be working fine, as is SNMP itself - see below for snmpget of the same disk space attribute.

I've managed to get this far with working out what's going on, but am stuck as to where the issue causing the Seg Fault lies.
Any ideas or suggestions would be greatly appreciated.

Cheers,
Chris Ford

Code: Select all

# php ./scripts/ss_host_disk.php <hostname> 11 '2:161:500:1:10:<community>::::::' get used 7
0
#
# pstack core.php.28550
core 'core.php.28550' of 28550: /opt/csw/php5/bin/php -q /DATA/cacti-0.8.7g/poller_commands.p
 fe6ea42d asn_parse_length (886c3e2, 8042070) + 71
 fe6ea18a asn_parse_header (886c3e0, 80422d4, 8042160) + 62
 fe6ea27d asn_parse_sequence (886c3e0, 80422d4, 8042160, 30, fe71fa20) + 29
 fe6e8edf snmp_comstr_parse (886c3e0, 80422d4, 8042190, 80422b8, 86e9638) + 3f
 fe6e2bb6 ???????? (8553570, 86e7100, 86e9638, 886c3e0, 193)
 fe6e2f59 ???????? (8553570, 86e7100, 86e9638, 886c3e0, 193)
 fe6e4e98 ???????? (8553570, 86e7100, 86e6c98, 86e6f60, 85535d0, 10)
 fe6e5c51 _sess_read (8553570, 8042440) + 899
 fe6e6194 snmp_sess_read (8553570, 8042440) + 20
 fe6e53a7 snmp_read (8042440) + 2b
 fe6c48ba snmp_synch_response_cb (86e7100, 86e9348, 8043970, fe6c3a7c) + 126
 fe6c4930 snmp_synch_response (86e7100, 86e9348, 8043970) + 28
 fe7620b4 ???????? (5, 8821558, 0, 0, 1, 4)
 fe762e59 ???????? (5, 8821558, 0, 0, 1, 4)
 fe76356a zif_snmp2_real_walk (5, 8821558, 0, 0, 1) + 1e
 081af870 ???????? (8045038)
 081b667a ???????? (8045038)
 081aec7d execute  (86e6850) + 12d
 081aef9b ???????? (8046a58)
 081afa65 ???????? (8046a58)
 081aec7d execute  (876abe0) + 12d
 081aef9b ???????? (8046e68)
 081afa65 ???????? (8046e68)
 081aec7d execute  (876a958) + 12d
 081aef9b ???????? (80477a8)
 081afa65 ???????? (80477a8)
 081aec7d execute  (83153e0) + 12d
 08192adb zend_execute_scripts (8, 0, 3, 0, 8047d58, 0) + 12b
 08150f99 php_execute_script (8047d58) + 271
 08230446 main     (3, 8047ea0, 8047eb0) + 108e
 0807259a _start   (3, 8047f30, 8047f46, 8047f49, 0, 8047f79) + 7a

Code: Select all

# snmpget -v 2c -c <community> <hostname> .1.3.6.1.2.1.25.2.3.1.6.7
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 206369
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests