Nagios fails to start after adding'check_logs.pl' service

Bret Goodfellow Bret.Goodfellow at questar.com
Thu Aug 14 19:40:31 CEST 2008


Okay, I removed the trailing "!" from the check_command statement.  I might also mention that the check_logs.pl works fine with all monitoring of remote systems.  I can also run check_logs.pl (as nagios) from the shell, and it works as well.  Here is the last part of the strace:

[pid 22473] lseek(4, 0, SEEK_CUR)       = 0
[pid 22473] read(4, "-----BEGIN DSA PRIVATE KEY-----\nMIIDPgIBAAKCAQEAzTULry8dAYweYFywxOzvhLZTO9f3YZBTdahf3VineUduyBoX\n5denPMUjQslNq+twgkP5osLe6tXs6QY3J6DJy+TcqDsYDPMPJkpfmncEsdtQqG4a\nXX8IG8gQlEKFfO1v06NwOTjXEe1pCVjikWvGYMhXrx3n1cINFQZNP67de5gfKGF5\nsq/6N9Z4n6e/NCMYc3xwXLDRInY1VTrsG6C84pbagvY3zjLctyEyF5blPjexTV0l\nk58IFlecJP9uyCJAmib4OfnuLftQmNxFVlNYf9eqdU42025DZ4uVYO06Aolhi5ry\npGCx2NvXBOFWnQWxo9y9Yjmd35+VP/GKsCajlQIVANSlQN+/Y/0SWuy6RWTlfU7w\nDdyXAoIBABoJj3nZqsfIDGs7O+JetKRdkpML75g+QGEoNcci31ccBgyD/mQUXSUc\nPlm9YRZM5XQZL7/R3zoz4/0Ic"..., 4096) = 1192
[pid 22473] close(4)                    = 0
[pid 22473] munmap(0x2a9556c000, 4096)  = 0
[pid 22473] write(3, ")=t\270\341\264wE\361\207\340PJ\n\252\374kJ\0165 \267\230\345\373j\272:\24\350O\207\333h\237vK\27,)\227\n!\267s\243!\10H\330@\332\314\331O\272\v\225\fq8I9\244\341\316\236\243\314\2052\306\210b\n2\0\351 \16hc[7\6\"\266\301\366\377\305\346q\343O\275U9\360a\222\250\261h\325)\326\350\341\34\377\3122\225<QU\252\235\263\f\326\372\2446\356\0340F\303\262\f\361\4\3418}\356\340t{f9\246\264\0v\200\271\332\317\361Z\354Rr\0\353\250\243\3\320\36)`\332\253\377_i\2557\302\315\20(\220\207\342\376\314\327.\250\214\322X\301\220\265lF\345\267rQ\252\24\24Z\332\35\224\256\221\234\333\303\347\264o\216+\347A\357]\233\334<\266\354\342\265\275\367\265r\275)\224\214My\207\32g\v\rU||\25E\256\2755\241\300xg\2232\2606y\f\3751B\'\330\321\367%\2550\f;\266\236J\27<\272\260\232\367S\357~\373>\1\314i\2
 06\201\361#\277H\334\'c\225=\31\367I\32\354\252\275#\225\265I\326\214\0\347*\304G]\242\25\370f\330;\223\245b\215\227u\37S\316Ui\234\230\263\361\365\315\200\361\35\1\5/B\317\212\336\331\17\32
 4\251\210\377\254<H\250sc\35\33\222W\213\220\f\341\324\322n\20\330\375\333\337\226R\274SS\223\275,\300\21\313\216\235<\314\345r\307\257eqy\1+(\365{\300s\252\247\32\244\376\370\222\375\237\326\266\241\210\240\r\232gcD)`\234\3327\206\267\265\3025\336L?\266Hk\16KA\1\230\374\261s2\17.;-k\n\314\330+\33p\313\250\230o;\207irEk\\)n\2676m\325@#\rwj\234p\21($\201\225\302f$\tA\10\250#\373\244\3\321mq\226\334\2nVm\271\276"..., 960) = 960
[pid 22473] select(4, [3], NULL, NULL, NULL) = 1 (in [3])
[pid 22473] read(3, "\210`\376\342\n\320\27Z\0\237\34?o\36m\347Fn\374\37dW\271\240\2209\335\201\373\7\333a", 8192) = 32
[pid 22473] dup(0)                      = 4
[pid 22473] dup(1)                      = 6
[pid 22473] dup(2)                      = 8
[pid 22473] ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbffff9f0) = -1 ENOTTY (Inappropriate ioctl for device)
[pid 22473] fcntl(4, F_GETFL)           = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 22473] fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 22473] ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbffff9f0) = -1 EINVAL (Invalid argument)
[pid 22473] fcntl(6, F_GETFL)           = 0x1 (flags O_WRONLY)
[pid 22473] fcntl(6, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
[pid 22473] ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbffff9f0) = -1 EINVAL (Invalid argument)
[pid 22473] fcntl(8, F_GETFL)           = 0x1 (flags O_WRONLY)
[pid 22473] fcntl(8, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
[pid 22473] ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbffff970) = -1 EINVAL (Invalid argument)
[pid 22473] brk(0x552ac31000)           = 0x552ac31000
[pid 22473] rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
[pid 22473] rt_sigaction(SIGINT, {SIG_IGN}, NULL, 8) = 0
[pid 22473] rt_sigaction(SIGINT, NULL, {SIG_IGN}, 8) = 0
[pid 22473] rt_sigaction(SIGINT, {0x552aab5e90, [], SA_RESTORER, 0x2a964022f0}, NULL, 8) = 0
[pid 22473] rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
[pid 22473] rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, 8) = 0
[pid 22473] rt_sigaction(SIGQUIT, NULL, {SIG_IGN}, 8) = 0
[pid 22473] rt_sigaction(SIGQUIT, {0x552aab5e90, [], SA_RESTORER, 0x2a964022f0}, NULL, 8) = 0
[pid 22473] rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
[pid 22473] rt_sigaction(SIGTERM, {SIG_IGN}, NULL, 8) = 0
[pid 22473] rt_sigaction(SIGTERM, NULL, {SIG_IGN}, 8) = 0
[pid 22473] rt_sigaction(SIGTERM, {0x552aab5e90, [], SA_RESTORER, 0x2a964022f0}, NULL, 8) = 0
[pid 22473] select(9, [3], [3], NULL, NULL) = 1 (out [3])
[pid 22473] write(3, "No\330L\0\356\327\341oM\350\235&67eH3\16\3423H\2664\237\33K\37\2218o\206I-\277\276A\33\37\0\2\n3\327-\rtf\22\352\24\2337,\262\3276\261c m\312\25\273", 64) = 64
[pid 22473] select(9, [3], [], NULL, NULL) = 1 (in [3])
[pid 22473] read(3, "\'\370^m*bqW\226T\'K\335r\237{\245\201<w\342>\16\275\215\5\336\261\223\340\365e\321\332\220,\356|\341\375/\310\340\357\346\337\260t", 8192) = 48
[pid 22473] getsockname(3, {sa_family=AF_INET, sin_port=htons(32103), sin_addr=inet_addr("10.8.64.201")}, [7457116566585344016]) = 0
[pid 22473] setsockopt(3, SOL_IP, IP_TOS, [8], 4) = 0
[pid 22473] select(9, [3], [3], NULL, NULL) = 1 (out [3])
[pid 22473] write(3, "\362\350\367\305\266^\370\226?\27\32\34\300(\354\t\222v\227 at J$~\242\25\254\357<\312\30\303\323\6\33\'\326dg/VT\234\v\341\252c\20\207P\vQ\26b-\351\233\307\362\35\346\6c\232\201\222\365\30\3375\225\226\375\272\245\3638\22V\340\3373\6\327\356M\351C\204\261K\311j\3768@\356c6CXW\252\17u\355s\24&\365\312G,", 112) = 112
[pid 22473] select(9, [3], [], NULL, NULL) = 1 (in [3])
[pid 22473] read(3, "k\361\300\377L\236\215\306,J\5\215\7$\253UZ\340k\v\326\252B\200\241\236\177\1\360\310J\311\334B\377L%t\33q\17\330\177\324e\263\23r", 8192) = 48
[pid 22473] select(9, [3 4], [], NULL, NULL) = 1 (in [4])
[pid 22473] read(4, "", 16384)          = 0
[pid 22473] close(4)                    = 0
[pid 22473] select(9, [3], [3], NULL, NULL) = 1 (out [3])
[pid 22473] write(3, "\325\274\310\367)~V\33F\2537\35786/~&\4\240([\34\2065\376\347#\376\35\231\22\r", 32) = 32
[pid 22473] select(9, [3], [], NULL, NULL) = 1 (in [3])
[pid 22473] read(3, ".\34\347\227\236\4\t$\230\336\17\3\344iwQ\300=\253sm#\342\235\317\330\333gx\35W\274JE{+\304n\322G\317b\246\264\266\354\320\214ng\206*&\201i\265=\232G\366\347f\267\350^\26w\321\370w\31Z\212\340R4\37\233\3%\277QA$\374p\224<`&U\242\247\244\2424", 8192) = 96
[pid 22473] select(9, [3], [6], NULL, NULL) = 1 (out [6])
[pid 22473] write(6, "PROCS OK: 0 processes with command name \'Xvnc\'\n", 47) = 47
[pid 22472] <... read resumed> "PROCS OK: 0 processes with command name \'Xvnc\'\n", 4096) = 47
[pid 22473] select(9, [3], [], NULL, NULL <unfinished ...>
[pid 22472] read(3,  <unfinished ...>
[pid 22473] <... select resumed> )      = 1 (in [3])
[pid 22473] read(3, "\214\371\371T\376\257\354\346\377g\240\257\353!\373\363\225+\272\232\335dm\207\23\372rz\\\10v\25\20*\252\10\303<=\304\331\35\234T\366\370\r\213p\34\245R#\7p\204d\376\337\311H}\fd\340\25\326X7{l5\334v\243\365\271\204\263\221m\220\26\257\25\216\361V\334~\331W\177\203\266\322Qv\274\276:\363\273\262;\3530\373\202;\347\n\20\361\377c!\210\274Z\205y\261l\6\234E\317", 8192) = 128
[pid 22473] close(6)                    = 0
[pid 22473] close(8)                    = 0
[pid 22473] select(9, [3], [3], NULL, NULL) = 1 (out [3])
[pid 22473] write(3, "X\0\2546\333\312\270Q7\257\310\7\366LJY\3\16\315\243\204\331\203\327\232\335\37Wj\377?\371", 32) = 32
[pid 22473] ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbfffd7d0) = -1 ENOTTY (Inappropriate ioctl for device)
[pid 22473] fcntl(0, F_GETFL)           = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 22473] fcntl(0, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 22473] ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbfffd7d0) = -1 EINVAL (Invalid argument)
[pid 22473] fcntl(1, F_GETFL)           = 0x801 (flags O_WRONLY|O_NONBLOCK)
[pid 22473] fcntl(1, F_SETFL, O_WRONLY) = 0
[pid 22473] ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbfffd7d0) = -1 EINVAL (Invalid argument)
[pid 22473] fcntl(2, F_GETFL)           = 0x801 (flags O_WRONLY|O_NONBLOCK)
[pid 22473] fcntl(2, F_SETFL, O_WRONLY) = 0
[pid 22473] brk(0x552ac2b000)           = 0x552ac2b000
[pid 22473] shutdown(3, 2 /* send and receive */) = 0
[pid 22473] close(3)                    = 0
[pid 22473] exit_group(0)               = ?
Process 22473 detached
[pid 22472] <... read resumed> "", 4096) = 0
[pid 22472] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid 22472] read(6, "", 4096)           = 0
[pid 22472] close(3)                    = 0
[pid 22472] wait4(22473, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 22473
[pid 22472] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 22472] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983c1000
[pid 22472] write(1, "PROCS OK: 0 processes with command name \'Xvnc\'\n", 47 <unfinished ...>
[pid 22471] <... read resumed> "PROCS OK: 0 processes with command name \'Xvnc\'\n", 4096) = 47
[pid 22472] <... write resumed> )       = 47
[pid 22471] read(6,  <unfinished ...>
[pid 22472] exit_group(0)               = ?
Process 22472 detached
[pid 22471] <... read resumed> "", 4096) = 0
[pid 22471] close(6)                    = 0
[pid 22471] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid 22471] wait4(22472, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 22472
[pid 22471] munmap(0x2a95558000, 4096)  = 0
[pid 22471] alarm(0)                    = 89
[pid 22471] write(7, "city\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0proc - Xvnc\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\306m\244H\0\0\0\0^\262\r\0\0\0\0\0\307m\244H\0\0\0\0\6\244\v\0\0\0\0\0\0\0\0\0PROCS OK: 0 processes with command name \'Xvnc\'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
 \0\0", 512) = -1 EPIPE (Broken pipe)
[pid 22471] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 22471 detached
Process 15735 detached
[root at colorado log]#

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net on behalf of Marc Powell
Sent: Thu 8/14/2008 11:04 AM
To: nagios List
Subject: Re: [Nagios-users] Nagios fails to start after adding'check_logs.pl' service
 

On Aug 14, 2008, at 10:10 AM, Bret Goodfellow wrote:

>
> I have started monitoring the nagios server (local checks), and all  
> has worked fine until I added a service to check the local logs.   
> When the 'check_local_logs' service is added, the startup of Nagios  
> fails after about 10 seconds.  I have also run 'strace' but am not  
> sure how to interpret.

Maybe post the last 50 lines or so of the strace output...

> Aug 14 08:56:29 colorado nagios: Finished daemonizing... (New  
> PID=6940) Aug 14 08:56:41 colorado nagios: Caught SIGSEGV, shutting  
> down...

> define service{

>         check_command                   check_local_logs!/etc/nagios/ 
> check_logs_linux.cfg!
>         }

Try leaving off the last '!'. That indicates to nagios that there is  
another $ARGx$ to follow but none is present. Perhaps you're tweaking  
a bug that doesn't know how to handle that properly. If it persists,  
try a more recent version of nagios (2.12 or 3.0.).

--
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 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 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 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