Error: Unable to execute /opt/hp/hpsmh/data/cgi-bin/snmpagent/SetSNMPData.cgis (15401 Views)
Reply
Advisor
pgustavsson
Posts: 35
Registered: ‎09-30-2010
Message 1 of 7 (15,401 Views)
Accepted Solution

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

 

Please use plain text.
Trusted Contributor
Andrew_Haak
Posts: 305
Registered: ‎09-13-2013
Message 2 of 7 (15,386 Views)

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
Please use plain text.
Advisor
pgustavsson
Posts: 35
Registered: ‎09-30-2010
Message 3 of 7 (14,888 Views)

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

[ Edited ]

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

 

Please use plain text.
Frequent Advisor
kkpro
Posts: 75
Registered: ‎01-26-2012
Message 4 of 7 (13,514 Views)

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.

Please use plain text.
Occasional Visitor
ericj123
Posts: 1
Registered: ‎03-18-2014
Message 5 of 7 (4,895 Views)

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

Please use plain text.
Advisor
pgustavsson
Posts: 35
Registered: ‎09-30-2010
Message 6 of 7 (3,353 Views)

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

 

Please use plain text.
Advisor
pgustavsson
Posts: 35
Registered: ‎09-30-2010
Message 7 of 7 (3,306 Views)

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!

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation