nagios on hpux by ssh

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cgermanb
Posts: 3
Joined: Mon Nov 23, 2015 10:24 am

nagios on hpux by ssh

Post 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?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios on hpux by ssh

Post 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.
Former Nagios Employee.
me.
cgermanb
Posts: 3
Joined: Mon Nov 23, 2015 10:24 am

Re: nagios on hpux by ssh

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios on hpux by ssh

Post 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.
Former Nagios Employee.
me.
cgermanb
Posts: 3
Joined: Mon Nov 23, 2015 10:24 am

Re: nagios on hpux by ssh

Post by cgermanb »

Thanks! i can do work it!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nagios on hpux by ssh

Post 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.
Former Nagios Employee
Locked