trondham / check_openmanage

Nagios plugin to monitor hardware health on Dell servers
GNU General Public License v3.0
26 stars 10 forks source link

OMSA Version 9.2.0 breaks check_openmanage #5

Open blue82dc opened 5 years ago

blue82dc commented 5 years ago

After upgrading several of my servers to OMSA Version 9.2.0, check_openmanage has stopped working when used with NRPE. Check_openmanage works when run from the command line, but when run through NRPE, it gets errors of this sort:

Problem running 'omreport chassis memory': Error: SMStatus: 700 Problem running 'omreport chassis batteries': Error! XML Transformation failed Problem running 'omreport chassis pwrmonitoring': Error: SMStatus: 700 Problem running 'omreport chassis removableflashmedia': Error: SMStatus:

On servers that haven't had OMSA upgraded, check_openmanage still works fine with NRPE.

Edit to add more info: I found out more about this. The problem actually has nothing to do with NRPE. Rather, it has to do with the user who runs check_openmanage. If "root" runs the command, it works fine. However, if another user, such as "nagios" runs the command, it produces the error above. Seems related to permissions somewhere and I'll investigate further.

Another edit:

Further investigation shows that this is not a check_openmanage problem. If I run omreport directly as a non-root user, I get the same error. Strangely, some reports from omreport work fine while some give errors.

GittyBytes commented 5 years ago

This can be fixed by making sure the following file exists with the following permissions: -rw-r--rw-. 1 root root 21K Mar 11 12:54 /opt/dell/srvadmin/var/log/openmanage/UsageReport.xml