check_disk_smb command

rvelez rvelez at sunguruz.com
Tue Jan 21 22:56:33 CET 2003


Typo I meant give it a shot :)



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of rvelez
Sent: Tuesday, January 21, 2003 8:40 AM
To: Fernando Ribeiro
Cc: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Re: check_disk_smb command

Thanks I will give it a shit. 

Thanks for your help 

Regards, 

Radames 

 

Fernando Ribeiro writes: 

> For monitoring diferent shares using the same "check_command" you can
use arguments.
> Like this: 
> 
> 
> define service{ 
> 
>         ..... 
> 
>         check_command                   check_disk_smb!ports 
> 
>         ... 
> 
> } 
> 
>  
> 
> define command{ 
> 
>         command_name    check_disk_smb 
> 
>         command_line    /usr/local/nagios/libexec/check_disk_smb -H
$HOSTADDRESS$ -s $ARG1$  -W SUNGURUZ -u nagios -p 222222 
> 
>         } 
> 
> 
> Check the Docs. for more details.... 
> 
> Fernando 
> 
> 
>   ----- Original Message ----- 
>   From: rvelez 
>   To: 'Fernando Ribeiro' 
>   Sent: Tuesday, January 21, 2003 2:51 AM
>   Subject: RE: [Nagios-users] check_disk_smb command 
> 
> 
>   Cool LOL fixed that part and at the command line I am running from
the libexec dir: 
> 
>     
> 
>   ./check_disk_smb -H nspdc2 -s ports -W SUNGURUZ -u nagios -p 222222 
> 
>     
> 
>   which is working and gives me a warning about how it is below the
default. So that is a start. But my question now is how would or where
would I enter this string so that I can enter multiple entries of this
server in services.cfg to check different shares. Understand what I am
saying. Thanks for your help!!! :) 
> 
>     
> 
>     
> 
>   Regards, 
> 
>     
> 
>   Radames 
> 
>     
> 
>   -----Original Message-----
>   From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fernando
Ribeiro
>   Sent: Monday, January 20, 2003 7:41 AM
>   To: nagios-users at lists.sourceforge.net
>   Subject: Re: [Nagios-users] check_disk_smb command 
> 
>     
> 
>   Hello, 
> 
>     
> 
>   Try removing the "./" from the "check_command" parameter in the
services file. In this parameter you have to specify the name of your
command that is defined in the commands config file (usually
checkcommands.cfg) 
> 
>   The name of your command is "check_disk_smb" and Nagios is looking
for "./check_disk_smb". 
> 
>     
> 
>     
> 
>   Good luck! 
> 
>     
> 
>   Fernando 
> 
>     
> 
> 
>     
> 
>     ----- Original Message -----  
> 
>     From: rvelez  
> 
>     To: nagios-users at lists.sourceforge.net  
> 
>     Sent: Monday, January 20, 2003 4:51 AM 
> 
>     Subject: [Nagios-users] check_disk_smb command 
> 
>       
> 
>     Hey guys, 
> 
>       
> 
>              I am trying to get my nagios to check disk space on my NT
server using the check_disk_smb command. In my nagios.cfg file I have  
> 
>       
> 
>     # Service definition 
> 
>     define service{ 
> 
>             use                             generic-service         ;
Name of service template to use 
> 
>       
> 
>             host_name                       nspdc2.sunguruz.com 
> 
>             service_description             C Free Space 
> 
>             is_volatile                     0 
> 
>             check_period                    24x7 
> 
>             max_check_attempts              3 
> 
>             normal_check_interval           5 
> 
>             retry_check_interval            1 
> 
>             contact_groups                  SystemAdmins 
> 
>             notification_interval           120 
> 
>             notification_period             24x7 
> 
>             notification_options            w,u,c,r 
> 
>             check_command                   ./check_disk_smb  
> 
>     } 
> 
>       
> 
>       
> 
>     And in my misccommands.cfg I have 
> 
>       
> 
>     define command{ 
> 
>             command_name    check_disk_smb 
> 
>             command_line    /usr/local/nagios/libexec/check_disk_smb
-H $HOSTADDRESS$  
> 
>             } 
> 
>       
> 
>     When I run /usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg I am getting an error saying  
> 
>     Checking services... 
> 
>     Error: Service check command './check_disk_smb' specified in
service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined
anywhere! 
> 
>       
> 
>       
> 
>     Now I know that there are some flags that I need to specify
inorder for nagios to get this info but I am not sure where I need to
specify them or what the syntax would be, could someone help me out and
show me how? Thanks for your help guys 
> 
>       
> 
>     -Radames 
> 
 


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp




More information about the Users mailing list