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?
nagios on hpux by ssh
Re: nagios on hpux by ssh
Have you defined a service yet?
Example:
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.
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
}You may want to have a read of through of that if you're unsure of how to configure something.
Former Nagios Employee.
me.
me.
Re: nagios on hpux by ssh
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
I guess I should replace the data , but not to place
Re: nagios on hpux by ssh
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.
me.
Re: nagios on hpux by ssh
Thanks! i can do work it!
Re: nagios on hpux by ssh
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