Page 1 of 1

Check_Openmanage - Performance Graph

Posted: Sat Mar 16, 2013 1:36 pm
by Gavin
I've got check_openmanage working via. SSH / SNMP. However, I'm having trouble getting the pnp graphs to work.

The command I've created is simply called 'check_openmanage', and the perfdata output looks like this:

https://www.evernote.com/shard/s89/sh/1 ... &width=832

Out of the box, with the default pnp template, it looks like this (which is exactly what I'd expect):

https://www.evernote.com/shard/s89/sh/3 ... &width=832

When I add 'check_openmange.php' to the templates directory, I just get this:

https://www.evernote.com/shard/s89/sh/4 ... &width=832

Any ideas? This seems to be a really popular plugin, so I'd be surprised if the performance graphing couldn't be made to work.

Thanks,

Gavin

Re: Check_Openmanage - Performance Graph

Posted: Mon Mar 18, 2013 9:36 am
by scottwilkerson
This looks like the template is either malformed, or requires features that possible may not be available.

Can you attach your check_openmange.php as well as tail the error_log while trying to access the page to see if you are getting any errors

Code: Select all

tail -f /var/log/httpd/error_log

Re: Check_Openmanage - Performance Graph

Posted: Mon Mar 18, 2013 10:13 am
by Gavin

Code: Select all

[Mon Mar 18 15:11:50 2013] [error] [client x] PHP Fatal error:  Using $this when not in object context in /usr/
local/nagios/share/pnp/templates/check_openmanage.php on line 92, referer: https://nagios.x.com/nagiosxi/perfgraphs/?&ho
st=hyperv01.x.x&service=Dell_OpenManage&source=1&view=1&start=&end=&startdate=&enddate=&mode=2&service_id=6287
The template is attached. Any ideas?

Thanks,

Gavin

Re: Check_Openmanage - Performance Graph

Posted: Mon Mar 18, 2013 11:20 am
by scottwilkerson
This template looks like it requires a newer version of pnp than is supported by XI. I'm not positive that this will work, but I grabbed a template from the version of check_openmanage from beforr they updated in and am attaching it here

Re: Check_Openmanage - Performance Graph

Posted: Mon Mar 18, 2013 5:10 pm
by Gavin
No such luck. I guess this is just an incompatibility with the version of PNP installed on XI? Seems a shame, particularly as 'check_openmanage' is probably the best and most comprehensive Nagios Plugin out there.

Hopefully it'll work when PNP gets upgraded in a later release.

Thanks,

Gavin

Re: Check_Openmanage - Performance Graph

Posted: Tue Mar 19, 2013 10:41 am
by scottwilkerson
Darn..

We are going to have someone start working on the feasibility of upgrading to a later version on pnp...

Re: Check_Openmanage - Performance Graph

Posted: Tue Mar 19, 2013 10:43 am
by lmiltchev
Gavin,
Hopefully it'll work when PNP gets upgraded in a later release.
If it's still not working then (after PNP gets upgraded), please, start a new thread. I am locking this one. Thanks!