Page 1 of 1

nagios on hpux by ssh

Posted: Mon Nov 23, 2015 10:30 am
by cgermanb
hi people,

fisrt sorry for my english, i am from argentine.

I want monitoring a hpux by ssh

i have already ssh key installed

i put this in command.cfg

define command {
command_name check_ssh_load
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/home/nagios/check_hpux_mem.sh -w $ARG1$ -c $ARG2$"
}

But i dont known how follow, I know I have to put something in localhost.cfg but not that and whether to do more.

can you please help me?

Re: nagios on hpux by ssh

Posted: Mon Nov 23, 2015 12:16 pm
by hsmith
Have you defined a service yet?

Example:

Code: Select all

define service{
	host_name		linux-server
	service_description	check-disk-sda1
	check_command		check-disk!/dev/sda1
	max_check_attempts	5
	check_interval	5
	retry_interval	3
	check_period		24x7
	notification_interval	30
	notification_period	24x7
	notification_options	w,c,r
	contact_groups		linux-admins
	}
Taken from https://assets.nagios.com/downloads/nag ... tions.html

You may want to have a read of through of that if you're unsure of how to configure something.

Re: nagios on hpux by ssh

Posted: Mon Nov 23, 2015 3:25 pm
by cgermanb
if i copy and paste, i have error with service nagios restart with you define service

I guess I should replace the data , but not to place

Re: nagios on hpux by ssh

Posted: Mon Nov 23, 2015 3:31 pm
by hsmith
The stuff I posted was just an example. Don't put it in your server. Fill it in with the values that pertain to your environment.

Re: nagios on hpux by ssh

Posted: Mon Nov 23, 2015 3:52 pm
by cgermanb
Thanks! i can do work it!

Re: nagios on hpux by ssh

Posted: Mon Nov 23, 2015 3:56 pm
by rkennedy
Glad to see @hsmith's answer worked! I will now close this thread out, feel free to open another if you need more assistance.