A possible check_by_ssh command:

define command {
                command_name                   check_by_ssh
                command_line                   $USER4$/check_by_ssh -H
$HOSTADDRESS$ -t 300 -4 -C "./plugins/$ARG1$ $ARG2$"
                }

Where the $ARG1$ is the path+name of the plugin to use on the remote
machine, and $ARG2$ is used to defin all parameters and their values like
this:

define service {
                host_name                      <host>
                service_description            PROCS-bla
                check_command                  check_by_ssh!check_procs!-w
1:1 -c 1:1 -C /opt/dir/process
 -a proc_args
                use                            PROCS-TEMPLATE
                check_period                   24x7
                notification_period            24x7
                notification_options           w,u,c
                notifications_enabled          1
                contact_groups                 masters_of_the_universe
                }

Thomas Zimmer
Produktservice & Betrieb
Betrieb & Support
Sal. Oppenheim jr. & Cie., Frankfurt a. Main
Telefon: +49 69 7134 5192
Internet: http://www.oppenheim.de
E-Mail: [EMAIL PROTECTED]



-----Ursprüngliche Nachricht-----
Von: Mrutyunjaya Dash [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 23. Februar 2006 16:09
An: [EMAIL PROTECTED]; Zimmer, Thomas (BB) Frankfurt/M.
Cc: [email protected];
[EMAIL PROTECTED]
Betreff: Re: AW: [Nagios-users] Monitoring solaris server without installing
any plugin


Hi Joseph,

Thank you very much. As far as the check_by_ssh is concerned how can I use
this. Do I need create any configuration file in the nagios server for
check_cy_ssh to work? And for ssh authentication how can the nagios server
communicate with remote host? If you can point me to some information for
utilizing check_by_ssh command.

Regards,
Dash
--------------------------
Sent from my BlackBerry Wireless Handheld


-----Original Message-----
From: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
CC: [email protected] <[email protected]>;
[EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Sent: Thu Feb 23 06:28:50 2006
Subject: Re: AW: [Nagios-users] Monitoring solaris server without installing
any plugin


I will post them tonight. I am at a client where I cannot connect to my
server so I cannot get them until tonight. Look at the check_by_ssh plugin
it is also a way to do this 

Joe Petrucci 
Office: 704-383-6089
Cell : 724-462-0443




[EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

02/23/2006 08:56 AM 
        
To
        [email protected] 
cc
        
Subject
        AW: [Nagios-users] Monitoring solaris server without installing
any plugin

        




Hi Joseph, 
  
would you share these plugins? 
  
Greetz, Thomas. 

Thomas Zimmer 
Produktservice & Betrieb 
Betrieb & Support 
Sal. Oppenheim jr. & Cie., Frankfurt a. Main 
Telefon: +49 69 7134 5192 
Internet: http://www.oppenheim.de <http://www.oppenheim.de/>  
E-Mail: [EMAIL PROTECTED] 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
[EMAIL PROTECTED]
Gesendet: Donnerstag, 23. Februar 2006 14:24
An: Mrutyunjaya Dash
Cc: [email protected];
[EMAIL PROTECTED]
Betreff: Re: [Nagios-users] Monitoring solaris server without installing any
plugin


I wrote a lot of my plugins to run commands through an RSA ssh connection
from my Nagios machine to other machines. This way there is no code on the
monitored machine. 
Joe Petrucci 
Office: 704-383-6089
Cell : 724-462-0443



"Mrutyunjaya Dash" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 

02/23/2006 08:18 AM     

To
        <[email protected]> 
cc
        
Subject
        [Nagios-users] Monitoring solaris server without installing  any
plugin


        





Hi List, 

I want to monitor few of the Solaris machines, but those all are production
servers and they don't have any compiler installed on it. Is there any way
to monitor the services without installing any software on the machine? If
any of you have come across of the same kind of situation and found the
solution for this, then please provide the information regarding this. 

Regards, 

Mrutyunjaya Dash 

IT Engineer 

Juniper Networks Pvt Ltd. 

Bangalore 
ForwardSourceID:NT0000C1E6     
ForwardSourceID:NT0000C232     


Attachment: Zimmer, Thomas (Produktservices und Betrieb).vcf
Description: Binary data

Reply via email to