Re: [Nagios-users-br] Problemas Nagios * Exibir Resposta*
Luis Na saída do seu script, quando está testando se o resultado obtido é OK, WARNING ou CRITICAL, o script deve terminar com exit 0, 1 ou 2 conforme a situação estiver OK, WARNING ou CRITICAL... Quanto ao null, veja se o script retorna somente uma linha. O Nágios só mostra na interface uma linha, mesmo que ela seja relativamente grande. Se for grande, o browser se encarrega de quebrá-la... []s 2010/6/8 Luis Henrique lsi...@bionexo.com Boa Tarde pessoal... Estou tendo um problema com o Nagios, Fiz um script, que na linha de comando ele funciona, Más quando coloco para o Nagios monitorar ele da mensagem de Null e fica verde, Alguem pode me ajudar??? Segue o script, (Este script server para pegar a memoria total do PC / free -mt, e transforma em porcentagem. ### # Script to check real memory usage # L.Henrique 07/06/10 - V.2.0 # -- # Script Modifications ## # -- #!/bin/bash USAGE=`basename $0` [-w|--warning]percent free [-c|--critical]percent free THRESHOLD_USAGE=WARNING threshold must be greater than CRITICAL: `basename $0` $* calc=/tmp/totalcalc percent_free=/tmp/freepercent critical= warning= STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 # print usage if [[ $# -lt 4 ]] then echo echo Wrong Syntax: `basename $0` $* echo echo Usage: $USAGE echo exit 0 fi # read input while [[ $# -gt 0 ]] do case $1 in -w|--warning) shift warning=$1 ;; -c|--critical) shift critical=$1 ;; esac shift done # verify input if [[ $warning -eq $critical || $warning -lt $critical ]] then echo echo $THRESHOLD_USAGE echo echo Usage: $USAGE echo exit 0 fi # Total memory available total=`free -mt | grep 'Total:' | awk '{print $3}'` # Total memory used used=`free -mt | grep 'Total:' | awk '{print $2}'` # Calc total minus used free=`free -mt | grep 'Total:' | awk '{print $2-$3}'` # normal values #echo $totalMB total #echo $usedMB used #echo $freeMB free # make it into % percent free = ((used / total) * 100) echo 5 $calc # decimal accuracy echo k $calc # commit echo 100 $calc # multiply echo $total $calc # division integer echo $used $calc # division integer echo / $calc # division sign echo * $calc # multiplication sign echo p $calc # print percent=`/usr/bin/dc $calc|/bin/sed 's/^\./0./'|/usr/bin/tr . |/usr/bin/gawk {'print $1'}` #percent1=`/usr/bin/dc $calc` #echo $percent1 if [[ $percent -le $critical ]] then echo CRITICAL-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -le $warning ]] then echo WARNING-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -gt $warning ]] then echo OK-$free MB Free ($percent% Used Memory) exit 0 ### Command.cfg #Teste ckeck_mem define command{ command_namecheck_mem command_line$USER1$/check_mem -w $ARG1$ -c $ARG2$ } ### Erro Nagios: Memoria Real http://bio00378/nagios/cgi-bin/extinfo.cgi?type=2host=localhostservice=Memoria+Real OK 06-08-2010 15:08:55 0d 0h 16m 52s 1/4 (null) -- - Luis Henrique Tecnologia da Informação Bionexo do Brasil 55 11 3133-8110 lsi...@bionexo.com www.bionexo.com.br Av.: Luiz Carlos Berrini, 936, 12° andar Novo Brooklin - São Paulo - SP -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo -- 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 JGeraldo -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
Re: [Nagios-users-br] Problemas Nagios * Exibir Resposta*
e confirma as permissões tb. Jose Oliveira wrote: Luis Na saída do seu script, quando está testando se o resultado obtido é OK, WARNING ou CRITICAL, o script deve terminar com exit 0, 1 ou 2 conforme a situação estiver OK, WARNING ou CRITICAL... Quanto ao null, veja se o script retorna somente uma linha. O Nágios só mostra na interface uma linha, mesmo que ela seja relativamente grande. Se for grande, o browser se encarrega de quebrá-la... []s 2010/6/8 Luis Henrique lsi...@bionexo.com Boa Tarde pessoal... Estou tendo um problema com o Nagios, Fiz um script, que na linha de comando ele funciona, Más quando coloco para o Nagios monitorar ele da mensagem de Null e fica verde, Alguem pode me ajudar??? Segue o script, (Este script server para pegar a memoria total do PC / free -mt, e transforma em porcentagem. ### # Script to check real memory usage # L.Henrique 07/06/10 - V.2.0 # -- # Script Modifications ## # -- #!/bin/bash USAGE=`basename $0` [-w|--warning]percent free [-c|--critical]percent free THRESHOLD_USAGE=WARNING threshold must be greater than CRITICAL: `basename $0` $* calc=/tmp/totalcalc percent_free=/tmp/freepercent critical= warning= STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 # print usage if [[ $# -lt 4 ]] then echo echo Wrong Syntax: `basename $0` $* echo echo Usage: $USAGE echo exit 0 fi # read input while [[ $# -gt 0 ]] do case $1 in -w|--warning) shift warning=$1 ;; -c|--critical) shift critical=$1 ;; esac shift done # verify input if [[ $warning -eq $critical || $warning -lt $critical ]] then echo echo $THRESHOLD_USAGE echo echo Usage: $USAGE echo exit 0 fi # Total memory available total=`free -mt | grep 'Total:' | awk '{print $3}'` # Total memory used used=`free -mt | grep 'Total:' | awk '{print $2}'` # Calc total minus used free=`free -mt | grep 'Total:' | awk '{print $2-$3}'` # normal values #echo $totalMB total #echo $usedMB used #echo $freeMB free # make it into % percent free = ((used / total) * 100) echo 5 $calc # decimal accuracy echo k $calc # commit echo 100 $calc # multiply echo $total $calc # division integer echo $used $calc # division integer echo / $calc # division sign echo * $calc # multiplication sign echo p $calc # print percent=`/usr/bin/dc $calc|/bin/sed 's/^\./0./'|/usr/bin/tr . |/usr/bin/gawk {'print $1'}` #percent1=`/usr/bin/dc $calc` #echo $percent1 if [[ $percent -le $critical ]] then echo CRITICAL-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -le $warning ]] then echo WARNING-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -gt $warning ]] then echo OK-$free MB Free ($percent% Used Memory) exit 0 ### Command.cfg #Teste ckeck_mem define command{ command_namecheck_mem command_line$USER1$/check_mem -w $ARG1$ -c $ARG2$ } ### Erro Nagios: Memoria Real http://bio00378/nagios/cgi-bin/extinfo.cgi?type=2host=localhostservice=Memoria+Real OK 06-08-2010 15:08:55 0d 0h 16m 52s 1/4 (null) -- - Luis Henrique Tecnologia da Informação Bionexo do Brasil 55 11 3133-8110 lsi...@bionexo.com www.bionexo.com.br Av.: Luiz Carlos Berrini, 936, 12° andar Novo Brooklin - São Paulo - SP -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
Re: [Nagios-users-br] Problemas Nagios * Exibir Resposta*
Boa Leo Pricipalmente se voce testou o script com root, o arquivo que vc está usando no /tmp para calculos pode não estar com direitos de escrita para o Nagios. Outra dica é tentar fazer o script reentrante, isto é, que seja possivel varias copias do mesmo rodando ao mesmo tempo. como voce usou um nome de arquivo fixo para armazenamento temporario, pode dar pau. Recomendo que voce coloque a variavel $$ compondo o nome do arquivo (numero do processo shell que roda o script) e, ao final, remova este arquivo. Algo do tipo /tmp/nome.temp.$$ []s 2010/6/8 Leonardo Carneiro - Veltrac lscarne...@veltrac.com.br e confirma as permissões tb. Jose Oliveira wrote: Luis Na saída do seu script, quando está testando se o resultado obtido é OK, WARNING ou CRITICAL, o script deve terminar com exit 0, 1 ou 2 conforme a situação estiver OK, WARNING ou CRITICAL... Quanto ao null, veja se o script retorna somente uma linha. O Nágios só mostra na interface uma linha, mesmo que ela seja relativamente grande. Se for grande, o browser se encarrega de quebrá-la... []s 2010/6/8 Luis Henrique lsi...@bionexo.com Boa Tarde pessoal... Estou tendo um problema com o Nagios, Fiz um script, que na linha de comando ele funciona, Más quando coloco para o Nagios monitorar ele da mensagem de Null e fica verde, Alguem pode me ajudar??? Segue o script, (Este script server para pegar a memoria total do PC / free -mt, e transforma em porcentagem. ### # Script to check real memory usage # L.Henrique 07/06/10 - V.2.0 # -- # Script Modifications ## # -- #!/bin/bash USAGE=`basename $0` [-w|--warning]percent free [-c|--critical]percent free THRESHOLD_USAGE=WARNING threshold must be greater than CRITICAL: `basename $0` $* calc=/tmp/totalcalc percent_free=/tmp/freepercent critical= warning= STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 # print usage if [[ $# -lt 4 ]] then echo echo Wrong Syntax: `basename $0` $* echo echo Usage: $USAGE echo exit 0 fi # read input while [[ $# -gt 0 ]] do case $1 in -w|--warning) shift warning=$1 ;; -c|--critical) shift critical=$1 ;; esac shift done # verify input if [[ $warning -eq $critical || $warning -lt $critical ]] then echo echo $THRESHOLD_USAGE echo echo Usage: $USAGE echo exit 0 fi # Total memory available total=`free -mt | grep 'Total:' | awk '{print $3}'` # Total memory used used=`free -mt | grep 'Total:' | awk '{print $2}'` # Calc total minus used free=`free -mt | grep 'Total:' | awk '{print $2-$3}'` # normal values #echo $totalMB total #echo $usedMB used #echo $freeMB free # make it into % percent free = ((used / total) * 100) echo 5 $calc # decimal accuracy echo k $calc # commit echo 100 $calc # multiply echo $total $calc # division integer echo $used $calc # division integer echo / $calc # division sign echo * $calc # multiplication sign echo p $calc # print percent=`/usr/bin/dc $calc|/bin/sed 's/^\./0./'|/usr/bin/tr . |/usr/bin/gawk {'print $1'}` #percent1=`/usr/bin/dc $calc` #echo $percent1 if [[ $percent -le $critical ]] then echo CRITICAL-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -le $warning ]] then echo WARNING-$free MB Free ($percent% Used Memory) exit 0 fi if [[ $percent -gt $warning ]] then echo OK-$free MB Free ($percent% Used Memory) exit 0 ### Command.cfg #Teste ckeck_mem define command{ command_namecheck_mem command_line$USER1$/check_mem -w $ARG1$ -c $ARG2$ } ### Erro Nagios: Memoria Real http://bio00378/nagios/cgi-bin/extinfo.cgi?type=2host=localhostservice=Memoria+Real OK 06-08-2010 15:08:55 0d 0h 16m 52s 1/4 (null) -- - Luis Henrique Tecnologia da Informação Bionexo do Brasil 55 11 3133-8110 lsi...@bionexo.com www.bionexo.com.br Av.: Luiz Carlos Berrini, 936, 12° andar Novo Brooklin - São Paulo - SP -- ThinkGeek and WIRED's GeekDad team up for
Re: [Nagios-users] check_rsync: (Service check did not exit properly)
Some additional information - After poking around some more, I have two other plugins exhibiting the same behavior: check_irc.pl and check_mysql_replication. Again with these, running them manually from a shell as the nagios user executes and outputs just fine. Here's what is in a check result file for a check_rsync instance that I managed to grab before it was consumed: ### Active Check Result File ### file_time=1275988933 ### Nagios Service Check Result ### # Time: Tue Jun 8 09:22:13 2010 host_name=vm-mx01.puttynuts.com service_description=RSync Server check_type=0 check_options=0 scheduled_check=1 reschedule_check=1 latency=0.226000 start_time=1275988933.227030 finish_time=1275988933.280759 early_timeout=0 exited_ok=1 return_code=2 output=(null) Running with embedded perl off, I did not see that compilation error again for the rsync plugin, so I am leaving it using the external perl interpreter for now. On 06/07/2010 07:39 PM, Ryan Rawdon wrote: Hey everyone, I recently installed Nagios on a new system and migrated all of my configs and everything over. Everything is working fine, except for check_rsync, which fails on all hosts with (Service check did not exit properly). I have tried disabling the embedded perl interpreter (even though it worked fine in the last install), but that didn't appear to do anything except change the output to null. Running the plugin by hand works 100% fine. What else should I check? Here's the output with embedded perl (which is one of the things that led me to believe it was an embedded perl issue) [1275952035.062527] [016.0] [pid=2637] Attempting to run scheduled check of service 'RSync Server' on host 'vm-mx01.puttynuts.com': check options=0, latency=0.062000 [1275952035.062585] [016.0] [pid=2637] Checking service 'RSync Server' on host 'vm-mx01.puttynuts.com'... [1275952035.062635] [2320.2] [pid=2637] Raw Command Input: $USER1$/check_rsync -H $HOSTADDRESS$ [1275952035.062656] [2320.2] [pid=2637] Expanded Command Output: $USER1$/check_rsync -H $HOSTADDRESS$ [1275952035.062782] [016.1] [pid=2637] Check result output will be written to '/var/lib/nagios3/spool/checkresults/checkg48PqE' (fd=7) [1275952035.062934] [016.1] [pid=2637] ** Using Embedded Perl interpreter to run service check... [1275952035.063208] [016.0] [pid=2637] Embedded Perl failed to compile /usr/lib/nagios/plugins/check_rsync, compile error **ePN failed to compile /usr/lib/nagios/plugins/chec$ BEGIN failed--compilation aborted at (eval 1) line 39. at /usr/lib/nagios3/p1.pl line 161. - skipping plugin Here's the output with embedded perl turned up (and I've since cranked up the logging level a bit): [1275953233.045782] [016.0] [pid=25338] Attempting to run scheduled check of service 'RSync Server' on host 'vm-mx01.puttynuts.com': check options=0, latency=0.045000 [1275953233.045923] [016.0] [pid=25338] Checking service 'RSync Server' on host 'vm-mx01.puttynuts.com'... [1275953233.046002] [2320.2] [pid=25338] Raw Command Input: $USER1$/check_rsync -H $HOSTADDRESS$ [1275953233.046013] [2320.2] [pid=25338] Expanded Command Output: $USER1$/check_rsync -H $HOSTADDRESS$ [1275953233.046183] [016.1] [pid=25338] Check result output will be written to '/var/lib/nagios3/spool/checkresults/check6XvsV0' (fd=7) [1275953233.047328] [016.2] [pid=25338] Service check is executing in child process (pid=26948) [1275953233.098575] [016.2] [pid=26949] Moving temp check result file '/var/lib/nagios3/spool/checkresults/check6XvsV0' to queue file '/var/lib/nagios3/spool/checkresults/cpt5vVV'... and another excerpt: [1275953511.122166] [016.1] [pid=25338] Handling check result for service 'RSync Server' on host 'jester.u13.net'... [1275953511.122173] [016.0] [pid=25338] ** Handling check result for service 'RSync Server' on host 'jester.u13.net'... [1275953511.122179] [016.1] [pid=25338] HOST: jester.u13.net, SERVICE: RSync Server, CHECK TYPE: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE: Yes, EXITED OK: Yes, RETURN CODE: 2, OUTPUT: (null) [1275953511.122209] [016.2] [pid=25338] Parsing check output... [1275953511.122215] [016.2] [pid=25338] Short Output: (null) [1275953511.11] [016.2] [pid=25338] Long Output: NULL [1275953511.17] [016.2] [pid=25338] Perf Data:NULL [1275953511.122233] [016.2] [pid=25338] ST: HARD CA: 3 MA: 3 CS: 2 LS: 2 LHS: 2 [1275953511.122240] [016.1] [pid=25338] Service is in a non-OK state! [1275953511.122246] [016.1] [pid=25338] Host is currently UP, so we'll recheck its state to make sure... [1275953511.122252] [016.1] [pid=25338] * Using last known host state: 0 [1275953511.122261] [016.1] [pid=25338] Current/Max Attempt(s): 3/3 [1275953511.122267] [016.1] [pid=25338] Service has reached max number of rechecks, so we'll handle the error... [1275953511.122274] [016.1] [pid=25338] Checking service 'RSync Server' on host 'jester.u13.net' for flapping... [1275953511.122280] [016.2]
Re: [Nagios-users] monitoring for exactly 1 process on 3 hosts
Seg, 2010-06-07 às 16:57 -0600, Litwin, Matthew escreveu: I need to monitor that a process is running on one of three hosts and that is not running on the other two. Is there a way to set up a service such that a check must return OK for only one host of a hostgroup and alarm if there is less or more than one instance running in that hostgroup? I think you'll need a local test combining the results of all three, or remotely checking all three (via ssh, NRPE, etc...). Rui -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] new in nagios
Hello I'm new in Nagios. I'm looking for a documentation for configuring and starting nagios 3.2.1 on freebsd. As I saw on the Internet there are a lot of installation and configuration methods. Would you be so kind and give me the best direction. Thank you Felix -- Ing. drd. Farcas Felix National Institute of Research and Development of Isotopic and Molecular Technology, IT - Department - Cluj-Napoca, Romania -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] new in nagios
On 06/08/2010 01:27 PM, felix farcas wrote: Hello I'm new in Nagios. I'm looking for a documentation for configuring and starting nagios 3.2.1 on freebsd. As I saw on the Internet there are a lot of installation and configuration methods. Would you be so kind and give me the best direction. Download. Compile. Configure. Run. Failing that, you should probably try following one of the guides you found online and see if one of them works for you. When you run into a specific problem, google for the answer to that problem. If you fail to find any answer that works for you, come back here and ask again. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] new in nagios
On 8 June 2010 13:27, felix farcas fe...@itim-cj.ro wrote: Hello I'm new in Nagios. I'm looking for a documentation for configuring and starting nagios 3.2.1 on freebsd. As I saw on the Internet there are a lot of installation and configuration methods. Would you be so kind and give me the best direction. The best direction is to know what is your situation. What kind of machine do you have to monitor? What OS? Printer? Do you need to monitor only on your lan or do you have to monitor Distributed/Redundant? Aswering to theese questions you'll find how to do on official documentation (I'm newbie too, and I found all what I need). If you'll have some problems reading that, ask on this ML :) Bye -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] R: Scom collector
None? Thanks Marco Da: Marco Borsani [mailto:m.bors...@it.net] Inviato: giovedì 27 maggio 2010 15.50 A: 'Nagios Users Mailinglist' Oggetto: [Nagios-users] Scom collector Did anybody ever use the collector between Nagios and Scom ?? Regards Marco -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ 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] R: Scom collector
Did anybody ever use the collector between Nagios and Scom ?? I do , M. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] CGI Permissions issue
All, I am fighting with a permission issue I cannot seem to figure out. Here is the important pieces of my cgi configuration: use_authentication=1 default_user_name= authorized_for_system_information= authorized_for_system_commands=jack,jill,john,dave,bob,tim authorized_for_configuration_information=jack,jill,john,dave,bob,tim authorized_for_all_hosts=jack,jill,john,dave,bob,tim authorized_for_all_host_commands jack,jill,john,dave,bob,tim authorized_for_all_services=jack,jill,john,dave,bob,tim authorized_for_all_service_commands=jack,jill,john,dave,bob,tim When dave attempts to issue a service command (enable notifications) they receive this error: Sorry, but you are not authorized to commit the specified command None of the other users do.So, in an effort to troubleshoot, I removed ALL users except for dave. Dave still cannot process the command, but jack still can! When jack attempts to view the configuration, he is also denied now. This implies that the permissions are being acknowledged to some degree. I revert the changes back above. Jack can still execute commands (dave cannot), but both jack and dave can view the configuration. What is going on with dave? Can I enable some logging perhaps to help determine the root cause? Thanks! -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] Migrating nagios
I was wondering if it is possible to migrate uptime data from an old nagios install from a new one. I have an old nagios server, running Nagios Core 3.2.0, and have another box running the most recent version of NagiosXI, and I would like to get rid of the old Nagios Core box. However, I have two years of uptime data on the old Nagios Core box that I would like to preserve. Does anyone have suggestions for a best course of action here? Daniel H Lockard -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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_snmp_mem.pl Numeric value for warning or critical
I am trying to use the check_snmp_mem plugin v1.1 from nagios 3.2.0 installed from the Ubuntu repos. When i run it from the command line ie: /usr/bin/perl /usr/lib/nagios/plugins/check_snmp_mem.pl -H HOST -C COMM -w90,20 -c95,30 i get the following response Ram : 15%, Swap : 0% : ; OK when i try to run it as a defined service in nagios I get Current Status: UNKNOWN (for 0d 3h 13m 25s) Status Information: Numeric value for warning or critical ! Usage: /usr/lib/nagios/plugins/check_snmp_mem.pl [-v] -H host -C snmp_community [-2] Performance Data: (-l login -x passwd [-X pass -L authp,privp]) [-p port] -w warn level -c crit level [-I|-N|-E] [-f] [-m] [-t timeout] [-V] #snmp Check Mem define command{ command_namecheck_snmp_mem command_line/usr/bin/perl /usr/lib/nagios/plugins/check_snmp_mem.pl -H $HOSTADDRESS -C $ARG1$ -w $ARG2$,$ARG3$ -c $ARG4$,$ARG5$ } define service{ host_name HOST; service_description Memory; use generic-service; contact_groups v3locity; check_command check_snmp_mem!lcinfra33!90!20!95!30 } anyone have any suggestions? Other snmp checks from this same family run just fine, i am using check_snmp_storage on other hosts. Greg Pangrazio -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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] CGI Permissions issue
On 8 June 2010 14:50, Jason Gauthier jgauth...@lastar.com wrote: All, I am fighting with a permission issue I cannot seem to figure out. Here is the important pieces of my cgi configuration: use_authentication=1 default_user_name= authorized_for_system_information= authorized_for_system_commands=jack,jill,john,dave,bob,tim authorized_for_configuration_information=jack,jill,john,dave,bob,tim authorized_for_all_hosts=jack,jill,john,dave,bob,tim authorized_for_all_host_commands jack,jill,john,dave,bob,tim authorized_for_all_services=jack,jill,john,dave,bob,tim authorized_for_all_service_commands=jack,jill,john,dave,bob,tim When dave attempts to issue a service command (enable notifications) they receive this error: Sorry, but you are not authorized to commit the specified command None of the other users do. So, in an effort to troubleshoot, I removed ALL users except for dave. Dave still cannot process the command, but jack still can! When jack attempts to view the configuration, he is also denied now. This implies that the permissions are being acknowledged to some degree. I revert the changes back above. Jack can still execute commands (dave cannot), but both jack and dave can view the configuration. What is going on with dave? Can I enable some logging perhaps to help determine the root cause? Thanks! Bit of a long shot but I wonder if there's a non-printing character in your cgi.cfg somewhere where it shouldn't be. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ 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