[Nagios-users-br] RES: Duvida
Marcio, Também está faltaldo no .cfg o parâmetro -C public Reveja todo o comando, pois ta errado. Diramos -Mensagem original- De: Jose Oliveira [mailto:jotag...@gmail.com] Enviada em: sexta-feira, 7 de janeiro de 2011 00:39 Para: Unofficial Brazilian (Portuguese) Nagios Users List Assunto: Re: [Nagios-users-br] Duvida Ola Marcio Os parametros que voce passou no services.cfg estao diferentes dos que voce passou na mao... Nao me lembro da macro $USER7$ mas ela me parfece estar sobrando... Eu criaria um command_line assim, pra refletir o que voce mandou na mão. Mas não sei se os parametros do plugin estão OK...: command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C public -o $ARG1$ Verifique tambem as permissoes, isto é, se o usuario que está rodando o nagios (geralmente o nagios) tem permissão de execucao no check_snmp... []s 2011/1/6 marcio xavier mrcxav...@gmail.com Pessoal, Estou com probleminha chato, não estou conseguindo monitorar meu firewall, ele é um Freebsd-(Pfsense) que roda o bsnmpd. O problema é o seguinte, se eu rodar o /usr/lib/nagios/plugins/check_snmp -H 192.168.0.1 -C public -o .1.3.6.1.2.1.1.5.0 manualmente ou somente o snmpget consigo o retorno sem problemas, mas na página no Nágios está apresentando a mensagem load problem - No data received from host. Meu commands,cfg está assim: # 'check_snmp' command definition define command{ command_namecheck_snmp command_line/usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' $USER7$ -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load } E meu services.cfg: define service { host_name teste service_description Check Hostname check_command check_snmp!.1.3.6.1.2.1.1.5.0 max_check_attempts 1 check_interval 1 retry_interval 1 check_period24x7 notification_interval 60 notification_period 24x7 notification_optionsw,c,r contact_groups tecnicos } Muito Obrigado -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- Abraços José Geraldo de Oliveira Linux user #492561 Certified LPIC-1 -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
[Nagios-users] Can I monitor printer status with nagios?
A thought struck me yesterday, we have a bucket load of printers, and I was wondering, can nagios tell when a printer is running low on ink, or something similar, so that our teams can become proactive when fixing printer jams, and replacing ink and paper etc. It's just a thought:) -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 I monitor printer status with nagios?
On Jan 8, 2011, at 5:04 AM, Mister IT Guru misteritg...@gmx.com wrote: A thought struck me yesterday, we have a bucket load of printers, and I was wondering, can nagios tell when a printer is running low on ink, or something similar, so that our teams can become proactive when fixing printer jams, and replacing ink and paper etc. It's just a thought:) Yes. Use the check_snmp module and anything other than an ok is returned, it can be alerted upon. -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 I monitor printer status with nagios?
On 08/01/2011 10:08, Paul Williamson wrote: On Jan 8, 2011, at 5:04 AM, Mister IT Gurumisteritg...@gmx.com wrote: A thought struck me yesterday, we have a bucket load of printers, and I was wondering, can nagios tell when a printer is running low on ink, or something similar, so that our teams can become proactive when fixing printer jams, and replacing ink and paper etc. It's just a thought:) Yes. Use the check_snmp module and anything other than an ok is returned, it can be alerted upon. Now this reply was just too quick! Thank you, I'll investigate snmp on my printers :) -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 I monitor printer status with nagios?
To some printers there are check files already made. Den 08-01-2011 10:59, Mister IT Guru skrev: A thought struck me yesterday, we have a bucket load of printers, and I was wondering, can nagios tell when a printer is running low on ink, or something similar, so that our teams can become proactive when fixing printer jams, and replacing ink and paper etc. It's just a thought:) -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 I monitor printer status with nagios?
On 08/01/2011 11:05, Leif J. wrote: Den 08-01-2011 10:59, Mister IT Guru skrev: A thought struck me yesterday, we have a bucket load of printers, and I was wondering, can nagios tell when a printer is running low on ink, or something similar, so that our teams can become proactive when fixing printer jams, and replacing ink and paper etc. It's just a thought:) To some printers there are check files already made. I have three HP Officejet Pro L7500, where can i find if there are templates for these printers? -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Nagios checker configuration
Hi all, Have anybody used nagios checher addon for firefox with nagiosxi? I try it with nagios 2.9 and it work fine. But I get error (1error) when I use it with nagiosxi. Can anybody point out what to do? Thanks so much, -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Custom command, works from command line, not from nagios?
I run this command from the cli [r...@host ~]# /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 OK - C: 'Percentage Space Used' = 54; |'C'=54;70;80; And I get the response above. I defined the command below, define command{ command_namecheck_cdrive command_line$USER1$/get_disk -a $HOSTADDRESS$ C: 70,80 } and also this service, define service{ usegeneric-service; Inherit default values from a template hostgroup_nameWindows_Servers service_descriptionC Drive Space check_commandcheck_cdrive } And I get this response when nagios runs the checks. Status Information:(Return code of 127 is out of bounds - plugin may be missing) The target client is a windows box, running nrpe_nt - Any ideas, as to where I'm going wrong, are appreciated :) -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Custom command, works from command line, not from nagios?
I'm confused in CLI you are using: /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 but in the define command you are using: $USER1$/get_disk -a $HOSTADDRESS$ C: 70,80 In your define command I would define it as: /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c get_disk -a localhost C: 70,80 And then define the command in nrpe on the windows box Den 08-01-2011 14:22, Mister IT Guru skrev: I run this command from the cli [r...@host ~]# /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 OK - C: 'Percentage Space Used' = 54; |'C'=54;70;80; And I get the response above. I defined the command below, define command{ command_namecheck_cdrive command_line$USER1$/get_disk -a $HOSTADDRESS$ C: 70,80 } and also this service, define service{ usegeneric-service; Inherit default values from a template hostgroup_nameWindows_Servers service_descriptionC Drive Space check_commandcheck_cdrive } And I get this response when nagios runs the checks. Status Information:(Return code of 127 is out of bounds - plugin may be missing) The target client is a windows box, running nrpe_nt - Any ideas, as to where I'm going wrong, are appreciated :) -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Custom command, works from command line, not from nagios?
On 08/01/2011 13:40, Leif J. wrote: I'm confused in CLI you are using: /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 but in the define command you are using: $USER1$/get_disk -a $HOSTADDRESS$ C: 70,80 In your define command I would define it as: /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c get_disk -a localhost C: 70,80 And then define the command in nrpe on the windows box I had no idea that I could do that!? I feel so stupid! Thanks for the tip! -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Custom command, works from command line, not from nagios?
Den 08-01-2011 14:51, Mister IT Guru skrev: On 08/01/2011 13:40, Leif J. wrote: I'm confused in CLI you are using: /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 but in the define command you are using: $USER1$/get_disk -a $HOSTADDRESS$ C: 70,80 In your define command I would define it as: /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c get_disk -a localhost C: 70,80 And then define the command in nrpe on the windows box I had no idea that I could do that!? I feel so stupid! Thanks for the tip! I always take the exactly path to make sure what command it are using. -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 I monitor printer status with nagios?
FYI http://nagios.sourceforge.net/docs/3_0/monitoring-printers.html This document describes how you can monitor the status of networked printers. Specifically, HP printers that have internal/external JetDirect cards/devices, or other print servers (like the Troy PocketPro 100S or the Netgear PS101) that support the JetDirect protocol. The check_hpjd plugin (which is part of the standard Nagios plugins distribution) allows you to monitor the status of JetDirect-capable printers which have SNMP enabled. The plugin is capable of detecting the following printer states: Paper JamOut of PaperPrinter OfflineIntervention RequiredToner LowInsufficient MemoryOpen DoorOutput Tray is Fulland more... Steve -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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 checker configuration
On 08/01/11 13:45, moses neah wrote: Have anybody used nagios checher addon for firefox with nagiosxi? I try it with nagios 2.9 and it work fine. But I get error (1error) when I use it with nagiosxi. Can anybody point out what to do? It would help if you would share the actual error message. Hugo. -- hvdko...@vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ 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