[Nagios-users] ngios3 + http require authentication and mysql issue

2011-11-15 Thread J. Bakshi
Dear list,

I have installed nagios3 on a debin squeeze box. The apache running here is 
protected
bu authentication. I have aded the following definition

 ` `  ` ` ` `
# Define a service to check HTTP
define service{
use  generic-service   ; Name of 
service template to use
host_namelocalhost
service_description  HTTP
check_command
check_http2!192.168.2.100!admin:password
}


# Define a service to check HTTPS
define service{
use   generic-service ; Name of service 
template to use
host_name localhost
service_description   HTTPS
check_command 
check_https!443!192.168.2.100!admin:password
}

` ` ` ` ` `

But nagios reports error at the front end as 

[ HTTP WARNING: HTTP/1.1 401 Authorization Required - 746 bytes in 0.007 second 
response time ]


More over the Mysql check is also not working.

I have the following definition

` ` ` 
define service{
   usegeneric-service  ; Name of service 
template to use
   host_name  localhost
   service_descriptionMYSQL
check_command check_mysql!root!password
}
` ` ` `

the userid/password all are correct , though nagios reports

[ Access denied for user 'nagios'@'localhost' (using password: YES) ]

So it is not taking the parameters at all !!!

Any help is very much welcome.

Thanks

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Is there new template shipped with nagios3 ?

2009-10-22 Thread J. Bakshi
Hello list,

Please bear with me but I am using my old nagios2 configuration file
with nagios3. I wounder if there is any new template available for
nagios3. I love to use it if any. Here is my running host configuration part

```
define host{
namegeneric-host; The name of
this host template
notifications_enabled   1  ; Host notifications
are enabled
event_handler_enabled   1  ; Host event handler
is enabled
flap_detection_enabled  1  ; Flap detection is
enabled
failure_prediction_enabled  1  ; Failure prediction
is enabled
process_perf_data   1  ; Process performance
data
retain_status_information   1  ; Retain status
information across program restarts
retain_nonstatus_information1  ; Retain non-status
information across program restarts
notification_period  24x7 ; Send host notifications at
any time
register0
}


# Linux host definition template - This is NOT a real host, just a template!

define host{
   name   linux-server   ; The name of this host template
   usegeneric-host   ; This template inherits other values
from the generic-host template
   check_period 24x7 ; By default, Linux hosts are checked
round the clock
   max_check_attempts  10; Check each Linux host 10 times (max)
   check_command  check-host-alive ; Default command to
check Linux hosts
   notification_period workhours   ; Linux admins hate to be woken
up, so we only notify during the day
   notification_interval  120  ; Resend notification every 2 hours
   notification_optionsd,u,r; Only send notifications for
specific host states
   contact_groups   admins  ; Notifications get sent to the
admins by default
   register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST, JUST A TEMPLATE!
   }


define host{
use linux-server
host_name   Office server
address 127.0.0.1
}
``

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios problem after migration to version 3

2009-10-21 Thread J. Bakshi
Marc Powell wrote:
> On Oct 21, 2009, at 7:21 AM, J. Bakshi wrote:
>
>   
>> check_mysql is not working here properly.
>>
>> the command declination is
>>
>> `
>> define command{
>> command_namecheck_mysql
>> command_line$USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c  
>> $ARG2$
>> }
>> 
>
> I'm willing to bet money that in the host definition for 'Office  
> server', the address parameter is not set to 'localhost'.
>
>   

Is it not the reason to provide
check_mysql!localhost!root!password123 in service definition ?

I have also modified the command definition as

 $USER1$/check_mysql -H  $ARG1$  -u $ARG2$ -p $ARG2$

but nagios reports

``
Access denied for user 'root'@'localhost' (using password: YES)
```

though check_mysql runs perfectly well

```
 /usr/lib/nagios/plugins/check_mysql -H localhost -u root -p password123
Uptime: 522385  Threads: 1  Questions: 382106  Slow queries: 0  Opens:
2032  Flush tables: 1  Open tables: 954  Queries per second avg: 0.731
```

>> and the localhost.cfg has
>>
>> `
>> define service{
>>uselocal-service  ; Name of
>> service template to use
>>host_name  Office server
>>service_descriptionMYSQL
>>check_command
>> check_mysql!localhost!root!password123
>>}
>> 
>
> $ARG1$=localhost
> $ARG2$=root
> $ARG3$=password123
>
>   
>> After restaring the nagipos3 the mysql check reports
>>
>> ``
>> Host '192.168.1.1' is not allowed to connect to this MySQL server
>> ```
>>
>> Though the plugin working perfectly
>>
>> /usr/lib/nagios/plugins/check_mysql  -H localhost  -u 
>> -p
>> Uptime: 510145  Threads: 3  Questions: 281108  Slow queries: 0  Opens:
>> 966  Flush tables: 1  Open tables: 952  Queries per second avg: 0.551
>> 
>
> This is not what nagios is running.
>
>   
>> what might be the problem then ?
>> 
>
>
> Combining the command_line with your service definition, nagios is  
> running - /path/to/plugins/check_mysql -H  definition; 192.168.1.x?> -p localhost -c root
>
> Possible solutions -
>   -   change your command definition to use the host parameter you're  
> trying to pass it  (I presume that the other parameters you pass make  
> sense but they don't match your test)
>   check_mysql - command_line$USER1$/check_mysql -H   $ARG1$ 
> -p  
> $ARG2$ -c $ARG3$
>
> --
> Marc
>
>
>   

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [ SOLVED ] nagios problem after migration to version 3

2009-10-21 Thread J. Bakshi
J. Bakshi wrote:
> Assaf Flatto wrote:
>   
>> >From first glance the parameters you are passing from command line are not 
>> >the same as you are 
>> passing from the nagios command execution .
>>
>>   
>> 
>>> define command{
>>> command_namecheck_mysql
>>> command_line$USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
>>> 
>>>   
>>  
>>   
>> 
>>>  /usr/lib/nagios/plugins/check_mysql  -H localhost  -u  
>>> -p
>>> 
>>>   
>> Here you are giving a user name and password  , while on the nagios command  
>> you specify the 
>> password and the critiacl parameters , no username 
>>
>> Assaf
>>   
>> 
>
> Hello Asaf,
>
> I have now the command declination as
>
> `
> # MYSQL command definition
> define command{
> command_namecheck_mysql
> command_line$USER1$/check_mysql -H  $HOSTADDRESS$  -u $ARG1$ -p $ARG2$
> }
> ``
>
> and localhost has same code
>
> `
> # Define a service to check MYSQL
>
> define service{
> uselocal-service  ; Name of
> service template to use
> host_name  Office server
> service_descriptionMYSQL
> check_command 
> check_mysql!localhost!root!password123
> }
> `
>
> and still get
>
> 
> Host '192.168.1.1' is not allowed to connect to this MySQL server
> `
>
> Why still it picking up 192.168.1.1 IP ?
> I am confused  :-(
>
>
>
>   

Asaf I have no idea why -H parameter is not working here !!!  But if I
just remove  * -H $HOSTADDRESS$ *  and  modify service definition as

check_mysql!root!password123

 and it works perfectly ok. Though I think * -H $HOSTADDRESS$ * should
work where mysql needs a specific hostname to log in successfully. Any
workaround to make * -H $HOSTADDRESS$ * working ?

Thanks




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios problem after migration to version 3

2009-10-21 Thread J. Bakshi
Assaf Flatto wrote:
> >From first glance the parameters you are passing from command line are not 
> >the same as you are 
> passing from the nagios command execution .
>
>   
>> define command{
>> command_namecheck_mysql
>> command_line$USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
>> 
>  
>   
>>  /usr/lib/nagios/plugins/check_mysql  -H localhost  -u  
>> -p
>> 
> Here you are giving a user name and password  , while on the nagios command  
> you specify the 
> password and the critiacl parameters , no username 
>
> Assaf
>   

Hello Asaf,

I have now the command declination as

`
# MYSQL command definition
define command{
command_namecheck_mysql
command_line$USER1$/check_mysql -H  $HOSTADDRESS$  -u $ARG1$ -p $ARG2$
}
``

and localhost has same code

`
# Define a service to check MYSQL

define service{
uselocal-service  ; Name of
service template to use
host_name  Office server
service_descriptionMYSQL
check_command 
check_mysql!localhost!root!password123
}
`

and still get


Host '192.168.1.1' is not allowed to connect to this MySQL server
`

Why still it picking up 192.168.1.1 IP ?
I am confused  :-(





> On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote:
>   
>> Dear list,
>>
>> My previous nagios (version 2) was running on a clarkconnect server.  I
>> have replaced  the OS with debian lenny and the nagios shipped with is
>> version3.
>> I have installed here   nagios-plugins;   nagios-plugins-basic;
>> nagios-nrpe-plugin;  nagios3-common;  nagios3. The default setup shipped
>> with nagios3 is working fine.
>> fine 
>> Now I have imported the old config here and I have done the following
>> setup in nagios.cfg
>>
>> 
>> # Commands definitions
>> cfg_file=/etc/nagios3/my_commands.cfg
>> cfg_dir=/etc/nagios3/my_conf.d
>>
>> # I hv ommited this  as my command definations are already there at
>> /etc/nagios3/my_commands.cfg ##
>> #cfg_dir=/etc/nagios-plugins/config
>>
>> ```
>>
>> After restarting the nagios; it can successfully monitor the remote
>> servers trough nrpe perfectly :-)
>>
>> But some problems !!
>>
>> check_mysql is not working here properly.
>>
>> the command declination is
>>
>> `
>> define command{
>> command_namecheck_mysql
>> command_line$USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
>> }
>> `
>>
>> and the localhost.cfg has
>>
>> `
>> define service{
>> uselocal-service  ; Name of
>> service template to use
>> host_name  Office server
>> service_descriptionMYSQL
>> check_command
>> check_mysql!localhost!root!password123
>> }
>> ``
>>
>> After restaring the nagipos3 the mysql check reports
>>
>> ``
>> Host '192.168.1.1' is not allowed to connect to this MySQL server
>> ```
>>
>> Though the plugin working perfectly
>>
>>  /usr/lib/nagios/plugins/check_mysql  -H localhost  -u 
>> -p
>> Uptime: 510145  Threads: 3  Questions: 281108  Slow queries: 0  Opens:
>> 966  Flush tables: 1  Open tables: 952  Queries per second avg: 0.551
>>
>>
>> what might be the problem then ?
>> kindly enlighten me.
>>
>> ---
>> --- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
>> the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> ::: reporting any issue. Messages without supporting info will risk being
>> ::: sent 

[Nagios-users] nagios problem after migration to version 3

2009-10-21 Thread J. Bakshi
Dear list,

My previous nagios (version 2) was running on a clarkconnect server.  I
have replaced  the OS with debian lenny and the nagios shipped with is
version3.
I have installed here   nagios-plugins;   nagios-plugins-basic;  
nagios-nrpe-plugin;  nagios3-common;  nagios3. The default setup shipped
with nagios3 is working fine.
fine 
Now I have imported the old config here and I have done the following
setup in nagios.cfg


# Commands definitions
cfg_file=/etc/nagios3/my_commands.cfg
cfg_dir=/etc/nagios3/my_conf.d

# I hv ommited this  as my command definations are already there at
/etc/nagios3/my_commands.cfg ##
#cfg_dir=/etc/nagios-plugins/config

```

After restarting the nagios; it can successfully monitor the remote
servers trough nrpe perfectly :-)

But some problems !!

check_mysql is not working here properly.

the command declination is

`
define command{
command_namecheck_mysql
command_line$USER1$/check_mysql -H   $HOSTADDRESS$ -p $ARG1$ -c $ARG2$
}
`

and the localhost.cfg has

`
define service{
uselocal-service  ; Name of
service template to use
host_name  Office server
service_descriptionMYSQL
check_command 
check_mysql!localhost!root!password123
}
``

After restaring the nagipos3 the mysql check reports

``
Host '192.168.1.1' is not allowed to connect to this MySQL server
```

Though the plugin working perfectly

 /usr/lib/nagios/plugins/check_mysql  -H localhost  -u  
-p
Uptime: 510145  Threads: 3  Questions: 281108  Slow queries: 0  Opens:
966  Flush tables: 1  Open tables: 952  Queries per second avg: 0.551


what might be the problem then ?
kindly enlighten me.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] email notification not working after nagios3 migration

2009-10-21 Thread J. Bakshi
Dear list,

I am using my old (nagios2) configuration files with nagios3. Every
thing is working fine except email notification. Both postfix and mailx
is installed here and postfix is also running well.  Is there any config
in nagios3 which should be enabled  in nagios3 to send email ? 

Please let me know.
Thanks

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [ SOLVED ] nagios3 problem in debian lenny

2009-10-21 Thread J. Bakshi
J. Bakshi wrote:
> Joseph Lundback wrote:
>   
>>> Dear all ,
>>>
>>> I have the second opportunity to configure nagios3 in a debian lenny
>>> server.  I did  the configuration 2 yr ago on a clark-connect server.
>>> To get a vary basic working nagios I simply followed the default
>>> settings. I have installed nagios; created htpasswd file and then
>>> started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after
>>> successfully authentication ( by htpassd file ) nagios reports
>>>
>>> ``
>>> *Error: Could not read object configuration data!
>>> `
>>>
>>> Though the basic localhost cfg file is already there at
>>> /etc/nagios3/conf.d/   and it is already included at nagios.cfg  as
>>>
>>> cfg_dir=/etc/nagios3/conf.d
>>>
>>> Any clue please ?
>>> *
>>> 
>>>   
>> I'm no Nagios guru, just a novice nagios user.
>> But I've gotten that error message when I've had permission issues.
>>
>>
>> /Joseph
>>
>>   
>> 
>
> Hello Joseph,
>
> Thanks for your response.  Your assumption is correct. I have configured
> apache here to run as wwwrun:www which is different from the debian
> default settings www-data:www-data.  I have purged nagios3 and install
> it again and catched the information as below
>
> ``
> chown: invalid group: `nagios:www-data'
> dpkg: error processing nagios3-common (--configure):
>  subprocess post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of nagios3:
>  nagios3 depends on nagios3-common (= 3.0.6-4~lenny2); however:
>   Package nagios3-common is not configured yet.
> dpkg: error processing nagios3 (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  nagios3-common
>  nagios3
> ```
>
> So nagios-common is not configured properly and the permission problem
> is there. Any idea to cope with this issue ?
>
> Thanks
>
>   

I have fixed it.  The  trick was I restored the debian default apache
user:group combination as www-data:www-data and restarted apache. Then I
installed nagios3 and the dpkg was happy to see the debian-ins apache
user:group combination; Installation was complete with out any problem
and the required config file were created. Then I revert the apache
user:group combination according to my customization and restarted the
apache and nagios. Problem solved.

If anyone know any better alternative please let me know.

thanks

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios3 problem in debian lenny

2009-10-16 Thread J. Bakshi
Joseph Lundback wrote:
>> Dear all ,
>>
>> I have the second opportunity to configure nagios3 in a debian lenny
>> server.  I did  the configuration 2 yr ago on a clark-connect server.
>> To get a vary basic working nagios I simply followed the default
>> settings. I have installed nagios; created htpasswd file and then
>> started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after
>> successfully authentication ( by htpassd file ) nagios reports
>>
>> ``
>> *Error: Could not read object configuration data!
>> `
>>
>> Though the basic localhost cfg file is already there at
>> /etc/nagios3/conf.d/   and it is already included at nagios.cfg  as
>>
>> cfg_dir=/etc/nagios3/conf.d
>>
>> Any clue please ?
>> *
>> 
>
>
> I'm no Nagios guru, just a novice nagios user.
> But I've gotten that error message when I've had permission issues.
>
>
> /Joseph
>
>   

Hello Joseph,

Thanks for your response.  Your assumption is correct. I have configured
apache here to run as wwwrun:www which is different from the debian
default settings www-data:www-data.  I have purged nagios3 and install
it again and catched the information as below

``
chown: invalid group: `nagios:www-data'
dpkg: error processing nagios3-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nagios3:
 nagios3 depends on nagios3-common (= 3.0.6-4~lenny2); however:
  Package nagios3-common is not configured yet.
dpkg: error processing nagios3 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nagios3-common
 nagios3
```

So nagios-common is not configured properly and the permission problem
is there. Any idea to cope with this issue ?

Thanks





--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nagios3 problem in debian lenny

2009-10-15 Thread J. Bakshi
Dear all ,

I have the second opportunity to configure nagios3 in a debian lenny
server.  I did  the configuration 2 yr ago on a clark-connect server. 
To get a vary basic working nagios I simply followed the default
settings. I have installed nagios; created htpasswd file and then
started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after
successfully authentication ( by htpassd file ) nagios reports

``
*Error: Could not read object configuration data!
`

Though the basic localhost cfg file is already there at 
/etc/nagios3/conf.d/   and it is already included at nagios.cfg  as

cfg_dir=/etc/nagios3/conf.d

Any clue please ?
*

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to send notification to non-admin group ?

2009-06-01 Thread J. Bakshi
Marc Powell wrote:
> On May 29, 2009, at 4:55 AM, J. Bakshi wrote:
>
>   
>>>>  contact_groups   admins,others  ; Notifications get sent to
>>>> the admins by default
>>>>  register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A
>>>> REAL
>>>> HOST, JUST A TEMPLATE!
>>>> 
>
>   
>> yes, I have restarted the nagios a no. of times but no success.
>> Regarding the host defination I have already posted it in my  
>> previous post.
>> 
>
> What you posted originally was not a host definition but rather a host  
> _template_. The difference is critical and you even explain it in ALL  
> CAPS above. The 'register 0' means that nagios isn't supposed to treat  
> it as a host to check but rather as something that will be referenced  
> in a subsequent host definition with a  'use' statement. Find where  
> you 'use serverA' and look at that definition. If contact_groups is  
> defined there, what's used in the template doesn't matter.
>   

It is working now. I have to put the group in the "define service"
section also.
Thanks



>   
>> There is a noticeable line like
>>
>> contact_groups  admins,others; Notifications get sent to the  
>> admins by default
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^ 
>> ^^
>> 
>
> This wouldn't matter if the actual host definition overrides it.  
> That's what I'm trying to determine.
>
>   
>> is there anything which prevents my non admin group ?
>> 
>
> Nothing outside of a configuration or logic error would. admins, non- 
> admins, it's all the same to nagios.
>
> --
> Marc
>
>
>
> --
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to send notification to non-admin group ?

2009-05-29 Thread J. Bakshi
Marc Powell wrote:
> On May 29, 2009, at 3:17 AM, J. Bakshi wrote:
>
>   
>> Dear all,
>>
>> Coming back to the list after a long time. Hope you all are well.
>>
>> I monitor a few remote servers with nagios  (  2.12 ).  I have
>> individual cfg file for every remote servers under nagios  
>> monitoring. I
>> need to add another email notification for a particular server say
>> serverA. Hence in serverA.cfg I have added the following
>>
>> 
>> define contact{
>> 
> 
>   
>>}
>>
>> define contactgroup{
>> 
> 
>   
>>}
>> 
>
> Nothing obviously wrong above...
>
>   
>> define host{
>>   name   serverA   ; The name of this host template
>> 
>
>   
>>   notification_period workhours   ; Linux admins hate to be woken
>> up, so we only notify during the day
>> 
>
> This is a restriction. Did it meet your test criteria?
>
>   
>>   contact_groups   admins,others  ; Notifications get sent to
>> the admins by default
>>   register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A  
>> REAL
>> HOST, JUST A TEMPLATE!
>> 
>
> This is a template, not a usable definition. Does the host{}  
> definition that uses this template override the contact_groups  
> parameter?
>
> Other than those, does nagios.log show notifications to the contact?  
> Nagios was restarted after making these changes?
>   

Hello Marc,

yes, I have restarted the nagios a no. of times but no success.
Regarding the host defination I have already posted it in my previous post.
There is a noticeable line like

contact_groups  admins,others; Notifications get sent to the admins by 
default
^

is there anything which prevents my non admin group ?



> --
> Marc
>
> --
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to send notification to non-admin group ?

2009-05-29 Thread J. Bakshi
Dear all,

Coming back to the list after a long time. Hope you all are well.

I monitor a few remote servers with nagios  (  2.12 ).  I have
individual cfg file for every remote servers under nagios monitoring. I
need to add another email notification for a particular server say
serverA. Hence in serverA.cfg I have added the following


define contact{
contact_name   nagios-others
alias   Nagios Others
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email  x...@example.com  #
}

define contactgroup{
contactgroup_name   others
alias   Nagios AdminOthers
members nagios-others
}

define host{
   name   serverA   ; The name of this host template
   usegeneric-host   ; This template inherits other values
from the generic-host template
   check_period 24x7 ; By default, Linux hosts are checked
round the clock
   max_check_attempts  30; Check each Linux host 30 times (max)
   check_command  check-host-alive ; Default command to
check Linux hosts
   notification_period workhours   ; Linux admins hate to be woken
up, so we only notify during the day
 ; Note that the notification_period variable is
being overridden from
 ; the value that is inherited from the generic-host
template!
   notification_interval  130  ; Resend notification every 2 hours
   notification_optionsd,u,r; Only send notifications for
specific host states
   contact_groups   admins,others  ; Notifications get sent to
the admins by default
   register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST, JUST A TEMPLATE!
   }

`

After starting nagios I have checked that emails come to me as a member
of admins group but no to the another email address ( member of others
group )

I  have checked it several times;  "   even nagios -v nagios.cfg "
reports no problem but still the another email-id is not getting any mail.
Kindly enlighten me what is wrong here.

Thanks


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to send notification to non-admin group ?

2009-05-29 Thread J. Bakshi
Dear all,

Coming back to the list after a long time. Hope you all are well.

I monitor a few remote servers with nagios  (  2.12 ).  I have
individual cfg file for every remote servers under nagios monitoring. I
need to add another email notification for a particular server say
serverA. Hence in serverA.cfg I have added the following


define contact{
contact_name   nagios-others
alias   Nagios Others
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email  x...@example.com  #
}

define contactgroup{
contactgroup_name   others
alias   Nagios AdminOthers
members nagios-others
}

define host{
   name   serverA   ; The name of this host template
   usegeneric-host   ; This template inherits other values
from the generic-host template
   check_period 24x7 ; By default, Linux hosts are checked
round the clock
   max_check_attempts  30; Check each Linux host 30 times (max)
   check_command  check-host-alive ; Default command to
check Linux hosts
   notification_period workhours   ; Linux admins hate to be woken
up, so we only notify during the day
 ; Note that the notification_period variable is
being overridden from
 ; the value that is inherited from the generic-host
template!
   notification_interval  130  ; Resend notification every 2 hours
   notification_optionsd,u,r; Only send notifications for
specific host states
   contact_groups   admins,others  ; Notifications get sent to
the admins by default
   register   0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST, JUST A TEMPLATE!
   }

`

After starting nagios I have checked that emails come to me as a member
of admins group but no to the another email address ( member of others
group )

I  have checked it several times;  "   even nagios -v nagios.cfg "
reports no problem but still the another email-id is not getting any mail.
Kindly enlighten me what is wrong here.

Thanks

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How to upgrade nagios Version 2.12 ?

2009-04-01 Thread J. Bakshi
Andreas Ericsson wrote:
> J. Bakshi wrote:
>> Dear list,
>>
>> Hope you all are well.
>>
>> Nagios 3.x has been released :-) I'm running nagios Version 2.12 and
>> like to upgrade it to 3.x
>> Is there any script  which can convert the nagios 2.12 configuration to
>> 3.X ?
>>
>> I did the configuration manually and it was a huge work, that's why I'm
>> looking for a converter program this time.
>>
>
> No conversion should be necessary, but if you absolutely want something
> and you have sed >= 4.0.9 you can run the following on all your object
> configuration files
>
> sed -i -e 's/retry_check_interval/retry_interval/' \
> -e 's/max_check_attempts/check_attempts/'
> $cfg_file
>
> Nagios will complain about some variables in nagios.cfg, but nothing
> major. Insofar as object configuration goes, 2 > 3 upgrades are quite
> painfree.
>

Ok, thanks
then I'll go accordingly

Have a nice time


--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to upgrade nagios Version 2.12 ?

2009-04-01 Thread J. Bakshi
Dear list,

Hope you all are well.

Nagios 3.x has been released :-) I'm running nagios Version 2.12 and
like to upgrade it to 3.x
Is there any script  which can convert the nagios 2.12 configuration to
3.X ?

I did the configuration manually and it was a huge work, that's why I'm
looking for a converter program this time.

Thanks

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] bandwidtht monitor ?

2009-01-19 Thread J. Bakshi
Lars Kristian Klykken wrote:
> On Mon, Jan 19, 2009 at 06:16:32PM +0530, J. Bakshi wrote:
>   
>> nagios is capable to do a lot. But is it possible to monitor the the
>> bandwidht of a remote server using nagios ?
>> 
>
> Maybe; it depends on how you want to monitor this. If you want to
> monitor realtime usage and nothing more, I'd look into polling the
> router or switch interface with check_snmp. If you want to trend the
> usage as well as warn you when usage is going off the grid, you can
> combine it with a third party tool like Munin or Cacti.
>
> http://munin.projects.linpro.no
> http://www.cacti.net
>   

Thanks a lot, I'll look into ity to know more.
With regards
> .../Bosse
>   



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] bandwidtht monitor ?

2009-01-19 Thread J. Bakshi
Hello all,

nagios is capable to do a lot. But is it possible to monitor the the
bandwidht of a remote server using nagios ?

I am interested to achieve 2 types of monitoring

1> bandwidht monitoring based on the IP
2> bandwidht monitoring of the virtual hosts

Is any one among the two possible with nagios ?
Kindly suggest.
Thanks


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How to refresh the view manually ?

2008-09-08 Thread J. Bakshi
Hi list,

IS there any configuration which can allow to manually refresh the view
to  get the latest  nrpe result by simply refreshing the browser ?

Kindly let me know.
many thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Is there any way to know who are logged in ?

2008-09-05 Thread J. Bakshi
Assaf Flatto wrote:
> Also you can use the "show users" check 
>
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1415.html;d=1
>   

I'm using this script. It is very useful.
Thanks

> Assaf
> On Friday 05 September 2008 09:29:11 Olivier JAN wrote:
>   
>> Hi,
>>
>> The command "last" is also pretty cool to know who's connected at a
>> time but also who was connected.
>>
>> Olivier JAN
>>
>> "J. Bakshi" <[EMAIL PROTECTED]> a écrit :
>> 
>>> Assaf Flatto wrote:
>>>   
>>>> you can use the check_with_ssh to execute the `who ` or `w` command
>>>>  - those will show you who is
>>>> logged on to the machine at the time .
>>>>
>>>> Assaf
>>>> 
>>> Hi Assaf,
>>> Great.
>>> yes that will also work. Thanks for the clue. I'll  do it. But still I
>>> would be good if nrpe could do that.
>>> anyways thanks for the practical solution.
>>> have a nice time
>>>
>>>   
>>>> On Friday 05 September 2008 07:08:12 [EMAIL PROTECTED] wrote:
>>>> 
>>>>> Good question! I have the same question in my mind and need to know the
>>>>> answer for it.
>>>>>
>>>>> Thanks
>>>>> -Shankar
>>>>>
>>>>> On Fri, Sep 5, 2008 at 12:23 PM, J. Bakshi <[EMAIL PROTECTED]> wrote:
>>>>>   
>>>>>> Good morning,
>>>>>>
>>>>>> Hope all are well.
>>>>>> I am using check_users to see the total logged in users. But I am very
>>>>>> eager to know any possibility to check the
>>>>>> logged in users too [ who are presently logged in ].
>>>>>> Any way to do that ?
>>>>>> many thanks
>>>>>>
>>>>>> --
>>>>>> ~~
>>>>>> Joydeep Bakshi, Linux System Admin
>>>>>> Kolkatainfoservices Pvt Ltd,
>>>>>> 23A Royd Street, Kolkata 700016, India
>>>>>> Work Phone 91 033 40014784
>>>>>> http://infoservices.in/
>>>>>> ~~~
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>>>> challenge
>>>>>> Build the coolest Linux based applications with Moblin SDK & win great
>>>>>> prizes
>>>>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>>>>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>> ___
>>>>>> Nagios-users mailing list
>>>>>> Nagios-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>>>>>
>>>>>> ::: Please include Nagios version, plugin version (-v) and OS when
>>>>>>
>>>>>> reporting any issue.
>>>>>>
>>>>>> ::: Messages without supporting info will risk being sent to /dev/null
>>>>>> 
>>>> IMPORTANT . this email and the information in it may be
>>>> confidential, legally
>>>> privileged and/or protected by law. It is intended solely for the use of
>>>> the person to whom it is addressed. If you are not the intended
>>>> recipient, please
>>>> notify the sender immediately and do not disclose the contents to any
>>>> other person, use it for any purpose, or store or copy the information
>>>> in any medium.
>>>> Please also delete all copies of this email and any attachments from
>>>> your system.
>>>>
>>>> We cannot guarantee the security or confidentiality of email
>>>> communications. We
>>>> do not accept any liability for losses or damages that you may suffer as
>>>> a result of your receipt of this email including but not limited to
>>>> computer service or system failure, access delays or interruption, data
>>>> non-delivery or
>>>> mis-delivery, computer viruses or other harmful components.
>>>>
>>>> Copyright in this email and 

Re: [Nagios-users] Problem to monitor remote server due to dynamic IP at local PC

2008-09-05 Thread J. Bakshi
Christian Dunkel wrote:
> On Friday 05 September 2008 10:55, J. Bakshi wrote:
>   
>> Andreas Ericsson wrote:
>> 
>>> Patch nrpe to allow dns name lookups in the "allowed_hosts" field and use
>>> that instead of ip addresses.
>>>   
>> Thanks a lot Andreas for your suggestion.
>> But my local PC has no domain.
>> Thanks a lot for the solution instead
>> 
>
> Hi List, hi Joydeep,
>
> maybe something like this might help you, as i'm in need to access my 
> homeserver from "outside" and also don't want to rely on dyn-dns services i 
> did somthing like this:
> 1) setup user on homeserver and server on the net
> 2) on the net this user has a little script in his ~/bin/ that greps the 
> remote ip from the env var:
> CURRENT_IP=$(env|grep "SSH_CLIENT"|cut -d"=" -f2|cut -d" " -f1);
> 3) on the homeserver setup a cronjob for that user that connects to the
> other server and runs that script
> 4) here comes the untested part;-)
> setup this user in sudoers so he'd be able to restart nrpe
> 5) use a script like this:
> #!/bin/bash
> OLD_IP=$(grep "^allowed_hosts" /usr/local/nagios/etc/nrpe.cfg| cut -d"," -f2);
> CURRENT_IP=$(env|grep "SSH_CLIENT"|cut -d"=" -f2|cut -d" " -f1);
> if [ $OLD_IP = $CURRENT_IP ];
>   then exit 0;
>   else sed -i 's/${OLD_IP}/${CURRENT_IP}/g' /usr/local/nagios/etc/nrpe.cfg;
>   /etc/init.d/nagios-nrpe-server reload;
>   exit 0;
> fi;
>
> regards,
> Christian
>
>   

Hi Christian,

I honor your script power. Yes shell script rescue us from very
difficult situation.
Here my scenario is just opposite. My remote server has static IP but my
local nagios PC has dynamic IP. So I need to tweak the script to fit to
my requirement.

Your script will also help others who have this same problem.
Have a  great  time

with best regards,

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Is there any way to know who are logged in ?

2008-09-05 Thread J. Bakshi
Assaf Flatto wrote:
> you can use the check_with_ssh to execute the `who ` or `w` command - those 
> will show you who is 
> logged on to the machine at the time .
>
> Assaf
>   

Hi Assaf,
Great.
yes that will also work. Thanks for the clue. I'll  do it. But still I
would be good if nrpe could do that.
anyways thanks for the practical solution.
have a nice time
>
> On Friday 05 September 2008 07:08:12 [EMAIL PROTECTED] wrote:
>   
>> Good question! I have the same question in my mind and need to know the
>> answer for it.
>>
>> Thanks
>> -Shankar
>>
>> On Fri, Sep 5, 2008 at 12:23 PM, J. Bakshi <[EMAIL PROTECTED]> wrote:
>> 
>>> Good morning,
>>>
>>> Hope all are well.
>>> I am using check_users to see the total logged in users. But I am very
>>> eager to know any possibility to check the
>>> logged in users too [ who are presently logged in ].
>>> Any way to do that ?
>>> many thanks
>>>
>>> --
>>> ~~
>>> Joydeep Bakshi, Linux System Admin
>>> Kolkatainfoservices Pvt Ltd,
>>> 23A Royd Street, Kolkata 700016, India
>>> Work Phone 91 033 40014784
>>> http://infoservices.in/
>>> ~~~
>>>
>>>
>>> -
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>>
>>> ::: Please include Nagios version, plugin version (-v) and OS when
>>>
>>> reporting any issue.
>>>
>>> ::: Messages without supporting info will risk being sent to /dev/null
>>>   
>
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 

Re: [Nagios-users] Is there any way to know who are logged in ?

2008-09-05 Thread J. Bakshi
Assaf Flatto wrote:
> you can use the check_with_ssh to execute the `who ` or `w` command - those 
> will show you who is 
> logged on to the machine at the time .
>
> Assaf
>   

Hi Assaf,
Great.
yes that will also work. Thanks for the clue. I'll  do it. But still I
would be good if nrpe could do that.
anyways thanks for the practical solution.
have a nice time
>
> On Friday 05 September 2008 07:08:12 [EMAIL PROTECTED] wrote:
>   
>> Good question! I have the same question in my mind and need to know the
>> answer for it.
>>
>> Thanks
>> -Shankar
>>
>> On Fri, Sep 5, 2008 at 12:23 PM, J. Bakshi <[EMAIL PROTECTED]> wrote:
>> 
>>> Good morning,
>>>
>>> Hope all are well.
>>> I am using check_users to see the total logged in users. But I am very
>>> eager to know any possibility to check the
>>> logged in users too [ who are presently logged in ].
>>> Any way to do that ?
>>> many thanks
>>>
>>> --
>>> ~~
>>> Joydeep Bakshi, Linux System Admin
>>> Kolkatainfoservices Pvt Ltd,
>>> 23A Royd Street, Kolkata 700016, India
>>> Work Phone 91 033 40014784
>>> http://infoservices.in/
>>> ~~~
>>>
>>>
>>> -
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>>
>>> ::: Please include Nagios version, plugin version (-v) and OS when
>>>
>>> reporting any issue.
>>>
>>> ::: Messages without supporting info will risk being sent to /dev/null
>>>   
>
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40

Re: [Nagios-users] can we have different check interval for different define service ?

2008-09-05 Thread J. Bakshi
Assaf Flatto wrote:
> First - please answer to the list directly , and not to me off list.
>   

Sorry, but I have no intention to skip the list and send you direct mail.
It was my mistake. I'm really sorry

> second - you just copy the normal_check_interval directive and place it in 
> the service declaration 
> and define the interval you want for the service .
>   

Many many thanks for the clue
have a great time

>
> Assaf
>
>
> On Friday 05 September 2008 08:48:52 J. Bakshi wrote:
>   
>> Assaf Flatto wrote:
>> 
>>> when using inheritance from templates , there is a partial inheritance,
>>> and any definition you put in the service declaration overrides the
>>> template definitions .
>>> So if you want to define for a specific check interval for a service -
>>> just add that definition in the service declaration and that will
>>> override the "default" written in the template .
>>>
>>> Assaf
>>>   
>> Great, can I simply add the *normal_check_interval* in the service
>> declaration or any specific
>> keywords for this purpose ?
>>
>> thanks
>>
>> 
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem to monitor remote server due to dynamic IP at local PC

2008-09-05 Thread J. Bakshi
Andreas Ericsson wrote:
> J. Bakshi wrote:
>> Dear list,
>>
>> I'm fade up to change the *allow_host* parameter of nrpe.cfg at the
>> remote server.
>> The problem is due to IP change at my local PC where nagios is running
>> and monitoring the remote nrpe.
>> Because of the IP change I have to modify the *allow_host* parameter of
>> nrpe.cfg at the remote server
>> every time. Is there any solution to overcome this ?
>
> Patch nrpe to allow dns name lookups in the "allowed_hosts" field and use
> that instead of ip addresses.

Thanks a lot Andreas for your suggestion.
But my local PC has no domain.
Thanks a lot for the solution instead

>
>> MAC address based
>> authentication rather than
>> alow_host ?
>
> MAC addresses are only available in the ARP protocol, so no luck there
> I'm afraid.
>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] can we have different check interval for different define service ?

2008-09-05 Thread J. Bakshi
Assaf Flatto wrote:
> when using inheritance from templates , there is a partial inheritance, and 
> any definition you put 
> in the service declaration overrides the template definitions .
> So if you want to define for a specific check interval for a service - just 
> add that definition in 
> the service declaration and that will override the "default" written in the 
> template .
>
> Assaf
>   

Great, can I simply add the *normal_check_interval* in the service
declaration or any specific
keywords for this purpose ?

thanks

> On Friday 05 September 2008 08:24:59 J. Bakshi wrote:
>   
>> One more question has been knocking me since a few days.
>>
>> In the host template cfg file  *normal_check_interval* define the
>> duration of time after which the
>> define service will be activated to check the local/remote system. So
>> all the services follow the
>> same interval defined by *normal_check_interval*. Is there any way to
>> define an interval applied for a
>> particular service only and not for all, so that different services have
>> their own time interval according to
>> the requirement of that service ?
>> 
>
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] SSL Socket Shutdown

2008-09-05 Thread J. Bakshi
Ok,

I have managed to produce the log message during [CHECK_NRPE: Socket
timeout after 10 seconds] in my local nagios PC. What I have done; I'hv
again minimized the time to 10 sec  with -t 10 and I got the
[CHECK_NRPE: Socket timeout after 10 seconds]
In the remote server running nrpe ; I checked the log and found

nrpe[24783]: Could not read request from client, bailing out...
nrpe[24783]: INFO: SSL Socket Shutdown

What does it mean ?
Do I need any tweaking in the remote server ?
thanks


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] can we have different check interval for different define service ?

2008-09-05 Thread J. Bakshi
One more question has been knocking me since a few days.

In the host template cfg file  *normal_check_interval* define the
duration of time after which the
define service will be activated to check the local/remote system. So
all the services follow the
same interval defined by *normal_check_interval*. Is there any way to
define an interval applied for a
particular service only and not for all, so that different services have
their own time interval according to
the requirement of that service ?


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Problem to monitor remote server due to dynamic IP at local PC

2008-09-05 Thread J. Bakshi
Dear list,

I'm fade up to change the *allow_host* parameter of nrpe.cfg at the
remote server.
The problem is due to IP change at my local PC where nagios is running
and monitoring the remote nrpe.
Because of the IP change I have to modify the *allow_host* parameter of
nrpe.cfg at the remote server
every time. Is there any solution to overcome this ? MAC address based
authentication rather than
alow_host ?
Please let me know if there is any way to bypass this.
thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Is there any way to know who are logged in ?

2008-09-04 Thread J. Bakshi
Good morning,

Hope all are well.
I am using check_users to see the total logged in users. But I am very
eager to know any possibility to check the
logged in users too [ who are presently logged in ].
Any way to do that ?
many thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-04 Thread J. Bakshi
Mark Young wrote:
> On Sep 2, 2008, at 11:21 PM, J. Bakshi wrote:
>   
>> I'm not using xinetd. I'm using nrpe daemon instead.
>> May be my firewall is responsible for the problem but I'm not sure
>> Even after increasing the time with  -t 20 the commands still report
>> socket time out :-(
>> 
>
> Why not try xinetd with a simple firewall rule?  I believe most people  
> use xinetd or inetd and thus you should be able to get the most help  
> that way.  I set it up the same way the documentation states. 
> http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf 
>Have you successfully installed NRPE before?  If not, it may be  
> time to move to a testing environment that you can have full control  
> over.
>
> That being said... Are you running SElinux?  Have you checked out your  
> relevant logs for nrpe, iptables, selinux, etc (/var/log/messages,  
> make sure debugging is turned on with NRPE)...  It may be give you  
> some interesting information.  I like to run tail on the problem  
> server then try NRPE from the monitoring server to see what is going on.
>
>
> # REMOTE SERVER running NRPE daemon continuosly running tail
> $ tail -f /var/log/messages
> Sep  4 09:35:03 dev2 nrpe[7118]: INFO: SSL/TLS initialized. All  
> network traffic will be encrypted.
> Sep  4 09:35:03 dev2 xinetd[32709]: EXIT: nrpe status=0 pid=7118  
> duration=2(sec)
> ...
>
>
> # NAGIOS SERVER running 'check_nrpe -H REMOTEHOST' or have nagios run  
> checks till they start to timeout.
> $ ./check_npre -H REMOTEHOST
> NRPE v2.11
>
>
> Good luck!
>   

Hi,

I have not found anything interesting through logs. My problem has been
solved by increasing the time to 30
[ -t  30 ]  . Even 20 sec  time gave me trouble. But I have no clue yet
why any thing less than 30 sec  did not work.

with regards


> Mark Young
> ___
> Nagios Enterprises, LLC
> Web:www.nagios.com
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] software raid monitoring

2008-09-04 Thread J. Bakshi
Hari Sekhon wrote:
> J. Bakshi wrote:
>> Hi all,
>>
>> Is there any way to monitor software raid on the remote server by nrpe
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1
>
> -h
>

Thanks Hari.
with best wishes

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] System call sent warnings to stderr

2008-09-04 Thread J. Bakshi
Duncan Ferguson wrote:
>
> On 4 Sep 2008, at 06:56, J. Bakshi wrote:
>>
>> Here are the actual command and out put on the remote server
>>
>> For Checking total process
>> ~
>> /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
>> System call sent warnings to stderr
>> PROCS WARNING: 0 processes with STATE = Z
>>
>> For Zombie process
>> ~~
>> #  /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
>> System call sent warnings to stderr
>> PROCS WARNING: 0 processes with STATE = Z
>
>
> This potentially looks like a bug in check_procs - what version of
> Nagios Plugins are you using and what OS is the remote server?
>
> I would suggest posting to the plugins devel list -
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel

The os is suse 9.3
and nrpe is  nagios-nrpe-2.0-111

thanks


>
>   Duncs
>
> --Duncan Ferguson
> Senior Developer, Altinity Limited
>
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> US:  +1 866 879 9184
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
> MSN: [EMAIL PROTECTED]
>
> The contents of this email and any files transmitted with it are
> confidential and intended solely for the use of the individuals to
> whom it is addressed.
> If you are not the intended recipient or have received this e-mail in
> error please notify the sender and delete this e-mail immediately.
> Any unauthorised copying, disclosure or distribution of the material
> in this e-mail is strictly prohibited.
>
> Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United
> Kingdom
> Registered in England and Wales under company number 4743767
>
>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] software raid monitoring

2008-09-04 Thread J. Bakshi
Lars Stavholm wrote:
> J. Bakshi wrote:
>> Lars Stavholm wrote:
>>> J. Bakshi wrote:
>>>> Hi all,
>>>>
>>>> Is there any way to monitor software raid on the remote server by
>>>> nrpe ?
>>> From nagios-plugins-1.4.11:
>>> contrib/check_adptraid
>>> contrib/check_linux_raid
>>> /L
>>>
>>
>> Hi Lars,
>>
>> Thanks a lot to let me know about the contrib.
>> Yes the mentioned script is there in my nagios monitoring system, but I
>> have not found it in my
>> remote server where nrpe is running. I think I hace install there the
>> nagios-plugin
>
> Well, you'd better verify what you've installed on the remote machine,
> and how it was installed. The contrib directory might not be included.
> The contrib directory is however included in the nagios-plugin source,
> i.e. you might have to pick up the check_linux_raid and put it on to
> the target machine yourself.
> /L
>
>
I'll do that.
with best wishes

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] software raid monitoring

2008-09-03 Thread J. Bakshi
Lars Stavholm wrote:
> J. Bakshi wrote:
>> Hi all,
>>
>> Is there any way to monitor software raid on the remote server by nrpe ?
>
> From nagios-plugins-1.4.11:
> contrib/check_adptraid
> contrib/check_linux_raid
> /L
>

Hi Lars,

Thanks a lot to let me know about the contrib.
Yes the mentioned script is there in my nagios monitoring system, but I
have not found it in my
remote server where nrpe is running. I think I hace install there the
nagios-plugin

thanks


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] System call sent warnings to stderr

2008-09-03 Thread J. Bakshi
Duncan Ferguson wrote:
>
> On 3 Sep 2008, at 12:43, J. Bakshi wrote:
>>
>> Here is the commands I am using from CLI of my nagios PC to check the
>> remote server
>>
>> ./check_nrpe -H  < IP of remote server >  -p 5565 -c  
>> check_zombie_procs
>> System call sent warnings to stderr
>>
>> /check_nrpe -H  < IP of remote server >  -p 5565 -c   check_total_procs
>> System call sent warnings to stderr
>>
>
> Get the actual commands run for 'check_zombie_procs' and
> 'check_total_procs' out of the nrpe.cfg file on the remote server and
> run them by hand as the same user as the nrpe agent runs as to see
> what happens.
>

Here are the actual command and out put on the remote server

For Checking total process
~
/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
System call sent warnings to stderr
PROCS WARNING: 0 processes with STATE = Z

For Zombie process
~~
#  /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
System call sent warnings to stderr
PROCS WARNING: 0 processes with STATE = Z


thanks


>   Duncs
>
> --Duncan Ferguson
> Senior Developer, Altinity Limited
>
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> US:  +1 866 879 9184
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
> MSN: [EMAIL PROTECTED]
>
> The contents of this email and any files transmitted with it are
> confidential and intended solely for the use of the individuals to
> whom it is addressed.
> If you are not the intended recipient or have received this e-mail in
> error please notify the sender and delete this e-mail immediately.
> Any unauthorised copying, disclosure or distribution of the material
> in this e-mail is strictly prohibited.
>
> Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United
> Kingdom
> Registered in England and Wales under company number 4743767
>
>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] software raid monitoring

2008-09-03 Thread J. Bakshi
Hi all,

Is there any way to monitor software raid on the remote server by nrpe ?

thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] System call sent warnings to stderr

2008-09-03 Thread J. Bakshi
Duncan Ferguson wrote:
>
> On 3 Sep 2008, at 12:43, J. Bakshi wrote:
>>
>> Here is the commands I am using from CLI of my nagios PC to check the
>> remote server
>>
>> ./check_nrpe -H  < IP of remote server >  -p 5565 -c  
>> check_zombie_procs
>> System call sent warnings to stderr
>>
>> /check_nrpe -H  < IP of remote server >  -p 5565 -c   check_total_procs
>> System call sent warnings to stderr
>>
>
> Get the actual commands run for 'check_zombie_procs' and
> 'check_total_procs' out of the nrpe.cfg file on the remote server and
> run them by hand as the same user as the nrpe agent runs as to see
> what happens.
>

Here are the actual command and out put on the remote server

For Checking total process
~
/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
System call sent warnings to stderr
PROCS WARNING: 0 processes with STATE = Z

For Zombie process
~~
#  /usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
System call sent warnings to stderr
PROCS WARNING: 0 processes with STATE = Z


thanks


>   Duncs
>
> --Duncan Ferguson
> Senior Developer, Altinity Limited
>
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> US:  +1 866 879 9184
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
> MSN: [EMAIL PROTECTED]
>
> The contents of this email and any files transmitted with it are
> confidential and intended solely for the use of the individuals to
> whom it is addressed.
> If you are not the intended recipient or have received this e-mail in
> error please notify the sender and delete this e-mail immediately.
> Any unauthorised copying, disclosure or distribution of the material
> in this e-mail is strictly prohibited.
>
> Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United
> Kingdom
> Registered in England and Wales under company number 4743767
>
>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] System call sent warnings to stderr

2008-09-03 Thread J. Bakshi
Dear list,

I am sorry but I'm opening an old thread again as I really don't have no
idea about it.

One of my managed server is runnining with suse 9.3
nrpe is installed and running there.

But when I check that server with nrpe it reports

 [ System call sent warnings to stderr  ]

Here is the commands I am using from CLI of my nagios PC to check the
remote server

./check_nrpe -H  < IP of remote server >  -p 5565 -c   check_zombie_procs
System call sent warnings to stderr

/check_nrpe -H  < IP of remote server >  -p 5565 -c   check_total_procs
System call sent warnings to stderr

Could any one give me a clue please ?
thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-03 Thread J. Bakshi
Alex Dehaini wrote:
> Why not drop this rule temporarily and test. If it works, then you
> know for sure it is your firewall.

I did it. but no success. I should look into it in depth



>
> Alternatively, you could seek commercial support.
>
> Lex
>
> On Wed, Sep 3, 2008 at 4:21 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Mark Young wrote:
> > On Sep 2, 2008, at 9:44 AM, J. Bakshi wrote:
> >
> >
> >> J. Bakshi wrote:
> >>
> >>> Alex Dehaini wrote:
> >>>
> >>>
> >>>> Dude,
> >>>>
> >>>> I am assisting with nagios not your firewall. Read your firewall
> >>>> docs
> >>>> very well. Remember to always read the documentation carefully
> >>>> before
> >>>> requesting for assistance that are already in the docs.
> >>>>
> >>>>
> >>> The nrpe docs mentions abt the firewall rules which I have already
> >>> used,
> >>> but no luck :-(
> >>>
> >>>
> >> Not firewall; I have solved the problem by incresing time with -t
> >>
> >
> >  From what you are describing I believe that this is a problem with
> > your xinetd nrpe configuration.  I run into this problem a lot.  By
> > default Xinet will only allow so many instances per second that if
> > exceeded xinet will refuse connects for certain amount of time.
> > Basically your remote server thinks that it is being DDoS.
>  Increasing
> > the time is only covering a symptom.
> >
>
> Hi Mark,
>
> Thanks for your hints and configuration.
> I'm not using xinetd. I'm using nrpe daemon instead.
> May be my firewall is responsible for the problem but I'm not sure
> Even after increasing the time with  -t 20 the commands still report
> socket time out :-(
>
> Here is the rule set I have in my firewall. May be this create the
> problem
>
> ## SYN-FLOODING PROTECTION
> # This rule maximises the rate of incoming connections. In order to do
> this we divert tcp
> # packets with the SYN bit set off to a user-defined chain. Up to
> limit-burst connections
> # can arrive in 1/limit seconds . in this case 4 connections
> in one
> second. After this, one
> # of the burst is regained every second and connections are allowed
> again. The default limit
> # is 3/hour. The default limit burst is 5.
> #
> iptables -N syn-flood
> iptables -A INPUT -i $IFACE -p tcp --syn -j syn-flood
> iptables -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
> iptables -A syn-flood -j DROP
>
>
> with regards
>
> > You can change this globally or per service by adding these lines in
> > ether /etc/xinetd.conf or /etc/xinetd.d/nrpe.  You can play with the
> > exact numbers you need.  I believe the default is 50 connections a
> > second.
> >
> > # CPS where 100 connection per second with a timepout of 10
> seconds if
> > exceded.
> >
> > # Max number of instances running
> >
> > [EMAIL PROTECTED] xinetd.d]# more nrpe
> > # default: on
> > # description: NRPE (Nagios Remote Plugin Executor)
> > service nrpe
> > {
> >   flags   = REUSE
> >  socket_type = stream
> >   port= 5666
> >   wait= no
> >  user= nagios
> >   group   = nagios
> >   server  = /usr/local/nagios/bin/nrpe
> >  server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
> >   log_on_failure  += USERID
> >  disable = no
> >   only_from   = 127.0.0.1
> <http://127.0.0.1>,IP.ADDRESS.OF.NAGIOS
> >   cps = 100 10
> >   instances   = 300
> > }
> >
> >
> > Good luck!
> >
> > Mark Young
> > ___
> > Nagios Enterprises, LLC
> > Web:www.nagios.com <http://www.nagios.com>
> >
> >
> >
> -
> > This SF.Net email is sponsored by the Moblin Your Move
> Developer&#

Re: [Nagios-users] [solved] Can I group particular process from all servers ?

2008-09-02 Thread J. Bakshi
J. Bakshi wrote:
> Hi list,
>
> Hope all are well.
> I have set nagios at my local machine and nrpe on remote servers to
> monitor servers and till now everything is going well except one problem
> ( socket timeout ). Any ways I like to make groups of particular
> services. Say making a group which will monitor only the SSH services
> from 10
> servers. Similarly a group of POP and so on. Is it possible in nagios ?
> thanks
>
>   

Got it.  define servicegroup is  the required template

thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Can I group particular process from all servers ?

2008-09-02 Thread J. Bakshi
Hi list,

Hope all are well.
I have set nagios at my local machine and nrpe on remote servers to
monitor servers and till now everything is going well except one problem
( socket timeout ). Any ways I like to make groups of particular
services. Say making a group which will monitor only the SSH services
from 10
servers. Similarly a group of POP and so on. Is it possible in nagios ?
thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Mark Young wrote:
> On Sep 2, 2008, at 9:44 AM, J. Bakshi wrote:
>
>   
>> J. Bakshi wrote:
>> 
>>> Alex Dehaini wrote:
>>>
>>>   
>>>> Dude,
>>>>
>>>> I am assisting with nagios not your firewall. Read your firewall  
>>>> docs
>>>> very well. Remember to always read the documentation carefully  
>>>> before
>>>> requesting for assistance that are already in the docs.
>>>>
>>>> 
>>> The nrpe docs mentions abt the firewall rules which I have already  
>>> used,
>>> but no luck :-(
>>>
>>>   
>> Not firewall; I have solved the problem by incresing time with -t
>> 
>
>  From what you are describing I believe that this is a problem with  
> your xinetd nrpe configuration.  I run into this problem a lot.  By  
> default Xinet will only allow so many instances per second that if  
> exceeded xinet will refuse connects for certain amount of time.   
> Basically your remote server thinks that it is being DDoS.  Increasing  
> the time is only covering a symptom.
>   

Hi Mark,

Thanks for your hints and configuration.
I'm not using xinetd. I'm using nrpe daemon instead.
May be my firewall is responsible for the problem but I'm not sure
Even after increasing the time with  -t 20 the commands still report
socket time out :-(

Here is the rule set I have in my firewall. May be this create the problem

## SYN-FLOODING PROTECTION
# This rule maximises the rate of incoming connections. In order to do
this we divert tcp
# packets with the SYN bit set off to a user-defined chain. Up to
limit-burst connections
# can arrive in 1/limit seconds . in this case 4 connections in one
second. After this, one
# of the burst is regained every second and connections are allowed
again. The default limit
# is 3/hour. The default limit burst is 5.
#
iptables -N syn-flood
iptables -A INPUT -i $IFACE -p tcp --syn -j syn-flood
iptables -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
iptables -A syn-flood -j DROP


with regards
 
> You can change this globally or per service by adding these lines in  
> ether /etc/xinetd.conf or /etc/xinetd.d/nrpe.  You can play with the  
> exact numbers you need.  I believe the default is 50 connections a  
> second.
>
> # CPS where 100 connection per second with a timepout of 10 seconds if  
> exceded.
>
> # Max number of instances running
>
> [EMAIL PROTECTED] xinetd.d]# more nrpe
> # default: on
> # description: NRPE (Nagios Remote Plugin Executor)
> service nrpe
> {
>   flags   = REUSE
>  socket_type = stream
>   port= 5666
>   wait= no
>  user= nagios
>   group   = nagios
>   server  = /usr/local/nagios/bin/nrpe
>  server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
>   log_on_failure  += USERID
>  disable = no
>   only_from   = 127.0.0.1,IP.ADDRESS.OF.NAGIOS
>   cps = 100 10
>   instances   = 300
> }
>
>
> Good luck!
>
> Mark Young
> ___
> Nagios Enterprises, LLC
> Web:www.nagios.com
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
J. Bakshi wrote:
> Alex Dehaini wrote:
>   
>> Dude,
>>
>> I am assisting with nagios not your firewall. Read your firewall docs
>> very well. Remember to always read the documentation carefully before
>> requesting for assistance that are already in the docs.
>> 
>
> The nrpe docs mentions abt the firewall rules which I have already used,
> but no luck :-(
>   

Not firewall; I have solved the problem by incresing time with -t

example

## part of my local host definition file
#

define service{
   use   service ; Name of service template to use
   host_name hosteurope_server
   service_description   Mysql
   check_command check_nrpe!60650!check_Mysql -t 20
  }
#

thanks


>> If you want someone to assist you professionally, then you have to pay
>> for their time.
>> 
>
> I understand,
> thanks so far for your suggestion, guidance
>
>   
>> Lex
>>
>> On Tue, Sep 2, 2008 at 1:24 PM, J. Bakshi <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> Alex Dehaini wrote:
>> > temporarily all access from nagios server to access these servers
>>
>> Did it and no  CHECK_NRPE: Socket timeout after 10 seconds.
>> That means some thing in firewall ?
>> But then why it blocking some and not all nrpe commands ?
>> Please  enlighten me what else should I add in firewall to resolve
>> this problem ?
>> thanks
>> >
>> > On Tue, Sep 2, 2008 at 1:14 PM, J. Bakshi
>> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>> wrote:
>> >
>> > Alex Dehaini wrote:
>> > > once you login with ssh and run them at the command line
>> that is
>> > fine.
>> > > The issue now is nagios times out when connecting to these
>> servers.
>> > > Any firewalls?
>> >
>> > Yes I have firewall since these are production server but I
>> have rules
>> > for nagios too
>> >
>> > ## NRPE port 
>> > iptables -A INPUT -i $IFACE -p tcp -m tcp --dport 5666 -j ACCEPT
>> >
>> > thanks for your reply
>> >
>> > >
>> > > Lex
>> > >
>> > > On Tue, Sep 2, 2008 at 12:48 PM, J. Bakshi
>> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>> > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>>> wrote:
>> > >
>> > > Alex Dehaini wrote:
>> > > > Run the commands interactively and see if you get socket
>> > errors? You
>> > > > will have socket errors once you can't connect to
>> the machine.
>> > > >
>> > >
>> > > I have already run the command at the remote server
>> through (SSH
>> > > login)
>> > > And all the commands are running quite normal.
>> > >
>> > > I am sorry but how can I run command *interactively* ?
>> > > kindly enlighten me.
>> > > thanks
>> > > > Lex
>> > > >
>> > > > On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi
>> > > <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>>
>> > > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>
>> > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>>>> wrote:
>> > >

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> Dude,
>
> I am assisting with nagios not your firewall. Read your firewall docs
> very well. Remember to always read the documentation carefully before
> requesting for assistance that are already in the docs.

The nrpe docs mentions abt the firewall rules which I have already used,
but no luck :-(
>
> If you want someone to assist you professionally, then you have to pay
> for their time.

I understand,
thanks so far for your suggestion, guidance

>
> Lex
>
> On Tue, Sep 2, 2008 at 1:24 PM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > temporarily all access from nagios server to access these servers
>
> Did it and no  CHECK_NRPE: Socket timeout after 10 seconds.
> That means some thing in firewall ?
> But then why it blocking some and not all nrpe commands ?
> Please  enlighten me what else should I add in firewall to resolve
>     this problem ?
> thanks
> >
> > On Tue, Sep 2, 2008 at 1:14 PM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> > > once you login with ssh and run them at the command line
> that is
> > fine.
> > > The issue now is nagios times out when connecting to these
> servers.
> > > Any firewalls?
> >
> > Yes I have firewall since these are production server but I
> have rules
> > for nagios too
> >
> > ## NRPE port 
>     > iptables -A INPUT -i $IFACE -p tcp -m tcp --dport 5666 -j ACCEPT
> >
> > thanks for your reply
> >
> > >
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 12:48 PM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Alex Dehaini wrote:
> > > > Run the commands interactively and see if you get socket
> > errors? You
> > > > will have socket errors once you can't connect to
> the machine.
> > > >
> > >
> > > I have already run the command at the remote server
> through (SSH
> > > login)
> > > And all the commands are running quite normal.
> > >
> > > I am sorry but how can I run command *interactively* ?
> > > kindly enlighten me.
> > > thanks
> > > > Lex
> > > >
> > > > On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi
> > > <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>
> > > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>>> wrote:
> >     >     >
> > > > Alex Dehaini wrote:
> > > > > Are all commands above giving you scoket time
> out or
> > just some
> > > > of them?
> > > >
> > > > At a time some of them are giving this error and
> next
> > time ,
> > > rest
> > > > of the
> > > > commands generates the error but the others
> becomes normal
> > > from its
> > > > previous state
> > > >
> > > >
> > > > >
> > > > > Lex
> > > > >
> > > > > On Tue, 

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> temporarily all access from nagios server to access these servers

Did it and no  CHECK_NRPE: Socket timeout after 10 seconds.
That means some thing in firewall ?
But then why it blocking some and not all nrpe commands ?
Please  enlighten me what else should I add in firewall to resolve
this problem ?
thanks
>
> On Tue, Sep 2, 2008 at 1:14 PM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > once you login with ssh and run them at the command line that is
> fine.
> > The issue now is nagios times out when connecting to these servers.
> > Any firewalls?
>
> Yes I have firewall since these are production server but I have rules
> for nagios too
>
> ## NRPE port 
> iptables -A INPUT -i $IFACE -p tcp -m tcp --dport 5666 -j ACCEPT
>
> thanks for your reply
>
> >
> > Lex
> >
> > On Tue, Sep 2, 2008 at 12:48 PM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> > > Run the commands interactively and see if you get socket
> errors? You
> > > will have socket errors once you can't connect to the machine.
> > >
> >
> > I have already run the command at the remote server through (SSH
> > login)
> > And all the commands are running quite normal.
>     >
> > I am sorry but how can I run command *interactively* ?
> > kindly enlighten me.
> > thanks
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Alex Dehaini wrote:
> > > > Are all commands above giving you scoket time out or
> just some
> > > of them?
> > >
> >     > At a time some of them are giving this error and next
> time ,
> > rest
> > > of the
> > > commands generates the error but the others becomes normal
> > from its
> > > previous state
> > >
> > >
> > > >
> > > > Lex
> > > >
> > > > On Tue, Sep 2, 2008 at 12:20 PM, J. Bakshi
> > > <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>
> > > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>>> wrote:
> > > >
> > > > Alex Dehaini wrote:
> > > >
> > > > Here ae the commands I'm using
> > > >
> > > > # nrpe.cfg file
> > > > #
> > > > # Disk space
> > > >
> command[check_space]=/usr/lib/nagios/plugins/check_disk
> > > check_disk -w
> > > > 40% -c 20% -p / -u GB
> > > > #Mailq
> > > >
> > command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w
> > > 10 -c
> > > > 15 -t 10
> > > > #SSH
> > > > command[check_SSH]=/usr/lib/nagios/plugins/check_ssh
> >  localhost
> > > > #HTTP
> > > >
> command[check_web]=/usr/lib/nagios/plugins/check_http -H
> > > localhost  -p
> > > > 80 -w

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> once you login with ssh and run them at the command line that is fine.
> The issue now is nagios times out when connecting to these servers.
> Any firewalls?

Yes I have firewall since these are production server but I have rules
for nagios too

## NRPE port 
iptables -A INPUT -i $IFACE -p tcp -m tcp --dport 5666 -j ACCEPT

thanks for your reply

>
> Lex
>
> On Tue, Sep 2, 2008 at 12:48 PM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > Run the commands interactively and see if you get socket errors? You
> > will have socket errors once you can't connect to the machine.
> >
>
> I have already run the command at the remote server through (SSH
> login)
> And all the commands are running quite normal.
>
> I am sorry but how can I run command *interactively* ?
> kindly enlighten me.
> thanks
> > Lex
> >
> > On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> > > Are all commands above giving you scoket time out or just some
> > of them?
> >
> > At a time some of them are giving this error and next time ,
> rest
> > of the
> > commands generates the error but the others becomes normal
> from its
> > previous state
> >
> >
> > >
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 12:20 PM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Alex Dehaini wrote:
> > >
> > > Here ae the commands I'm using
> > >
> > > # nrpe.cfg file
> > > #
> > > # Disk space
> > > command[check_space]=/usr/lib/nagios/plugins/check_disk
> > check_disk -w
> > > 40% -c 20% -p / -u GB
> > > #Mailq
> > >
> command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w
> > 10 -c
> > > 15 -t 10
> > > #SSH
> > > command[check_SSH]=/usr/lib/nagios/plugins/check_ssh
>  localhost
> > > #HTTP
> > > command[check_web]=/usr/lib/nagios/plugins/check_http -H
> > localhost  -p
> > > 80 -w 2 -c 4
> > >
> > > #IMAPS
> > > /usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S
> > -w 5 -c 8
> > >
> > > #POP3s
> > > /usr/lib/nagios/plugins/check_pop -H localhost  -p 995
>  -w 5
> > -c 8
> > > -t 10 -S
> > >
> > > thanks
> > >
> > >
> > > > socket time out means the plugin timed out after a
> specific
> > > number of
> > > > time. Show use the command you are using?
> > > >
> > > > Lex
> > > >
> > > > On Tue, Sep 2, 2008 at 11:59 AM, J. Bakshi
> > > <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>
> > > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>>> wrote:
> > > >

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> Run the commands interactively and see if you get socket errors? You
> will have socket errors once you can't connect to the machine.
>

I have already run the command at the remote server through (SSH login)
And all the commands are running quite normal.

I am sorry but how can I run command *interactively* ?
kindly enlighten me.
thanks
> Lex
>
> On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > Are all commands above giving you scoket time out or just some
> of them?
>
> At a time some of them are giving this error and next time , rest
> of the
> commands generates the error but the others becomes normal from its
> previous state
>
>
> >
> > Lex
> >
> > On Tue, Sep 2, 2008 at 12:20 PM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> >
> > Here ae the commands I'm using
> >
> > # nrpe.cfg file
> > #
> > # Disk space
> > command[check_space]=/usr/lib/nagios/plugins/check_disk
> check_disk -w
> > 40% -c 20% -p / -u GB
> > #Mailq
> > command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w
> 10 -c
> > 15 -t 10
> > #SSH
> > command[check_SSH]=/usr/lib/nagios/plugins/check_ssh  localhost
> > #HTTP
> > command[check_web]=/usr/lib/nagios/plugins/check_http -H
> localhost  -p
> > 80 -w 2 -c 4
> >
> > #IMAPS
> > /usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S
> -w 5 -c 8
> >
> > #POP3s
> > /usr/lib/nagios/plugins/check_pop -H localhost  -p 995  -w 5
> -c 8
> > -t 10 -S
> >
> > thanks
> >
> >
> > > socket time out means the plugin timed out after a specific
> > number of
> > > time. Show use the command you are using?
> > >
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 11:59 AM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Dear list,
> > >
> > > Now I am monitoring some servers with nagios and nrpe.
> > > But some times there is an error msg as "critical" and
> it is
> > >
> > > **  CHECK_NRPE: Socket timeout after 10 seconds.
> **
> > >
> > > How can I fix this ?
> > >
> > > will -t help ?
> > > thanks
> > >
> > > --
> > > ~~
> > > Joydeep Bakshi, Linux System Admin
> > > Kolkatainfoservices Pvt Ltd,
> > > 23A Royd Street, Kolkata 700016, India
> > > Work Phone 91 033 40014784
> > > http://infoservices.in/
> > > ~~~
> > >
> > >
> > >
> >
> -
> > > This SF.Net email is sponsored by the Moblin Your Move
> > Developer's
> > > challenge
> > > Build the coolest Linux based applications with Moblin
> SDK & win
> > > great prizes
> > > Grand prize is a trip for two to an Open Source event
> > anywhere in
> > > the world
> > >
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> > <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
> > >
> <http://moblin-contest

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> Are all commands above giving you scoket time out or just some of them?

At a time some of them are giving this error and next time , rest of the
commands generates the error but the others becomes normal from its
previous state


>
> Lex
>
> On Tue, Sep 2, 2008 at 12:20 PM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
>
> Here ae the commands I'm using
>
> # nrpe.cfg file
> #
> # Disk space
> command[check_space]=/usr/lib/nagios/plugins/check_disk check_disk -w
> 40% -c 20% -p / -u GB
> #Mailq
> command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w 10 -c
> 15 -t 10
> #SSH
> command[check_SSH]=/usr/lib/nagios/plugins/check_ssh  localhost
> #HTTP
> command[check_web]=/usr/lib/nagios/plugins/check_http -H localhost  -p
> 80 -w 2 -c 4
>
> #IMAPS
> /usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S -w 5 -c 8
>
> #POP3s
> /usr/lib/nagios/plugins/check_pop -H localhost  -p 995  -w 5 -c 8
> -t 10 -S
>
> thanks
>
>
> > socket time out means the plugin timed out after a specific
>     number of
> > time. Show use the command you are using?
> >
> > Lex
> >
> > On Tue, Sep 2, 2008 at 11:59 AM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Dear list,
> >
> > Now I am monitoring some servers with nagios and nrpe.
> > But some times there is an error msg as "critical" and it is
> >
> > **  CHECK_NRPE: Socket timeout after 10 seconds. **
> >
> > How can I fix this ?
> >
> > will -t help ?
> > thanks
> >
> > --
> > ~~
> > Joydeep Bakshi, Linux System Admin
> > Kolkatainfoservices Pvt Ltd,
> > 23A Royd Street, Kolkata 700016, India
> > Work Phone 91 033 40014784
> > http://infoservices.in/
> > ~~~
> >
> >
> >
> -
> > This SF.Net email is sponsored by the Moblin Your Move
> Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> > great prizes
> > Grand prize is a trip for two to an Open Source event
> anywhere in
> > the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> > <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> <mailto:Nagios-users@lists.sourceforge.net>
> > <mailto:Nagios-users@lists.sourceforge.net
> <mailto:Nagios-users@lists.sourceforge.net>>
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and
> OS when
> > reporting any issue.
> > ::: Messages without supporting info will risk being sent to
> /dev/null
> >
> >
> >
> >
> > --
> > Alex Dehaini
> > Developer
> > Site - www.alexdehaini.com <http://www.alexdehaini.com>
> <http://www.alexdehaini.com>
> > Email - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>
>
> --
> ~~
> Joydeep Bakshi, Linux System Admin
> Kolkatainfoservices Pvt Ltd,
> 23A Royd Street, Kolkata 700016, India
> Work Phone 91 033 40014784
> http://infoservices.in/
> ~~~
>
>
>
>
> -- 
> Alex Dehaini
> Developer
> Site - www.alexdehaini.com <http://www.alexdehaini.com>
> Email - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Ro

Re: [Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:

Here ae the commands I'm using

# nrpe.cfg file
#
# Disk space
command[check_space]=/usr/lib/nagios/plugins/check_disk check_disk -w
40% -c 20% -p / -u GB
#Mailq
command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w 10 -c 15 -t 10
#SSH
command[check_SSH]=/usr/lib/nagios/plugins/check_ssh  localhost
#HTTP
command[check_web]=/usr/lib/nagios/plugins/check_http -H localhost  -p
80 -w 2 -c 4

#IMAPS
/usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S -w 5 -c 8

#POP3s
/usr/lib/nagios/plugins/check_pop -H localhost  -p 995  -w 5 -c 8 -t 10 -S

thanks


> socket time out means the plugin timed out after a specific number of
> time. Show use the command you are using?
>
> Lex
>
> On Tue, Sep 2, 2008 at 11:59 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Dear list,
>
> Now I am monitoring some servers with nagios and nrpe.
> But some times there is an error msg as "critical" and it is
>
> **  CHECK_NRPE: Socket timeout after 10 seconds. **
>
> How can I fix this ?
>
> will -t help ?
> thanks
>
> --
> ~~
> Joydeep Bakshi, Linux System Admin
> Kolkatainfoservices Pvt Ltd,
> 23A Royd Street, Kolkata 700016, India
> Work Phone 91 033 40014784
> http://infoservices.in/
> ~~~
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> <mailto:Nagios-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
>
> -- 
> Alex Dehaini
> Developer
> Site - www.alexdehaini.com <http://www.alexdehaini.com>
> Email - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.

2008-09-02 Thread J. Bakshi
Dear list,

Now I am monitoring some servers with nagios and nrpe.
But some times there is an error msg as "critical" and it is

**  CHECK_NRPE: Socket timeout after 10 seconds. **

How can I fix this ?

will -t help ?
thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
J. Bakshi wrote:
> Alex Dehaini wrote:
>   
>> You didn't get my question. When you use check_tcp to check your smtp
>> and ftps services, does it work?
>>
>> 
>
> Yes, this is a production server
>   

and check_tcp was also successful for smtp and ftp

>
>   
>> Lex
>>
>> On Tue, Sep 2, 2008 at 10:31 AM, J. Bakshi <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> Alex Dehaini wrote:
>> > So, check_tcp worked for smtp? but not for ftps?
>>
>> Exactly.
>>
>> 1> SMTPS is not working at all with check_smtp  :-(
>>
>> 2> chekck_ftp is working without -S !!!  but not with -S ;
>> though it is not possible to loginto my ftpserver ( using lftp,
>> filezilla)
>>
>>
>>
>> >
>> > On Tue, Sep 2, 2008 at 10:15 AM, J. Bakshi
>> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>> wrote:
>> >
>> > Alex Dehaini wrote:
>> > > Use check_tcp or check_udp to see if you can connect to
>> these ports
>> >
>> > Here is for ftp port
>> > ~~~
>> >
>> > ./check_tcp -H localhost -p 60021
>> > TCP OK - 0.003 second response time on port 60021
>> > |time=0.002922s;0.00;0.00;0.00;10.00
>> >
>> > ./check_tcp -H localhost -p 60021 -S
>> > CRITICAL - Cannot make  SSL connection 15556:error:140770FC:SSL
>> > routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
>> >
>> >
>> > Here is for smtps
>> > ~~~
>> >
>> > ./check_tcp -H localhost -p 465
>> > TCP OK - 0.001 second response time on port 465
>> > |time=0.000886s;0.00;0.00;0.00;10.00
>> >
>> > ./check_tcp -H localhost -p 465 -S
>> > TCP OK - 0.119 second response time on port 465
>> > |time=0.118984s;0.00;0.00;0.00;10.00
>> >
>> >
>> > thanks
>> > >
>> > > Lex
>> > >
>> > > On Tue, Sep 2, 2008 at 9:42 AM, J. Bakshi
>> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>> > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>>> wrote:
>> > >
>> > > Alex Dehaini wrote:
>> > > > Your smtp server and your ftp server, are they
>> different from
>> > > your pop
>> > > > and imap server?
>> > > >
>> > > > Your imaps and pop3s are connected locally i.e. on the
>> > nagios server
>> > > > if I am correct? Your ftp and smtp are not. Is this
>> correct?
>> > > >
>> > >
>> > > Hi Alex,
>> > >
>> > > My ftp (vsftpd with ssl support), postfix, Cyrus all
>> are in
>> > the same
>> > > server where nrpe is running.
>> > > thanks
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > > Lex
>> > > >
>> > > > On Tue, Sep 2, 2008 at 9:26 AM, J. Bakshi
>> > > <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>>
>> > > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>
>> > > <mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>
>> > <mailto:[EMAIL PROTECTED]
>>

Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> You didn't get my question. When you use check_tcp to check your smtp
> and ftps services, does it work?
>

Yes, this is a production server


> Lex
>
> On Tue, Sep 2, 2008 at 10:31 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > So, check_tcp worked for smtp? but not for ftps?
>
> Exactly.
>
> 1> SMTPS is not working at all with check_smtp  :-(
>
> 2> chekck_ftp is working without -S !!!  but not with -S ;
> though it is not possible to loginto my ftpserver ( using lftp,
> filezilla)
>
>
>
> >
> > On Tue, Sep 2, 2008 at 10:15 AM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> > > Use check_tcp or check_udp to see if you can connect to
> these ports
> >
> > Here is for ftp port
> > ~~~
> >
> > ./check_tcp -H localhost -p 60021
> > TCP OK - 0.003 second response time on port 60021
> > |time=0.002922s;0.00;0.00;0.00;10.00
> >
> > ./check_tcp -H localhost -p 60021 -S
> > CRITICAL - Cannot make  SSL connection 15556:error:140770FC:SSL
> > routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
> >
> >
> > Here is for smtps
> > ~~~
> >
> > ./check_tcp -H localhost -p 465
> > TCP OK - 0.001 second response time on port 465
> > |time=0.000886s;0.00;0.00;0.00;10.00
> >
> > ./check_tcp -H localhost -p 465 -S
> > TCP OK - 0.119 second response time on port 465
> > |time=0.118984s;0.00;0.00;0.00;10.00
> >
> >
> > thanks
> > >
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 9:42 AM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Alex Dehaini wrote:
> > > > Your smtp server and your ftp server, are they
> different from
> > > your pop
> > > > and imap server?
> > > >
> > > > Your imaps and pop3s are connected locally i.e. on the
> > nagios server
> > > > if I am correct? Your ftp and smtp are not. Is this
> correct?
> > > >
> > >
> > > Hi Alex,
> > >
> > > My ftp (vsftpd with ssl support), postfix, Cyrus all
> are in
> > the same
> > > server where nrpe is running.
> > > thanks
> > >
> > >
> > >
> > >
> > >
> > > > Lex
> > > >
> > > > On Tue, Sep 2, 2008 at 9:26 AM, J. Bakshi
> > > <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>
> > >     > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>>> wrote:
> > > >
> > > > Arno Lehmann wrote:
> > > > > Hello,
> > > > >
> > > > > please respond to the list.
> > > > >
> > > > > 02.09.2008 10:44, J. Bakshi wrote:
> > > > >
> > > > >> Arno Lehmann wrote:
> > > > &

Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> So, check_tcp worked for smtp? but not for ftps?

Exactly.

1> SMTPS is not working at all with check_smtp  :-(

2> chekck_ftp is working without -S !!!  but not with -S ;
though it is not possible to loginto my ftpserver ( using lftp, filezilla)



>
> On Tue, Sep 2, 2008 at 10:15 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > Use check_tcp or check_udp to see if you can connect to these ports
>
> Here is for ftp port
> ~~~
>
> ./check_tcp -H localhost -p 60021
> TCP OK - 0.003 second response time on port 60021
> |time=0.002922s;0.00;0.00;0.00;10.00
>
> ./check_tcp -H localhost -p 60021 -S
> CRITICAL - Cannot make  SSL connection 15556:error:140770FC:SSL
> routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
>
>
> Here is for smtps
> ~~~
>
> ./check_tcp -H localhost -p 465
> TCP OK - 0.001 second response time on port 465
> |time=0.000886s;0.00;0.00;0.00;10.00
>
> ./check_tcp -H localhost -p 465 -S
> TCP OK - 0.119 second response time on port 465
> |time=0.118984s;0.00;0.000000;0.00;10.00
>
>
> thanks
> >
> > Lex
> >
> > On Tue, Sep 2, 2008 at 9:42 AM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Alex Dehaini wrote:
> > > Your smtp server and your ftp server, are they different from
> > your pop
> > > and imap server?
> > >
> > > Your imaps and pop3s are connected locally i.e. on the
> nagios server
> > > if I am correct? Your ftp and smtp are not. Is this correct?
> > >
> >
> > Hi Alex,
>     >
> > My ftp (vsftpd with ssl support), postfix, Cyrus all are in
> the same
> > server where nrpe is running.
> > thanks
> >
> >
> >
> >
> >
> > > Lex
> > >
> > > On Tue, Sep 2, 2008 at 9:26 AM, J. Bakshi
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>>> wrote:
> > >
> > > Arno Lehmann wrote:
> > > > Hello,
> > > >
> > > > please respond to the list.
> > > >
> > > > 02.09.2008 10:44, J. Bakshi wrote:
> > > >
> > > >> Arno Lehmann wrote:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> 02.09.2008 09:37, J. Bakshi wrote:
> > > >>>
> > > >>>> Dear list,
> > > >>>>
> > > >>>> I have installed
> > > >>>>
> > > >>>> nagios-nrpe   2.0
> > > >>>> nagios-plugins  1.4
> > > >>>> nagios-plugins-extras 1.4
> > > >>>>
> > > >>>> How can I check smtps, ldaps, pop3s, imaps  with
> nrpe ?
> > > >>>> the default check_smtp ; check_imap etc can't
> check the SSL
> > > version of
> > > >>>> the services.
> > > >>>>
> > > >>> Mine can; call them with -h for help and read the
> output. I
> > > usually
> > > >>> use the -S swich plus, as needed, -p for the
> target port.
> > > >>>
> > > >>> Example output:
> > > >>> $ /usr/local/nagios3/libexec/check_imap -H
> 192.168.1.2 <http://192.168.1.2>
> > <http://192.168.1.2>
> > > <http://192.168.1.2> -S -p 993 -D 12
> > > >>> OK - Certificate will expire on 04/27/2009 21:13.
> > > >>

Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> Use check_tcp or check_udp to see if you can connect to these ports

Here is for ftp port
~~~

./check_tcp -H localhost -p 60021
TCP OK - 0.003 second response time on port 60021
|time=0.002922s;0.00;0.00;0.00;10.00

./check_tcp -H localhost -p 60021 -S
CRITICAL - Cannot make  SSL connection 15556:error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:


Here is for smtps
~~~

./check_tcp -H localhost -p 465
TCP OK - 0.001 second response time on port 465
|time=0.000886s;0.00;0.00;0.00;10.00

./check_tcp -H localhost -p 465 -S
TCP OK - 0.119 second response time on port 465
|time=0.118984s;0.00;0.00;0.00;10.00


thanks
>
> Lex
>
> On Tue, Sep 2, 2008 at 9:42 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Alex Dehaini wrote:
> > Your smtp server and your ftp server, are they different from
> your pop
> > and imap server?
> >
> > Your imaps and pop3s are connected locally i.e. on the nagios server
> > if I am correct? Your ftp and smtp are not. Is this correct?
> >
>
> Hi Alex,
>
> My ftp (vsftpd with ssl support), postfix, Cyrus all are in the same
> server where nrpe is running.
> thanks
>
>
>
>
>
> > Lex
> >
> > On Tue, Sep 2, 2008 at 9:26 AM, J. Bakshi
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > <mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>> wrote:
> >
> > Arno Lehmann wrote:
> > > Hello,
> > >
> > > please respond to the list.
> > >
> > > 02.09.2008 10:44, J. Bakshi wrote:
> > >
> > >> Arno Lehmann wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> 02.09.2008 09:37, J. Bakshi wrote:
> > >>>
> > >>>> Dear list,
> > >>>>
> > >>>> I have installed
> > >>>>
> > >>>> nagios-nrpe   2.0
> > >>>> nagios-plugins  1.4
> > >>>> nagios-plugins-extras 1.4
> > >>>>
> > >>>> How can I check smtps, ldaps, pop3s, imaps  with nrpe ?
> > >>>> the default check_smtp ; check_imap etc can't check the SSL
> > version of
> > >>>> the services.
> > >>>>
> > >>> Mine can; call them with -h for help and read the output. I
> > usually
> > >>> use the -S swich plus, as needed, -p for the target port.
> > >>>
> > >>> Example output:
> > >>> $ /usr/local/nagios3/libexec/check_imap -H 192.168.1.2
> <http://192.168.1.2>
> > <http://192.168.1.2> -S -p 993 -D 12
> > >>> OK - Certificate will expire on 04/27/2009 21:13.
> > >>> IMAP OK - 0.060 second response time on port 993 [* OK
> IMAP4 Ready
> > >>> balrog.privat.lehleute.de
> <http://balrog.privat.lehleute.de> <http://balrog.privat.lehleute.de>
> > 0001b1a4]|time=0.059891s;;;0.00;10.00
> > >>>
> > >>>
> > >> Hi Arno,
> > >>
> > >> first of all thanks for your kind response. I have also found
> > the "-S"
> > >> option but the story is different here and it is
> > >> negative :-(
> > >>
> > >> here is the nmap output which proves the required port
> are open
> > >>
> > >
> > > It does not actually prove the services are listening on
> localhost,
> > > and that access is not filtered, for example by hosts files.
> > >
> > >
> > >> PORT STATE SERVICE
> > >> 25/tcp   open  smtp
> > >> 80/tcp   open  http
> > >> 143/tcp  open  imap
> > >> 389/tcp  open  ldap
> > >> 443/tcp  open  https
> > >> 465/tcp  open  smtps
> > >> 993/tcp  open  imaps
> > >> 995/tcp  open  pop3s
> > >> 1234/tcp open  hotline
> >

Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Alex Dehaini wrote:
> Your smtp server and your ftp server, are they different from your pop
> and imap server?
>
> Your imaps and pop3s are connected locally i.e. on the nagios server
> if I am correct? Your ftp and smtp are not. Is this correct?
>

Hi Alex,

My ftp (vsftpd with ssl support), postfix, Cyrus all are in the same
server where nrpe is running.
thanks





> Lex
>
> On Tue, Sep 2, 2008 at 9:26 AM, J. Bakshi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Arno Lehmann wrote:
> > Hello,
> >
> > please respond to the list.
> >
> > 02.09.2008 10:44, J. Bakshi wrote:
> >
>     >> Arno Lehmann wrote:
> >>
> >>> Hi,
> >>>
> >>> 02.09.2008 09:37, J. Bakshi wrote:
> >>>
> >>>> Dear list,
> >>>>
> >>>> I have installed
> >>>>
> >>>> nagios-nrpe   2.0
> >>>> nagios-plugins  1.4
> >>>> nagios-plugins-extras 1.4
> >>>>
> >>>> How can I check smtps, ldaps, pop3s, imaps  with nrpe ?
> >>>> the default check_smtp ; check_imap etc can't check the SSL
> version of
> >>>> the services.
> >>>>
> >>> Mine can; call them with -h for help and read the output. I
> usually
> >>> use the -S swich plus, as needed, -p for the target port.
> >>>
> >>> Example output:
> >>> $ /usr/local/nagios3/libexec/check_imap -H 192.168.1.2
> <http://192.168.1.2> -S -p 993 -D 12
> >>> OK - Certificate will expire on 04/27/2009 21:13.
> >>> IMAP OK - 0.060 second response time on port 993 [* OK IMAP4 Ready
> >>> balrog.privat.lehleute.de <http://balrog.privat.lehleute.de>
> 0001b1a4]|time=0.059891s;;;0.00;10.00
> >>>
> >>>
> >> Hi Arno,
> >>
> >> first of all thanks for your kind response. I have also found
> the "-S"
> >> option but the story is different here and it is
> >> negative :-(
> >>
> >> here is the nmap output which proves the required port are open
> >>
> >
> > It does not actually prove the services are listening on localhost,
> > and that access is not filtered, for example by hosts files.
> >
> >
> >> PORT STATE SERVICE
> >> 25/tcp   open  smtp
> >> 80/tcp   open  http
> >> 143/tcp  open  imap
> >> 389/tcp  open  ldap
> >> 443/tcp  open  https
> >> 465/tcp  open  smtps
> >> 993/tcp  open  imaps
> >> 995/tcp  open  pop3s
> >> 1234/tcp open  hotline
> >> 2000/tcp open  callbook
> >> 3306/tcp open  mysql
> >>
> >> more important I can use the SSL enabled services, like pop3s ,
> smtps etc...
> >>
> >> If I check with check_smtp I get the following
> >>
> >> /usr/lib/nagios/plugins/check_smtp -H localhost  -p 465 -S  -v
> >> CRITICAL - Socket timeout after 10 seconds
> >>
> >
> > Check with the ip address that is usually used - it's quite possible
> > the service is not bound to localhost.
> >
> >
> >> And here is the check fir ftp :-(
> >>
> >> /usr/lib/nagios/plugins/check_ftp -H localhost  -p 60021 -S  -v
> >> CRITICAL - Cannot make  SSL connection 13948:error:140770FC:SSL
> >> routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
> >>
> >> Plese note I am practically using ftps, smtps, pop3s
> >>
> >> I have no clue really.
> >> Hope you can enlighten me to point out my mistake.
> >>
> >
> > Try what I suggested... that's what I'd do now.
> >
> > Arno
> >
>
> Dear Arno and Alex,
>
> thanks a lot for your kind guidance.
>
> Arno, I have also checked with IP but no success.
>
> Here is some more feedback which you can find interesting
>
>  IMAPS successful ##
>
> /usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S -w 5 -c
> 8 -t 10
> IMAP OK - 0.099 second response time on port 993 [* OK  Cyrus IMAP4
> v2.2.12 server ready]
> |time=0.098621s;5.00;8.00;0.00;10.00
&g

Re: [Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Arno Lehmann wrote:
> Hello,
>
> please respond to the list.
>
> 02.09.2008 10:44, J. Bakshi wrote:
>   
>> Arno Lehmann wrote:
>> 
>>> Hi,
>>>
>>> 02.09.2008 09:37, J. Bakshi wrote:
>>>   
>>>> Dear list,
>>>>
>>>> I have installed
>>>>
>>>> nagios-nrpe   2.0
>>>> nagios-plugins  1.4
>>>> nagios-plugins-extras 1.4
>>>>
>>>> How can I check smtps, ldaps, pop3s, imaps  with nrpe ?
>>>> the default check_smtp ; check_imap etc can't check the SSL version of
>>>> the services.
>>>> 
>>> Mine can; call them with -h for help and read the output. I usually
>>> use the -S swich plus, as needed, -p for the target port.
>>>
>>> Example output:
>>> $ /usr/local/nagios3/libexec/check_imap -H 192.168.1.2 -S -p 993 -D 12
>>> OK - Certificate will expire on 04/27/2009 21:13.
>>> IMAP OK - 0.060 second response time on port 993 [* OK IMAP4 Ready
>>> balrog.privat.lehleute.de 0001b1a4]|time=0.059891s;;;0.00;10.00
>>>
>>>   
>> Hi Arno,
>>
>> first of all thanks for your kind response. I have also found the "-S"
>> option but the story is different here and it is
>> negative :-(
>>
>> here is the nmap output which proves the required port are open
>> 
>
> It does not actually prove the services are listening on localhost, 
> and that access is not filtered, for example by hosts files.
>
>   
>> PORT STATE SERVICE
>> 25/tcp   open  smtp
>> 80/tcp   open  http
>> 143/tcp  open  imap
>> 389/tcp  open  ldap
>> 443/tcp  open  https
>> 465/tcp  open  smtps
>> 993/tcp  open  imaps
>> 995/tcp  open  pop3s
>> 1234/tcp open  hotline
>> 2000/tcp open  callbook
>> 3306/tcp open  mysql
>>
>> more important I can use the SSL enabled services, like pop3s , smtps etc...
>>
>> If I check with check_smtp I get the following
>>
>> /usr/lib/nagios/plugins/check_smtp -H localhost  -p 465 -S  -v
>> CRITICAL - Socket timeout after 10 seconds
>> 
>
> Check with the ip address that is usually used - it's quite possible 
> the service is not bound to localhost.
>
>   
>> And here is the check fir ftp :-(
>>
>> /usr/lib/nagios/plugins/check_ftp -H localhost  -p 60021 -S  -v
>> CRITICAL - Cannot make  SSL connection 13948:error:140770FC:SSL
>> routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:
>>
>> Plese note I am practically using ftps, smtps, pop3s
>>
>> I have no clue really.
>> Hope you can enlighten me to point out my mistake.
>> 
>
> Try what I suggested... that's what I'd do now.
>
> Arno
>   

Dear Arno and Alex,

thanks a lot for your kind guidance.

Arno, I have also checked with IP but no success.

Here is some more feedback which you can find interesting

 IMAPS successful ##

/usr/lib/nagios/plugins/check_imap -H localhost  -p 993 -S -w 5 -c 8 -t 10
IMAP OK - 0.099 second response time on port 993 [* OK  Cyrus IMAP4
v2.2.12 server ready] |time=0.098621s;5.00;8.00;0.00;10.00

 POP3S  successful ##
/usr/lib/nagios/plugins/check_pop -H localhost  -p 995  -w 5 -c 8 -t 10 -S
POP OK - 0.101 second response time on port 995 [+OK lvps87­230­8­228.
Cyrus POP3 v2.2.12 server ready
<[EMAIL PROTECTED]>]
|time=0.101278s;5.00;8.00;0.00;10.00

 SMTPS failed but telnet successful #

/usr/lib/nagios/plugins/check_smtp -H  -p
465 -w 5 -c 8 -t 10 -S
CRITICAL - Socket timeout after 10 seconds

telnet 87.230.8.228 465
Trying 87.230.8.228...
Connected to 87.230.8.228.
Escape character is '^]'.

quit
quit
Connection closed by foreign host.


### FTPS failed but successful by telnet ###33

/usr/lib/nagios/plugins/check_ftp -H -p
60021 -w 5 -c 8 -t 10 -S
CRITICAL - Cannot make  SSL connection 30050:error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:

telnet localhost 60021
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ***This server is configured by Jatasankar***

530 Please login with USER and PASS.

530 Please login with USER and PASS.
quit
221 Goodbye.
Connection closed by foreign host.


Any clue ?
thanks




>   
>> with many thanks
>>
>> 
>>> Arno
>>>
>>>   
>>>> thanks
>>>>
>>>>
>>>> 
>> 
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkat

[Nagios-users] how to check smtps, pop3s, imaps, ldpas withy nrpe ?

2008-09-02 Thread J. Bakshi
Dear list,

I have installed

nagios-nrpe   2.0
nagios-plugins  1.4
nagios-plugins-extras 1.4

How can I check smtps, ldaps, pop3s, imaps  with nrpe ?
the default check_smtp ; check_imap etc can't check the SSL version of
the services.

thanks


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nrpe + System call sent warnings to stderr

2008-09-01 Thread J. Bakshi
Dear list,

yesterday I managed to have a working host definition for one of my
remote servers and it is working :-)
Today I have added two more service definition to check the zombie and
total process on the remote server running nrpe.

But in nagios monitoring the zombie and total process column reports
"System call sent warnings to stderr"
The remote server where nrpe is runnibg has suse 9.3 and the nrpe is
nagios-nrpe-2.0-111.

Could any one suggest me the reason of this error ?
thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with new host defination

2008-09-01 Thread J. Bakshi
Marc Powell wrote:
> On Sep 1, 2008, at 12:24 AM, J. Bakshi wrote:
>
>   
>> Good morning,
>>
>> Hope everyone is well.
>>
>> I am now working to configure my nagios to monitor my remote servers.
>> 
>
>   
>> finally when I reload nagios it throws an error like
>> Running configuration check... FAILED!  Reload aborted.  Check your
>> Nagios configuration.
>>
>> Could any one tell me my mistake ?
>> 
>
> If you run '/path/to/nagios -v /path/to/nagios.cfg' nagios will verify  
> your configuration and notify you of any errors.
>   

Hi Marc,

thanks for your response.
I have finally managed to have a working hist definition.
thanks


> --
> Marc
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_nrpe problem with dynamic ip

2008-09-01 Thread J. Bakshi
Assaf Flatto wrote:
>> Hi Assaf,
>>
>> I am afraid to say, but i can't understand its utility.
>> how this script help the remote nrpe daemon a.k.a  "/etc/nagios/nrpe.cfg"
>> to know the IP of my local machine ? The "allowed_hosts" needs to know the
>> IP of my local machine so that I can use nrpe_check command from my
>> local machine.
>>
>> many thanks
>>
>> 
>
> nrpe is the listening utility on a server waiting requests from the nagios 
> server .
> It has a "access limiter" as to make sure that only one server can query it , 
> that is 
> the "allowed_hosts" directive .
>
> If your nagios ip is changed - and the local machine  ip hasn't , then you 
> need to tell the local 
> machine the Nagios server has a  IP so it will accept the requests from the 
> new ip .
>
> this is done by replacing the nagios server ip in the allowed_hosts directve 
> (you have it as 
> 122.xxx.xxx.xxx) .
>   

Exactly,  I can communicate with the remote nrpe server by replacing the
allowed_hosts directive
at the  "/etc/nagios/nrpe.cfg" file. But as I mentioned before this
demands to change the allowed_hosts
as soon as my local machine's IP ( which is dynamic ) is being change.
I'm looking a solution to overcome this.
Practically the point of allowing limited IPs by allowed_hosts directive
is OK. But buy chance if there is any option to
over ride this, I can also monitor that remote server with out modifying
its "/etc/nagios/nrpe.cfg" after every 2/3 days.


> Assaf
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_nrpe problem with dynamic ip

2008-09-01 Thread J. Bakshi
Assaf Flatto wrote:
> you can write a simple script that query the new dns/ip address of the nagios 
>
>  ping nagios.foo.com |head -1 | awk '{print $3}' |tr -d '(' ')'
>
> this will give the ip ,take the ip and replace that in the nrpe.cfg 
>
> and run the script in the cron every 2 days to make sure it gets the new ip .
>   

Hi Assaf,

I am afraid to say, but i can't understand its utility.
how this script help the remote nrpe daemon a.k.a  "/etc/nagios/nrpe.cfg"
to know the IP of my local machine ? The "allowed_hosts" needs to know the
IP of my local machine so that I can use nrpe_check command from my
local machine.

many thanks

> Assaf
>
> On Monday 01 September 2008 10:20:32 J. Bakshi wrote:
>   
>> Assaf Flatto wrote:
>> 
>>> On Monday 01 September 2008 09:57:30 J. Bakshi wrote:
>>>   
>>>> Hello All,
>>>>
>>>> The remote server where I have installed nrpe, the /etc/nagios/nrpe.cfg
>>>> has allowed_hosts=127.0.0.1,122.161.137.217
>>>>
>>>> 122.161.137.217 is the IP of my local nagios monitoring machine.
>>>> I put this IP after checking my machine by whatismyip.com
>>>> My ISP provides dynamic IP. Is there any way to tell nagios to permit
>>>> nrpe connection from
>>>> all ?
>>>>
>>>> thanks
>>>> 
>>> Is your nagis machine ip changes all the time ?
>>> or is it your devices Ip that is changing ?
>>>   
>> Hi Assaf,
>> thanks for your kind response.
>>
>> yes the local machine where the nagios is installed has dynamic address.
>> The Ip changes after every 2/3 days.
>> Hence I have to change the "allowed_hosts=" parameter accordingly at the
>> remote machine running nrpe daemon.
>> How can I solve this problem ?
>>
>> thanks
>>
>> 
>>> You do not need to tell nagios to permit the connection . you need to
>>> tell the nrpe on all the hosts you are checking that the nagios host's ip
>>> has been changed and has a new .
>>>
>>> As far as i know there is no automated plugin , what you can do is write
>>> a script to query the dns of your nagios and replace the existing IP with
>>> the new result .
>>>
>>> Assaf
>>>
>>>
>>>
>>>
>>> IMPORTANT . this email and the information in it may be confidential,
>>> legally privileged and/or protected by law. It is intended solely for the
>>> use of the person to whom it is addressed. If you are not the intended
>>> recipient, please notify the sender immediately and do not disclose the
>>> contents to any other person, use it for any purpose, or store or copy
>>> the information in any medium. Please also delete all copies of this
>>> email and any attachments from your system.
>>>
>>> We cannot guarantee the security or confidentiality of email
>>> communications. We do not accept any liability for losses or damages that
>>> you may suffer as a result of your receipt of this email including but
>>> not limited to computer service or system failure, access delays or
>>> interruption, data non-delivery or mis-delivery, computer viruses or
>>> other harmful components.
>>>
>>> Copyright in this email and any attachments belong to Select Service
>>> Partner UK Limited. Should you communicate with anyone at Select Service
>>> Partner UK Limited by email, you consent to us monitoring and reading any
>>> such correspondence.
>>>
>>> Nothing in this email shall be taken or read as suggesting, proposing or
>>> relating to any agreement concerted practice or other practice that could
>>> infringe UK or EC competition legislation.
>>>
>>> Select Service Partner UK Limited is a company registered in England and
>>> Wales (company number 05687183) whose registered office is at 1 The
>>> Heights, Brooklands, Weybridge. Surrey. KT13 0NY
>>>
>>>
>>>
>>> -
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge Build the coolest Linux based applications with Moblin SDK &
>>> win great prizes Grand prize is a trip for two to an Open Source event
>>> anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ___
>>> Nagios-users maili

Re: [Nagios-users] Problem with new host defination

2008-09-01 Thread J. Bakshi
J. Bakshi wrote:
> Good morning,
>
> Hope everyone is well.
>
> I am now working to configure my nagios to monitor my remote servers.
>   

Dear all,

I am still fighting with the host definition with out any luck :-(

This time I am using more simple configuration

~~~`
define host{
  name  linux-box ; Name of this
template
  use   generic-host  ; Inherit default
values
  check_period  24x7
  check_interval5
  retry_interval1
  max_check_attempts10
  check_command check-host-alive
  notification_period   24x7
  notification_interval 30
  notification_options  d,r
  contact_groupsadmins
  register  0  ; DONT REGISTER THIS - ITS A
TEMPLATE
  }

define host{
  use   linux-box ; Inherit default values from a template
  host_name remotehost; The name we're giving to this server
  alias Fedora Core 6 ; A longer name for the server
  address   127.0.0.1   ; IP address of the server
  }
~

Could any one sggest me what I am missing actually ???
thanks

> To monitor one of the remote servers I have made a file called  
> "hosteurope.cfg"
> A simple configuration with out and serveice. Just to check coonectivity
>
> ###
> ###
> #
> # TIME PERIODS
> #
> ###
> ###
>
> # This defines a timeperiod where all times are valid for checks,
> # notifications, etc.  The classic "24x7" support nightmare. :-)
>
> define timeperiod{
> timeperiod_name 24x7
> alias   24 Hours A Day, 7 Days A Week
> sunday  00:00-24:00
> monday  00:00-24:00
> tuesday 00:00-24:00
> wednesday   00:00-24:00
> thursday00:00-24:00
> friday  00:00-24:00
> saturday00:00-24:00
> }
> # 'workhours' timeperiod definition
> define timeperiod{
>timeperiod_name   workhours
>alias"Normal" Working Hours
>monday  09:30-18:00
>tuesday 09:30-18:00
>wednesday   09:30-18:00
>thursday 09:30-18:00
>friday  09:30-18:00
>}
>
>
> # 'nonworkhours' timeperiod definition
> define timeperiod{
>timeperiod_name   nonworkhours
>aliasNon-Work Hours
>sunday  00:00-24:00
>monday  00:00-09:30,18:00-24:00
>tuesday 00:00-09:30,18:00-24:00
>wednesday   00:00-09:30,18:00-24:00
>thursday 00:00-09:30,18:00-24:00
>friday  00:00-09:30,18:00-24:00
>saturday 00:00-24:00
>}
>
>
> # 'none' timeperiod definition
> define timeperiod{
>timeperiod_name   none
>aliasNo Time Is A Good Time
>}
> ###
> ###
> #
> # CONTACTS
> #
> ###
> ###
>
> # In this simple config file, a single contact will receive all alerts.
> # This assumes that you have an account (or email alias) called
> # "nagios-admin" on the local host.
>
> define contact{
> contact_namenagios-admin
> alias   Nagios Admin
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-email
> host_notification_commands  host-notify-by-email
> email   [EMAIL PROTECTED]
> }
>
>
> ###
> ###
> #
> # HOSTS
> #
> ###
> ###
>
> # Generic host definition template - This is NOT a real host, just a
>

Re: [Nagios-users] Problem with new host defination

2008-09-01 Thread J. Bakshi
J. Bakshi wrote:
> Good morning,
>
> Hope everyone is well.
>
> I am now working to configure my nagios to monitor my remote servers.
>   

Dear all,

I am still fighting with the host definition with out any luck :-(

This time I am using more simple configuration

~~~`
define host{
  name  linux-box ; Name of this
template
  use   generic-host  ; Inherit default
values
  check_period  24x7
  check_interval5
  retry_interval1
  max_check_attempts10
  check_command check-host-alive
  notification_period   24x7
  notification_interval 30
  notification_options  d,r
  contact_groupsadmins
  register  0  ; DONT REGISTER THIS - ITS A
TEMPLATE
  }

define host{
  use   linux-box ; Inherit default values from a template
  host_name remotehost; The name we're giving to this server
  alias Fedora Core 6 ; A longer name for the server
  address   192.168.0.1   ; IP address of the server
  }
~

Could any one sggest me what I am missing actually ???
thanks

> To monitor one of the remote servers I have made a file called  
> "hosteurope.cfg"
> A simple configuration with out and serveice. Just to check coonectivity
>
> ###
> ###
> #
> # TIME PERIODS
> #
> ###
> ###
>
> # This defines a timeperiod where all times are valid for checks,
> # notifications, etc.  The classic "24x7" support nightmare. :-)
>
> define timeperiod{
> timeperiod_name 24x7
> alias   24 Hours A Day, 7 Days A Week
> sunday  00:00-24:00
> monday  00:00-24:00
> tuesday 00:00-24:00
> wednesday   00:00-24:00
> thursday00:00-24:00
> friday  00:00-24:00
> saturday00:00-24:00
> }
> # 'workhours' timeperiod definition
> define timeperiod{
>timeperiod_name   workhours
>alias"Normal" Working Hours
>monday  09:30-18:00
>tuesday 09:30-18:00
>wednesday   09:30-18:00
>thursday 09:30-18:00
>friday  09:30-18:00
>}
>
>
> # 'nonworkhours' timeperiod definition
> define timeperiod{
>timeperiod_name   nonworkhours
>aliasNon-Work Hours
>sunday  00:00-24:00
>monday  00:00-09:30,18:00-24:00
>tuesday 00:00-09:30,18:00-24:00
>wednesday   00:00-09:30,18:00-24:00
>thursday 00:00-09:30,18:00-24:00
>friday  00:00-09:30,18:00-24:00
>saturday 00:00-24:00
>}
>
>
> # 'none' timeperiod definition
> define timeperiod{
>timeperiod_name   none
>aliasNo Time Is A Good Time
>}
> ###
> ###
> #
> # CONTACTS
> #
> ###
> ###
>
> # In this simple config file, a single contact will receive all alerts.
> # This assumes that you have an account (or email alias) called
> # "nagios-admin" on the local host.
>
> define contact{
> contact_namenagios-admin
> alias   Nagios Admin
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-email
> host_notification_commands  host-notify-by-email
> email   [EMAIL PROTECTED]
> }
>
>
> ###
> ###
> #
> # HOSTS
> #
> ###
> ###
>
> # Generic host definition template - This is NOT a real host, just a
>

Re: [Nagios-users] check_nrpe problem with dynamic ip

2008-09-01 Thread J. Bakshi
Assaf Flatto wrote:
> On Monday 01 September 2008 09:57:30 J. Bakshi wrote:
>   
>> Hello All,
>>
>> The remote server where I have installed nrpe, the /etc/nagios/nrpe.cfg has
>> allowed_hosts=127.0.0.1,122.161.137.217
>>
>> 122.161.137.217 is the IP of my local nagios monitoring machine.
>> I put this IP after checking my machine by whatismyip.com
>> My ISP provides dynamic IP. Is there any way to tell nagios to permit
>> nrpe connection from
>> all ?
>>
>> thanks
>> 
>
> Is your nagis machine ip changes all the time ? 
> or is it your devices Ip that is changing ?
>   

Hi Assaf,
thanks for your kind response.

yes the local machine where the nagios is installed has dynamic address.
The Ip changes after every 2/3 days.
Hence I have to change the "allowed_hosts=" parameter accordingly at the
remote machine running nrpe daemon.
How can I solve this problem ?

thanks


> You do not need to tell nagios to permit the connection . you need to tell 
> the nrpe on all the hosts 
> you are checking that the nagios host's ip has been changed and has a new .
>
> As far as i know there is no automated plugin , what you can do is write a 
> script to query the dns 
> of your nagios and replace the existing IP with the new result .
>
> Assaf
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_nrpe problem with dynamic ip

2008-09-01 Thread J. Bakshi
Hello All,

The remote server where I have installed nrpe, the /etc/nagios/nrpe.cfg has
allowed_hosts=127.0.0.1,122.161.137.217

122.161.137.217 is the IP of my local nagios monitoring machine.
I put this IP after checking my machine by whatismyip.com
My ISP provides dynamic IP. Is there any way to tell nagios to permit
nrpe connection from
all ?

thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Problem with new host defination

2008-09-01 Thread J. Bakshi
Good morning,

Hope everyone is well.

I am now working to configure my nagios to monitor my remote servers.

To monitor one of the remote servers I have made a file called
"hosteurope.cfg"
A simple configuration with out and serveice. Just to check coonectivity

###
###
#
# TIME PERIODS
#
###
###

# This defines a timeperiod where all times are valid for checks,
# notifications, etc.  The classic "24x7" support nightmare. :-)

define timeperiod{
timeperiod_name 24x7
alias   24 Hours A Day, 7 Days A Week
sunday  00:00-24:00
monday  00:00-24:00
tuesday 00:00-24:00
wednesday   00:00-24:00
thursday00:00-24:00
friday  00:00-24:00
saturday00:00-24:00
}
# 'workhours' timeperiod definition
define timeperiod{
   timeperiod_name   workhours
   alias"Normal" Working Hours
   monday  09:30-18:00
   tuesday 09:30-18:00
   wednesday   09:30-18:00
   thursday 09:30-18:00
   friday  09:30-18:00
   }


# 'nonworkhours' timeperiod definition
define timeperiod{
   timeperiod_name   nonworkhours
   aliasNon-Work Hours
   sunday  00:00-24:00
   monday  00:00-09:30,18:00-24:00
   tuesday 00:00-09:30,18:00-24:00
   wednesday   00:00-09:30,18:00-24:00
   thursday 00:00-09:30,18:00-24:00
   friday  00:00-09:30,18:00-24:00
   saturday 00:00-24:00
   }


# 'none' timeperiod definition
define timeperiod{
   timeperiod_name   none
   aliasNo Time Is A Good Time
   }
###
###
#
# CONTACTS
#
###
###

# In this simple config file, a single contact will receive all alerts.
# This assumes that you have an account (or email alias) called
# "nagios-admin" on the local host.

define contact{
contact_namenagios-admin
alias   Nagios Admin
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED]
}


###
###
#
# HOSTS
#
###
###

# Generic host definition template - This is NOT a real host, just a
template!

define host{
namegeneric-host; The name of
this host template
notifications_enabled   1  ; Host notifications
are enabled
event_handler_enabled   1  ; Host event handler
is enabled
flap_detection_enabled  1  ; Flap detection is
enabled
failure_prediction_enabled  1  ; Failure prediction
is enabled
process_perf_data   1  ; Process performance
data
retain_status_information   1  ; Retain status
information across program restarts
retain_nonstatus_information1  ; Retain non-status
information across program restarts
   notification_period 24x7 ; Send host notifications at any
time
register0  ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUS>
}

define host{
  name  remoteserver ; Name of this
template
  use   generic-host  ; Inherit default
values
  check_period  24x7
  check_interval5
  retry_interval1
  max_check_attempts10
  check_command check-host-alive
  notification_period   24x7
  notification_interval 30
  notification_options  d,r
  contact_groupsadmins
  register  0  ; DONT REGISTER THIS - ITS A
TEMPLATE
  }


define host{
  use   remoteserver ; Inherit default values from a
template
  host_name hosteurope_server; The name we're giving to this
server
  alias SuSe 9.3 ; A longer name fo

[Nagios-users] Problem with new host defination

2008-08-31 Thread J. Bakshi
Good morning,

Hope everyone is well.

I am now working to configure my nagios to monitor my remote servers.

To monitor one of the remote servers I have made a file called  
"hosteurope.cfg"
A simple configuration with out and serveice. Just to check coonectivity

###
###
#
# TIME PERIODS
#
###
###

# This defines a timeperiod where all times are valid for checks,
# notifications, etc.  The classic "24x7" support nightmare. :-)

define timeperiod{
timeperiod_name 24x7
alias   24 Hours A Day, 7 Days A Week
sunday  00:00-24:00
monday  00:00-24:00
tuesday 00:00-24:00
wednesday   00:00-24:00
thursday00:00-24:00
friday  00:00-24:00
saturday00:00-24:00
}
# 'workhours' timeperiod definition
define timeperiod{
   timeperiod_name   workhours
   alias"Normal" Working Hours
   monday  09:30-18:00
   tuesday 09:30-18:00
   wednesday   09:30-18:00
   thursday 09:30-18:00
   friday  09:30-18:00
   }


# 'nonworkhours' timeperiod definition
define timeperiod{
   timeperiod_name   nonworkhours
   aliasNon-Work Hours
   sunday  00:00-24:00
   monday  00:00-09:30,18:00-24:00
   tuesday 00:00-09:30,18:00-24:00
   wednesday   00:00-09:30,18:00-24:00
   thursday 00:00-09:30,18:00-24:00
   friday  00:00-09:30,18:00-24:00
   saturday 00:00-24:00
   }


# 'none' timeperiod definition
define timeperiod{
   timeperiod_name   none
   aliasNo Time Is A Good Time
   }
###
###
#
# CONTACTS
#
###
###

# In this simple config file, a single contact will receive all alerts.
# This assumes that you have an account (or email alias) called
# "nagios-admin" on the local host.

define contact{
contact_namenagios-admin
alias   Nagios Admin
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED]
}


###
###
#
# HOSTS
#
###
###

# Generic host definition template - This is NOT a real host, just a
template!

define host{
namegeneric-host; The name of
this host template
notifications_enabled   1  ; Host notifications
are enabled
event_handler_enabled   1  ; Host event handler
is enabled
flap_detection_enabled  1  ; Flap detection is
enabled
failure_prediction_enabled  1  ; Failure prediction
is enabled
process_perf_data   1  ; Process performance
data
retain_status_information   1  ; Retain status
information across program restarts
retain_nonstatus_information1  ; Retain non-status
information across program restarts
   notification_period 24x7 ; Send host notifications at any
time
register0  ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUS>
}

define host{
  name  remoteserver ; Name of this
template
  use   generic-host  ; Inherit default
values
  check_period  24x7
  check_interval5
  retry_interval1
  max_check_attempts10
  check_command check-host-alive
  notification_period   24x7
  notification_interval 30
  notification_options  d,r
  contact_groupsadmins
  register  0  ; DONT REGISTER THIS - ITS A
TEMPLATE
  }


define host{
  use   remoteserver ; Inherit default values from a
template
  host_name hosteurope_server; The name we're giving to this
server
  alias SuSe 9.3 ; A longer name 

Re: [Nagios-users] Is there any wat to check the internet bandwidth ?

2008-08-31 Thread J. Bakshi
Marc Powell wrote:
> On Aug 29, 2008, at 7:27 AM, J. Bakshi wrote:
>
>   
>> Dear list,
>>
>> Is there any way to check the Internet bandwidth by nagios ?
>> I can imagine it would be a great option to have that information in  
>> nagios.
>> 
>
> There are several plugins for doing this on nagiosexchange.org. Search  
> for 'interface speed' and 'interface bandwidth'.
>
>   

Thanks a lot Marc Powell


> --
> Marc
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Is there any wat to check the internet bandwidth ?

2008-08-29 Thread J. Bakshi
Dear list,

Is there any way to check the Internet bandwidth by nagios ?
I can imagine it would be a great option to have that information in nagios.

thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Antwort: Re: how to disable notification for a particular service ?

2008-08-29 Thread J. Bakshi
[EMAIL PROTECTED] wrote:
>
> [EMAIL PROTECTED] schrieb am 29.08.2008 11:03:29:
>
> > Urrg, If I do  " disable notification " it says
> >
> > Sorry, but Nagios is currently not checking for external commands, so
> > your command will not be committed!
>
> Well, obviously you turned off the check_external_commands in the
> nagios.cfg.
> Set it to 1 and restart nagios.

Thanks Sascha,

Now there is no problem to disable notification.

>
> Btw: this would be an excellent time for reading the nagios
> documentation, too...
>
> Regards
> Sascha
>
> -- 
> Sascha Runschke
> IT-Infrastruktur
>
> GFKL Financial Services AG
> Limbecker Platz 1
> 45127 Essen
>
> Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201)
> 102-1102105
>
>
> GFKL Financial Services AG
> Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till
> Ergenzinger, Dr. Tom Haverkamp
> Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
> Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522
> 
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] how to disable notification for a particular service ?

2008-08-29 Thread J. Bakshi
J. Bakshi wrote:

Urrg, If I do  " disable notification " it says

Sorry, but Nagios is currently not checking for external commands, so
your command will not be committed!


> Assaf Flatto wrote:
>
> Thanks a lot Assaf.
> It solved my problem
> have a nice time.
>
>   
>> open the web interfcae - click on the service you want to change and on ther 
>> right hand side you 
>> have an option called " disable notification for this service " 
>>
>> Assaf
>> On Friday 29 August 2008 08:53:29 J. Bakshi wrote:
>>   
>> 
>>> Hi all,
>>>
>>> Is there any way to disable the email-alert/notification for a
>>> particular service ?
>>>
>>> thanks
>>> 
>>>   
>>
>>
>>
>>
>> IMPORTANT . this email and the information in it may be confidential, legally
>> privileged and/or protected by law. It is intended solely for the use of the
>> person to whom it is addressed. If you are not the intended recipient, please
>> notify the sender immediately and do not disclose the contents to any other
>> person, use it for any purpose, or store or copy the information in any 
>> medium.
>> Please also delete all copies of this email and any attachments from your
>> system.
>>
>> We cannot guarantee the security or confidentiality of email communications. 
>> We
>> do not accept any liability for losses or damages that you may suffer as a
>> result of your receipt of this email including but not limited to computer
>> service or system failure, access delays or interruption, data non-delivery 
>> or
>> mis-delivery, computer viruses or other harmful components.
>>
>> Copyright in this email and any attachments belong to Select Service Partner 
>> UK
>> Limited. Should you communicate with anyone at Select Service Partner UK 
>> Limited by
>> email, you consent to us monitoring and reading any such correspondence.
>>
>> Nothing in this email shall be taken or read as suggesting, proposing or
>> relating to any agreement concerted practice or other practice that could
>> infringe UK or EC competition legislation.
>>
>> Select Service Partner UK Limited is a company registered in England and 
>> Wales
>> (company number 05687183) whose registered office is at 1 The Heights, 
>> Brooklands, Weybridge. Surrey. KT13 0NY
>>  
>>  
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue. 
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>>   
>> 
>
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to disable notification for a particular service ?

2008-08-29 Thread J. Bakshi
Assaf Flatto wrote:

Thanks a lot Assaf.
It solved my problem
have a nice time.

> open the web interfcae - click on the service you want to change and on ther 
> right hand side you 
> have an option called " disable notification for this service " 
>
> Assaf
> On Friday 29 August 2008 08:53:29 J. Bakshi wrote:
>   
>> Hi all,
>>
>> Is there any way to disable the email-alert/notification for a
>> particular service ?
>>
>> thanks
>> 
>
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential, legally
> privileged and/or protected by law. It is intended solely for the use of the
> person to whom it is addressed. If you are not the intended recipient, please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any 
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email communications. 
> We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service Partner 
> UK
> Limited. Should you communicate with anyone at Select Service Partner UK 
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and Wales
> (company number 05687183) whose registered office is at 1 The Heights, 
> Brooklands, Weybridge. Surrey. KT13 0NY
>  
>  
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] how to disable notification for a particular service ?

2008-08-29 Thread J. Bakshi
Hi all,

Is there any way to disable the email-alert/notification for a
particular service ?

thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ADSL modem checking

2008-08-28 Thread J. Bakshi
Sean McAfee wrote:
> J. Bakshi wrote:
>> Ok, so ping_check is a  ping command with standard features.
>>
>> I would be grateful to you if you give me 1 more suggestions
>>
>> 1> How can I check a different IP with check_ping command. I have tried
>> as below with no success
>> check_ping -H gmail.com!100.0,20%!500.0,60%
> The !-separated argument syntax is only used to fill in arguments for
> predefined checks.  When running checks from the command line,
> switches must be specified before most arguments.
>
> From check_ping --help:
> Usage:check_ping -H  -w ,% -c ,%
> [-p packets] [-t timeout] [-4|-6]
>
> If you look at the command definition, you'll see how each !-separated
> argument actually translates into the required switch + argument pair:
>
> define command{
>command_namecheck_ping
>command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$
> -c $ARG2$ -p 5
>}
>
> What you're looking for is `check_ping -H gmail.com -w 100.0,20% -c
> 500.0,60% -p 5`  (the -p switch is optional, but specifies the amount
> of icmp packets to send - after all, what good is a single ping?)
>
> If you're trying to configure a check where a host will ping an
> arbitrary external host, remember that the $HOSTADDRESS$ macro will
> always be filled in with the host_name or host_address of the
> service.  To get around that, define a new check along the lines of:
>
> define command{
>command_namecheck_ping_external
>command_line$USER1$/check_ping -H $ARG1$ -w $ARG2$ -c
> $ARG3$ -p 5
>}
>
> and then use:
>
> check_command  check_ping_external!www.gmail.com!100.0,20%!500.0,60%
>
> in your service check definition.

Awesome.  It is a nice tool to check internet. The expansion will help
me and other newbies to
design commands and service definition.

Thanks a LOT.

>
> Sean McAfee
> System Engineer
>
> Collaborative Fusion, Inc.
> [EMAIL PROTECTED]
> 412-422-3463 x 4025
>
> 5849 Forbes Avenue
> Pittsburgh, PA 15217
>
> 
> IMPORTANT: This message contains confidential information
> and is intended only for the individual named. If the reader of
> this message is not an intended recipient (or the individual
> responsible for the delivery of this message to an intended
> recipient), please be advised that any re-use, dissemination,
> distribution or copying of this message is prohibited. Please
> notify the sender immediately by e-mail if you have received
> this e-mail by mistake and delete this e-mail from your system.
> E-mail transmission cannot be guaranteed to be secure or
> error-free as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses. The
> sender therefore does not accept liability for any errors or
> omissions in the contents of this message, which arise as a
> result of e-mail transmission.
> 
>
>
>
>
>
> IMPORTANT: This message contains confidential information and is
> intended only for the individual named. If the reader of this message
> is not an intended recipient (or the individual responsible for the
> delivery of this message to an intended recipient), please be advised
> that any re-use, dissemination, distribution or copying of this
> message is prohibited. Please notify the sender immediately by e-mail
> if you have received this e-mail by mistake and delete this e-mail
> from your system.
>
>
>


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ADSL modem checking

2008-08-27 Thread J. Bakshi
Paul Weaver wrote:
>> Paul Weaver wrote:
>> 
>>> I don't have any pcs with default routes out of two network 
>>>   
>> cards to 
>> 
>>> test, but perhaps using "ping -I eth0 www.yahoo.co.uk" and "ping -I 
>>> eth1 www.yahoo.co.uk" would work?
>>>   
>>>   
>> Hi Paul,
>>
>> Thanks for your response. I have a script which actually 
>> change the default route to other lan card when the present 
>> lan card i.e. the modem connected with it not providing the 
>> internet.  The  command you have mentioned is also check the 
>> internet forcefully from the lan card.
>>
>> but it would be nice if check_ping could do the same.
>> thanks
>> 
>
> Ahh well, you're asking the wrong person. At the first sign of trouble
> with standard plugins, I wrap a perl script arround whatever commands I
> do the check with -- I did a similar thing when I wasnted to force
> checks of 8000 byte non-fragmented pings. 
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal 
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance 
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>   
>
>   

Ok, so ping_check is a  ping command with standard features.

I would be grateful to you if you give me 1 more suggestions

1> How can I check a different IP with check_ping command. I have tried
as below with no success
check_ping -H gmail.com!100.0,20%!500.0,60%

with best regards

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ADSL modem checking

2008-08-27 Thread J. Bakshi
Paul Weaver wrote:
> I don't have any pcs with default routes out of two network cards to
> test, but perhaps using "ping -I eth0 www.yahoo.co.uk" and "ping -I eth1
> www.yahoo.co.uk" would work?
>   

Hi Paul,

Thanks for your response. I have a script which actually change the
default route to other lan card when the present lan card i.e. the
modem connected with it not providing the internet.  The  command you
have mentioned is also check the internet forcefully from the lan card.

but it would be nice if check_ping could do the same.
thanks
> --
> Paul Weaver   
> Systems Development Engineer
> News Production Facilities, BBC News
> Work: 020 822 58109
> Room 1244  Television Centre,
> Wood Lane, London, W12 7RJ
>
>
>
>   
>> -Original Message-
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf 
>> Of J. Bakshi
>> Sent: 27 August 2008 12:13
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] ADSL modem checking
>>
>>
>> Hi all,
>>
>> nagios is running here at my local server with 
>> ssh,mysql,smtp,http monitoring.
>>
>> And now I like to use *nagios* to monitor my 2 ADSL modems.
>>
>> The environment is as below
>>
>> 1> my linux server has 3 lan crads eth0 ( connected with 
>> hub ) , eth1, eth2
>>
>> 2>  There is an ADSL modem 220BX connected with eth1. ( 
>> 8MB connection used as primary )
>> This modem is providing Internet connection from 
>> provider1 (say)
>>
>>  Another modem ADSL modem TAD100 connected with eth2. 
>> ( 512 KB connection used as backup )
>> This modem is providing Internet connection from 
>> provider2 (say)
>>
>> 3> simple check_ping to modem IP  can monitor the 
>> accessibility to both
>> the  modem. BUT how can I check that the internet connection 
>> is really 
>> provided by the modems. simple ping to yahoo.com can't solve 
>> the problem as any one modem is used as default route at a 
>> particular time. How can I check the internet is really 
>> present on the other modem not used as default route ? In 
>> other words say eth1 is used as default route and the traffic 
>> is going through ADSL modem 220BX. Then How can I check that 
>> the internet connection is alive at eth2 ?
>>
>> Many thanks in advanced.
>>
>> -- 
>> ~~
>> Joydeep Bakshi, Linux System Admin
>> Kolkatainfoservices Pvt Ltd,
>> 23A Royd Street, Kolkata 700016, India
>> Work Phone 91 033 40014784
>> http://infoservices.in/ ~~~
>>
>>
>> --
>> ---
>> This SF.Net email is sponsored by the Moblin Your Move 
>> Developer's challenge Build the coolest Linux based 
>> applications with Moblin SDK & win great prizes Grand prize 
>> is a trip for two to an Open Source event anywhere in the 
>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS 
>> when reporting any issue. 
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>> 
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal 
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance 
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>   
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] ADSL modem checking

2008-08-27 Thread J. Bakshi
Hi all,

nagios is running here at my local server with ssh,mysql,smtp,http
monitoring.

And now I like to use *nagios* to monitor my 2 ADSL modems.

The environment is as below

1> my linux server has 3 lan crads eth0 ( connected with hub ) ,
eth1, eth2

2>  There is an ADSL modem 220BX connected with eth1. ( 8MB
connection used as primary )
This modem is providing Internet connection from provider1 (say)

 Another modem ADSL modem TAD100 connected with eth2. ( 512 KB
connection used as backup )
This modem is providing Internet connection from provider2 (say)

3> simple check_ping to modem IP  can monitor the accessibility to both
the  modem. BUT how can I check that the internet connection is really 
provided by the modems. simple ping to yahoo.com can't solve the problem
as any one modem is used as default route at a particular time. How can
I check the internet is really present on the other modem not used as
default route ? In other words say eth1 is used as default route and the
traffic is going through ADSL modem 220BX. Then How can I check that the
internet connection is alive at eth2 ?

Many thanks in advanced.

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nrpe/nsca or check_by_ssh

2008-08-27 Thread J. Bakshi
Olivier JAN wrote:
> Hi all,
>
> NRPE is for active checks and NSCA for passive ones. So you can use  
> NRPE instead of SSH.
>
>   

Thanks for your kind response.


> Olivier Jan
> http://nagios-fr.org
>
> "J. Bakshi" <[EMAIL PROTECTED]> a écrit :
>
>   
>> Dear list,
>>
>> I really need some suggestions/guideline regarding monitoring remote
>> server by nagios.
>>
>> I have found three different ways to monitor remote hosts
>>
>>  1> NRPE
>> 2> NSCA
>> 3> check_by_ssh
>>
>> As I have already read at the manual that  check_by_ssh gives load on
>> the monitoring machine's CPU
>> So the other alternative is either NRPE or NSCA. What is the difference
>> between these two ?
>> There are some manuals which may have some in depth details on these but
>> I am locking for a direction/hints
>> based on which my study will continue.
>> Any hints/links/suggestion are always welcome.
>>
>> with best regards,
>>
>> --
>> ~~
>> Joydeep Bakshi, Linux System Admin
>> Kolkatainfoservices Pvt Ltd,
>> 23A Royd Street, Kolkata 700016, India
>> Work Phone 91 033 40014784
>> http://infoservices.in/
>> ~~~
>>
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when   
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>>
>> 
>
>
>
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] nrpe/nsca or check_by_ssh

2008-08-27 Thread J. Bakshi
Dear list,

I really need some suggestions/guideline regarding monitoring remote
server by nagios.

I have found three different ways to monitor remote hosts

 1> NRPE
2> NSCA
3> check_by_ssh

As I have already read at the manual that  check_by_ssh gives load on
the monitoring machine's CPU
So the other alternative is either NRPE or NSCA. What is the difference
between these two ?
There are some manuals which may have some in depth details on these but
I am locking for a direction/hints
based on which my study will continue.
Any hints/links/suggestion are always welcome.

with best regards,

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to monitor mysql and ssh in local localhost ?

2008-08-26 Thread J. Bakshi
Marcus wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> J. Bakshi schrieb:
>
>   
>> I like to monitor remote server also to check the services there.
>> What should I do to monitor "Remote Linux Server"  ?
>> 
>
>   

Thanks a lot Marcus and have a great day

> Add a new host called "Remote Linux Server" to your config.
> Define the service you want to monitor on "Remote Linux Server".
> Make sure, the service relates to an existing command, or define a new
> command.
> Run a configcheck to see if there are errors. If none, restart nagios.
>
>   
>> Please give me some hints.
>> 
> Please read the fabulous manual.
>
>   
>> many thanks
>> 
> Never mind.
>
> Marcus
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFItPPf+qVaNRZYOakRAgEUAJoD4yhga8Uc/Sa4ZELiizlZjjeazQCePL9M
> Fn8QZEkiFn99sQUX+oTCOl0=
> =D4nx
> -END PGP SIGNATURE-
>
>   


-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] how to monitor mysql and ssh in local localhost ?

2008-08-26 Thread J. Bakshi
J. Bakshi wrote:
> Dear list,
>
> I am new to nagios and installed it yesterday.
> Woeking with nagios is a great pleasure. I am using nagios 2.12.
>
> I like to monitor mysql, ssh, openldap, smtp and pop in my localhost
> with nagios.
>
> To check mysql and ssh I have added the following at localhost.cfg
> 
> # Define a service to check MYSQL
>
> define service{
>   uselocal-service  ; Name of
> service template to use
> host_name  localhost
>service_descriptionMYSQL
> check_command  check_mysql!root!admin
> }
>
>
> # Define a service to check SSH
>
> define service{
>use local-service ; Name of
> service template to use
>host_name   localhost
>service_description SSH
>   check_command   check_ssh!22!192.168.1.1
>}
> =
>
> When I restart nagios it reports configuration error.
>
> What have I done wrong ? Please suggest.
> Thanks
>
>   

A little success. This time I have no "configuration error"

I have added the following in commands.cfg file

===
define command{
command_namecheck_ssh
command_line$USER1$/check_ssh $ARG1$ $HOSTADDRESS$
   }
==

The "define service" entry for SSH  in localhost.cfg is

=
define service{
   use  local-service ; Name of service
template to use
   host_name localhost
   service_description   SSH
   check_command  check_ssh!-t 5 -p 22
   }
=

And the web interface is  showing SSH OK :-)

I like to monitor remote server also to check the services there.
What should I do to monitor "Remote Linux Server"  ?
Please give me some hints.
many thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] how to monitor mysql and ssh in local localhost ?

2008-08-26 Thread J. Bakshi
Dear list,

I am new to nagios and installed it yesterday.
Woeking with nagios is a great pleasure. I am using nagios 2.12.

I like to monitor mysql, ssh, openldap, smtp and pop in my localhost
with nagios.

To check mysql and ssh I have added the following at localhost.cfg

# Define a service to check MYSQL

define service{
  uselocal-service  ; Name of
service template to use
host_name  localhost
   service_descriptionMYSQL
check_command  check_mysql!root!admin
}


# Define a service to check SSH

define service{
   use local-service ; Name of
service template to use
   host_name   localhost
   service_description SSH
  check_command   check_ssh!22!192.168.1.1
   }
=

When I restart nagios it reports configuration error.

What have I done wrong ? Please suggest.
Thanks

-- 
~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null