Curl scripting

Robert Wamala robert at rcs-communication.com
Thu Feb 19 08:43:32 CET 2009


Hi Satish and Thomas, 

Pleasee can u help me to get it right,
how can I configure curl to give an automatic 
login to the urls 
will be glade.

rgds,
Robert




On Thu, 2009-02-19 at 07:31 +0100, Thomas Borger wrote:
> Hi,
> 
> Ive done it with:
> 
> commands.cfg
> 
> ### additional IP-Address ###
> define command{
>         command_name    ping-lan-addIP
>         command_line    $USER1$/check_icmp -H $ARG1$ -n 3 -w 700.0,80% -c
> 1000.0,90%
>         }
> 
> 
> template: t_ping.cfg
> 
> define service{
>         name                            t_lan_ping_addIP
>         use                             generic-service
>         service_description             lan-ping-addIP
>         check_command                   ping-lan-addIP!127.0.0.1
>         normal_check_interval           4
>         retry_check_interval            2
>         notification_period             normal
>         action_url                      /nagios/pnp/index.php?host=
> $HOSTNAME$&srv=$SERVICEDESC$
>         register                        0
>         }
> 
> 
> and the host config file host-abc.cfg
> 
> define service{
>         use                             t_lan_ping_addIP
>         host_name                       lns001ext
>         check_command                   ping-lan-addIP!192.168.135.167
>         }
> 
> 
> 
> 
> best regards
> Thomas
> 
> 
> 
> 
>                                                                            
>              Satish Patel                                                  
>              <satish at linuxbug.                                             
>              org>                                                       An 
>                                         nagios-users at lists.sourceforge.net 
>              18.02.2009 18:22                                        Kopie 
>                                                                            
>                                                                      Thema 
>                                         [Nagios-users] Multiple IP address 
>                                         on single host                     
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
>                                                                            
> 
> 
> 
> I have few servers which has multiple physical and virtual interface
> how to monitor then with nagios? can i add multiple ip address in
> hosts.cfg file with (,) seprated?
> 
> 
> 
> Regards,
> 
> Satish Patel
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
> 
> 
> _______________________________________________________________________________________________________________
> 
> 
> ESG Elektroniksystem- und Logistik-GmbH
> Rechtsform/Legal Form: Gesellschaft mit beschränkter Haftung
> Sitz/Registered Office: München
> Handelsregister/Commercial Register: Registergericht München, HRB 8130
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Peter
> Obermark
> Vorsitzender der Geschäftsführung/CEO: Dipl.-Math. Gerhard Schempp,
> Geschäftsführer/Managing Director: Dipl.-Kfm. Götz Graichen
> 
> 
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
-- 
Robert Wamala <robert at rcs-communication.com>


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list