Operating System - HP-UX
1833851 Members
2224 Online
110063 Solutions
New Discussion

Re: Nagios SNMP monitore HP-UX

 
SOLVED
Go to solution
Luiz Carlos Tomaz
Occasional Contributor

Nagios SNMP monitore HP-UX

Hi All,

I’m setting up a Nagios for monitore my servers with SNMP and I got some errors with my HP-UX.
The servers are in the same vlan and I can’t monitor the disk usage and memory usage but the CPU load are working fine.

The errors:

L_CPU_LOAD OK 07-24-2008 17:09:10 0d 0h 43m 27s 1/3 Load : 0.08 0.1 0.15 : OK

L_DISK_USAGE_/ UNKNOWN 07-24-2008 17:25:14 2d 5h 3m 33s 3/3 ERROR: Description/Type table : Requested table is empty or does not exist.

L_MEMORY_LOAD UNKNOWN 07-24-2008 17:25:04 2d 4h 55m 40s 3/3 ERROR: Description table : Requested table is empty or does not exist.

Nagios Server > CentOS 5
HP/UX Servers > 11.00/11.11/11.23

I’m using this Project for Nagios SNMP plugins: http://nagios.manubulon.com/

I configured my Nagios with the examples in: http://nagios.manubulon.com/index_commands.html

I’m configured the follow line in /etc/snmpd.conf:

get-community-name: Publc IP: 10.0.0.158
2 REPLIES 2
Ralph Grothe
Honored Contributor
Solution

Re: Nagios SNMP monitore HP-UX

Hi Luiz,

how have you configured the check command that is executed for the said service?
Did it use the check_snmp plugin from the
set of distributed official Nagios plugins,
or are you using your own custom plugin?

Another idea, though I don't want to dissuade you from SNMP.
What about setting up an inetd driven nrpe daemon on your HP-UX box and instead have the nrpe execute the check_disk plugin?
This is very easy to set up.
And it is much easier to come up with all sorts of check commands that use the official Nagios plugins than poking around in SNMP MIBs and figuring the correct snmp gets/walks on OIDs.
Just a thought.

Rgds.
Ralph
Madness, thy name is system administration
Olivier Masse
Honored Contributor

Re: Nagios SNMP monitore HP-UX

I sencond Ralph's comment on this. It's better to use NRPE and execute scripts rather than using SNMP.

Be aware that the NRPE plugins are generic and won't always do exactly what you want. They're also not necessarily easy to compile on HP-UX, if you need a .depot I have one available here for 11.23-ia64:
http://www.mayoxide.com/naghpux/ . You can also look at my build notes if you prefer compiling it yourself.

I went through the process recently of deploying NRPE and ended up ditching most of the NRPE plugins; I converted my oldschool homemade HP-UX alarm scripts (that used to send emails directly to me) to make them work with the NRPE API. It's simple and straightforward, and works well.

Good luck