problem nagios snmp with windows machines

andres sarmiento coolpixgnu at gmail.com
Fri Jun 15 17:00:49 CEST 2007


Thanks Patrick and Max for the Help.
Thanks from Chile
Saludos

2007/6/15, Patrick Proy <nagios-user at proy.org>:
> Hi,
>
> All the syntax of all the scripts can also be found at the home page of the
> project : http://nagios.manubulon.com .
> And, as Max Hetrick said, you can always do a <script> -h to have some
> offline help.
> Some options are common to all scripts (hostame and snmp information), but
> that's only a small part of all available options.
>
> Patrick
> http://nagios.manubulon.com
>
> -----Message d'origine-----
> De : nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de andres
> sarmiento
> Envoyé : vendredi 15 juin 2007 15:15
> À : nagios-users at lists.sourceforge.net
> Objet : Re: [Nagios-users] problem nagios snmp with windows machines
>
> Thanks Max for the how-to, i read it and is very easy, and works for me.
> How i can set  all the snmp command with the correct syntax. For example:
> debian:/usr/lib/nagios/plugins# ./check_snmp_load.pl -H 192.168.137.1
> -C publica -w 90 --c 100 -T stand
> 1 CPU, load 6.0% < 90% : OK
> and that works fine. but when do that:
>
> debian:/usr/lib/nagios/plugins# ./check_snmp_int.pl -H 192.168.137.1
> -C publica -w 90 --c 100 -T stand
> Unknown option: T
> Usage: ./check_snmp_int.pl [-v] -H <host> -C <snmp_community> [-2] |
> (-l login -x passwd [-X pass -L <authp>,<privp>)  [-p <port>] -n <name
> in desc_oid> [-i] [-a] [-r] [-f[eSyY]] [-k[qBMGu] -g -w<warn levels>
> -c<crit levels> -d<delta>] [-o <octet_length>] [-t <timeout>] [-s]
> --label [-V]
> debian:/usr/lib/nagios/plugins#
>
> whet i delete the "T" option the same error view:
> Do you had the correct syntaxt for all this command, and i don't know
> that all this command don't works monittoring on windows machines:
> check_snmp_boostedge.pl
> check_snmp_css.pl
> check_snmp_linkproof_nhr.pl
> check_snmp_nsbox.pl
> check_snmp_vrrp.pl
> check_snmp_cpfw.pl
> check_snmp_env.pl
>
> check_snmp_load.pl
> ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand
> this is OK
> check_snmp_process.pl
> check_snmp_win.pl
> check_snmp_css_main.pl
> check_snmp_int.pl
> check_snmp_mem.pl
> check_snmp_storage.pl
>
>
> Thanks Max for the help
> Muchas gracias y perdoname por no saber tanto inglés.
> Saludos
> 2007/6/14, Max Hetrick <btmanmeh at verizon.net>:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > andres sarmiento wrote:
> >
> > > Ok, look,  i had problem settings the snmp-services. i want to check
> > > way snmp the windows machines but i don't know how implement it. I had
> > > read very documentation from internet but also i can't implement it.
> > > Can you helpme way how-to, how to implement monitoring with nagios way
> > > snmp to windows machines step-by-step ????.
> >
> >
> > Well, to start, you have to make sure SNMP is installed on the Windows
> > clients. If you don't already have that part done, you do can add the
> > following through Add/Remove Windows Components in the Control Panel.
> >
> > Management and Monitoring Tools -> SNMP
> >
> > If you want to change the community string from public to something
> > else, and you want to change any settings go into Services and choose
> > properties on SNMP Service on the Windows hosts.
> >
> > That said, you're going to have to read up a bit on some things. I don't
> > know where there is a step-by-step guide for this, but it's not that
> > hard to do. By making sure you installed SNMP on the clients, and then
> > by using these plugins, you should be able to work your way through
> > things. This implies you understand how Nagios works first.
> >
> > http://nagios.manubulon.com/
> > http://nagios.manubulon.com/snmp_windows.html
> >
> > Once you get them downloaded and installed, make sure you can get one of
> > the plugins to execute from your libexec path. For example:
> >
> > # /usr/lib/nagios/plugins check_snmp_load.pl -H HOST -C COMMSTRING -w 90
> > - -c 100 -T stand
> > 4 CPU, average load 0.5% < 90% : OK
> >
> > If that works from the command line, you can go ahead and start working
> > on configuring Nagios. If it doesn't work, then you need to check and
> > make sure the scripts are executable, and owned by whomever is running
> > them, etc.
> >
> > Create the service:
> >
> > # SNMP 'Doze CPU Load
> > define service{
> >         use                             basic-service
> >         name                            snmp-doze-cpu
> >         notification_interval           0
> >         contact_groups                  itdepartment
> >         notification_options            c,r
> >         notification_period             24x7
> >         service_description             CPU Load
> >         check_command                   snmp_doze_cpu!90!100
> >         host_name                       windowsclient1,windowsclient2
> >         }
> >
> > Create the new check command:
> >
> > # 'snmp_doze_cpu' Windoze CPU load check
> > define command{
> >         command_name    snmp_doze_cpu
> >         command_line    $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C
> > COMMSTRING -w $ARG1$ -c $ARG2$
> >         }
> >
> > Verify Nagios likes it.
> >
> > # nagios -v nagios.cfg
> >
> > Fix any errors it complains about. Follow this method for all the other
> > SNMP checks you want to use across these plugins from Manubulon.
> >
> > Again, this implies you understand Nagios. If you don't, then I suggest
> > you take some time to try to read the docs about how the basics of
> > Nagios work. This isn't any different than creating a regular service
> > check, or a host check. It's just doing it across the SNMP protocol.
> >
> > Regards,
> > Max
> >
> >
> >
> >
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.6 (GNU/Linux)
> >
> > iD8DBQFGcUaZHoeeepPau2ERAkKqAKCFxgf0CoDDnKmCLcMdLu43BLk8EwCfYiqJ
> > /lq8hk+mf6RtgBihIMBbBf0=
> > =ApjI
> > -----END PGP SIGNATURE-----
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > 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
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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