[Check_mk (english)] Installing check_mk agent on HPUX Unix

I think I have the reason why I don’t get anything else:

The HPUX server is not reachable on port 6556.
I cannot telnet to the point, and if I do a

check_mk -d hpux-server

then I get

check_mk -I alltcp hpux25
Host ‘hpux25’: Cannot get data from TCP port 192.168.1.23:6556: [Errno 111] Connection refused

···

---------- Forwarded message ----------
From: Marcel lord.tek@gmail.com

Date: 11 August 2010 14:55
Subject: Re: [Check_mk (english)] Fwd: Installing check_mk agent on HPUX Unix
To: Gerwin Dirkzwager g.dirkzwager@piramide.nl, checkmk-en@lists.mathias-kettner.de

Hello Gerwin,

Thank you for your reply.

I was able to install the script as you described.

I ran inventory on my nagios server (check_mk -I alltcp).

Unfortunately only checks for ping and ssh were integrated for my HPUX server. Is this normal?

What about all the things that are usual there after using the check_mk agent? (CPU, disks, network cards etc etc).

Thank you for your help.

On 11 August 2010 14:36, Gerwin Dirkzwager g.dirkzwager@piramide.nl wrote:

Ah, sorry. My bad. I forgot I had also changed the ps command itself.:

echo ‘<<>>’

ps -ef -F args | sed 1d

changed for HP-UX

ps -ef -o args | sed 1d

To install:

  1.   just place the check_mk_agent file in “/usr/bin”
    
  1.   Add following line to “/etc/inetd.conf”
    

inetd line for check_mk_agent

check_mk_agent stream tcp nowait root /usr/bin/check_mk_agent check_mk_agent

  1.   Run the command “inetd  -c”
    

That should be all.

Regards,

Gerwin Dirkzwager

Piramide IT Infra

From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de] On Behalf Of Marcel
Sent: Wednesday, August 11, 2010 2:26 PM

To: checkmk-en@lists.mathias-kettner.de

Subject: [Check_mk (english)] Fwd: Installing check_mk agent on HPUX Unix

Hello Gerwin,

Thank you very much for your reply.

I copied check_mk_agent.aix over to my HP-UX server as check_mk_agent.

I inserted

export UNIX95=1

near the top of the script.

I executed the file with “sh check_mk_agent”.

The df and vmstat commands seem to be executed properly.

But I also get

<<>>
ps: illegal option – F
ps: Unknown option (args).

and

<<<mpstat_aix>>>
check_mk_agent[72]: mpstat: not found.

and there is nothing under <> .

Also: how do I install the agent? Because it needs to open a port and run in the background, doesn’t it?

Thank you for your help.

---------- Forwarded message ----------
From: Gerwin Dirkzwager g.dirkzwager@piramide.nl
Date: 11 August 2010 13:18
Subject: RE: [Check_mk (english)] Installing check_mk agent on HPUX Unix

To: Marcel lord.tek@gmail.com, checkmk-en@lists.mathias-kettner.de

Marcel,

I have been running check_mk on HP-UX for a while and I use the AIX agent. Default you get a fault on the ps –o option, but if you add the following line near the top of the check_mk_agent script it works fine. Not the prettiest solution but it’s practical at least.

export UNIX95=1

Vriendelijke groet,


Gerwin Dirkzwager

Piramide IT Infra

From: checkmk-en-bounces@lists.mathias-kettner.de [mailto:checkmk-en-bounces@lists.mathias-kettner.de] On Behalf Of Marcel
Sent: Wednesday, August 11, 2010 12:20 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] Installing check_mk agent on HPUX Unix

Hello all,

I would like to install a/the check_mk agent on HPUX. In the check_mk package, there is an agent for Solaris and for AIX. The commands in these agents are not entirely compatible with my HPUX installations (syntax, etc).

Is there already an agent/alternative for HPUX? If so, how do I install it?

Thank you very much.

Marcel