Server Management - Systems Insight Manager
1751976 Members
4650 Online
108784 Solutions
New Discussion

Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

 
SOLVED
Go to solution
pgustavsson
Frequent Advisor

Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Hi,

 

I have installd the HP Health agents version 9.40 on my Ubuntu 10.04LTS servers.

 

I am unable to clear the integrated management logs through the system management homepage.

 

If i select an entry and click "Mark selected items repaired" or if i click "Mark all items repaired"

 

Then i only get the following error message "Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis"

 

The file is not executable on the system, if i try and set it to be executable, i get no error message at all, but the IML entry does not get cleared.

 

This works fine on Ubuntu 10.04 using the 8.50 hp health package.

 

Anyone seen this or have any suggestions as to what i can try?

 

Many thanks for any imput.

 

Br
Patric Gustavsson

 

6 REPLIES 6
Andrew_Haak
Honored Contributor

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Hello there,

I gues you use SNMP as a dataprovider, did you also create a SNMP write comunity in your Snmpd.conf?

Kind regards,

Andrew
Kind regards,

Andrew
pgustavsson
Frequent Advisor

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Hi,

 

Yes i have, i have tried with these two setups in snmpd.conf (one a direct copy of my working setup on ubunty 10.04)

 

/etc/snmp/snmpd.conf (working on ubuntu 10.04)

 

dlmod cmaX /usr/lib64/libcmaX64.so

rocommunity INLIGHT2

rwcommunity INLIGHT

trapcommunity INLIGHT

trapsink dnsname.of.my.hpsim.com INLIGHT

authtrapenable 1

syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)

syslocation Unknown (configure /etc/snmp/snmpd.local.conf)

com2sec readwrite 10.211.111.222     INLIGHT

 

# Second, map the security names into group names:

#              sec.model  sec.name

group MyROSystem v1        paranoid group

MyROSystem v2c       paranoid group

MyROSystem usm       paranoid group

MyROGroup v1         readonly group

MyROGroup v2c        readonly group

MyROGroup usm        readonly group

MyRWGroup v1         readwrite group

MyRWGroup v2c        readwrite group

MyRWGroup usm        readwrite

 

#### # Third, create a view for us to let the groups have rights to:

#           incl/excl subtree                          mask

view all    included  .1                               80

view system included  .1.3.6.1.2.1.1

#view system included  .iso.org.dod.internet.mgmt.mib-2.system

 

#### # Finally, grant the 2 groups access to the 1 view with different

# write permissions:

#                context sec.model sec.level match  read   write  notif

access MyROSystem ""     any       noauth    exact  system none   none

access MyROGroup ""      any       noauth    exact  all    none   none

access MyRWGroup ""      any       noauth    exact  all    all    none

# -----------------------------------------------------------------------------

 

 

 

 

/etc/snmp/snmpd.conf (new config not working either)

 

dlmod cmaX /usr/lib/libcmaX64.so
rwcommunity INLIGHT 127.0.0.1
rocommunity INLIGHT2 127.0.0.1
rwcommunity  INLIGHT myhpsim.dns.name.com
trapcommunity INLIGHT
trapsink myhpsim.dns.name.com INLIGHT
syscontact patric.gustavsson@myemail.com
syslocation Town
com2sec local     localhost           INLIGHT
com2sec mynetwork 136.111.111.0/23    INLIGHT
group MyRWGroup v1         local
group MyRWGroup v2c        local
group MyRWGroup usm        local
group MyROGroup v1         mynetwork
group MyROGroup v2c        mynetwork
group MyROGroup usm        mynetwork
view all    included  .1                               80
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none

 

Br
Patric

 

kkpro
Regular Advisor

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Same error here.  My snmpd.conf only has ro-, rw- and trapcommunty.

ericj123
New Member

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

I was able to get this working by modifiying permissions on SetSNMPData.cgis to 755 and setting the group from root to hpsmh and by making sure the snmp config has a read/write commuity enabled.

 

 

Hope this helps someone else...

 

 

 

Eric

pgustavsson
Frequent Advisor

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Hi,

 

Many thanks for the reply and suggestion!

 

i have tried the method that helped you, i set the SetSNMPData.cgis file to 755 , however the group owner of the file is already set to hpsmh.

 

Now i no longer get any error message, but i still cannot clear any errors in the iml log, the log list just reloads without clearing the error :(

 

Any other suggestions are most welcome!

 

Br
Patric

 

pgustavsson
Frequent Advisor
Solution

Re: Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

Update!

 

This solved it for me :

 

chmod 755 /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgi

 

AND

 

chmod 755 /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis

 

Many thanks to ericj123 who lead me in the right direction!