Getting this error
Andreas Ericsson
ae at op5.se
Wed Feb 9 10:13:12 CET 2005
Joe Leone wrote:
> I am also getting the error. I am running RedHat 8, Fedora core2 and
> Fedora core3. The errors occurs on Fedora core 3 only. I get the same
> error on all Fedora core3 boxes.
> I have downloaded and compiled the plug-in 1.3 and 1.4. This did not
> resolve the error.
>
> Running the command locally
> /usr/local/nagios/libexec/check_procs -c 1:1 -C crond
> System call sent warnings to stderr
> OK - 1 processes running with command name crond
>
>
> Output from strace
>
>
> # strace ./check_procs -c 1:1 -C /usr/sbin/cron
> execve("./check_procs", ["./check_procs", "-c", "1:1", "-C",
> "/usr/sbin/cron"], [/* 18 vars */]) = 0
> uname({sys="Linux", node="app-dev", ...}) = 0
> brk(0) = 0x99cd000
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=20694, ...}) = 0
> old_mmap(NULL, 20694, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ffa000
> close(3) = 0
> open("/lib/tls/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \337\242"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0
> old_mmap(0xa19000, 1207532, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa19000
> old_mmap(0xb3a000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x120000) = 0xb3a000
> old_mmap(0xb3e000, 7404, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb3e000
> close(3) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
> -1, 0) = 0xf6ff9000
> mprotect(0xb3a000, 8192, PROT_READ) = 0
> mprotect(0xa15000, 4096, PROT_READ) = 0
> set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff98e0,
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> munmap(0xf6ffa000, 20694) = 0
> brk(0) = 0x99cd000
> brk(0x99ee000) = 0x99ee000
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=38680544, ...}) = 0
> mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6df9000
> mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x7c5) = 0xf6df8000
> close(3) = 0
> open("/usr/share/locale/locale.alias", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xf6df7000
> read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
> read(3, "", 4096) = 0
> close(3) = 0
> munmap(0xf6df7000, 4096) = 0
> open("/usr/local/nagios/share/locale/en_AU.UTF-8/LC_MESSAGES/nagios-plug
> ins.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/local/nagios/share/locale/en_AU.utf8/LC_MESSAGES/nagios-plugi
> ns.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/local/nagios/share/locale/en_AU/LC_MESSAGES/nagios-plugins.mo
> ", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/local/nagios/share/locale/en.UTF-8/LC_MESSAGES/nagios-plugins
> .mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/local/nagios/share/locale/en.utf8/LC_MESSAGES/nagios-plugins.
> mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/local/nagios/share/locale/en/LC_MESSAGES/nagios-plugins.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> rt_sigaction(SIGALRM, {0x804b3fc, [ALRM], SA_RESTORER|SA_RESTART,
> 0xa40a48}, {SIG_DFL}, 8) = 0
> alarm(10) = 0
> getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
> setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
> getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
> pipe([3, 4]) = 0
> pipe([5, 6]) = 0
> clone(child_stack=0,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0xf6ff9928) = 13639
> close(4) = 0
> fcntl64(3, F_GETFL) = 0 (flags O_RDONLY)
> fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xf6df7000
> _llseek(3, 0, 0xfee2b0fc, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> close(6) = 0
> fcntl64(5, F_GETFL) = 0 (flags O_RDONLY)
> fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xf6df6000
> _llseek(5, 0, 0xfee2b15c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> read(3, "STAT UID PPID VSZ RSS %CPU"..., 4096) = 3977
> read(3, "", 4096) = 0
> read(5, "Warning: bad syntax, perhaps a b"..., 4096) = 78
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xf6df5000
> write(1, "System call sent warnings to std"..., 36System call sent
> warnings to stderr
> ) = 36
This is wildly inaccurate. It should say "Command <command line> sent
warnings to stderr". A system call never sends warnings anywhere, except
on to the stack in the form of a 32 bit number.
> read(5, "", 4096) = 0
> close(5) = 0
> munmap(0xf6df6000, 4096) = 0
> close(3) = 0
> munmap(0xf6df7000, 4096) = 0
> waitpid(13639, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 13639
> --- SIGCHLD (Child exited) @ 0 (0) ---
> write(1, "PROCS CRITICAL: 0 processes with"..., 63PROCS CRITICAL: 0
> processes with command name '/usr/sbin/cron'
> ) = 63
> munmap(0xf6df5000, 4096) = 0
> exit_group(2) = ?
>
>
>
>
>
> Any help appreciated
>
It basically means that your ps as invoked by the check_proc plugin
printed something on stderr. In this case it was "Warning: bad syntax,
perhaps a b" followed by something which was cut by strace.
> Joe
>
> Joe.Leone at beacon.com.au
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harper
> Mann
> Sent: Saturday, 29 January 2005 7:41 AM
> To: 'MIchael B. Day'; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Getting this error
>
> This looks like it's from the check_proc plugin that is running on
> 64.182.35.81. Do you get the error when it's run locally?
>
> If you are out of swap, that could cause this.
>
> If you can reproduce the error by running check_procs locally, you can
> run
> strace "<check_procs with args that cause problem>". Strace shows
> system
> calls and should tell which one is complaining.
>
> Post output here and we'll see what kind of suggestions we can make.
>
> Regards,
>
> - Harper
>
> Harper Mann
> Groundwork Open Source Solutions
> 510-599-2075 (cell)
> http://itgroundwork.com
>
>
>
>>-----Original Message-----
>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>admin at lists.sourceforge.net] On Behalf Of MIchael B. Day
>>Sent: Friday, January 28, 2005 11:55 AM
>>To: nagios-users at lists.sourceforge.net
>>Subject: RE: [Nagios-users] Getting this error
>>
>>I'm getting the follow error and can not find out why. If any one has
>
> any
>
>>idea please let me know.
>>This was emailed to me from the Nagios system.
>>
>>***** Nagios *****
>>
>>Notification Type: PROBLEM
>>
>>Service: Total Processes
>>Host: Linux Server #1
>>Address: 64.182.35.81
>>State: WARNING
>>
>>Date/Time: Thu Jan 27 13:28:20 CST 2005
>>
>>Additional Info:
>>
>>System call sent warnings to stderr
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by: IntelliVIEW -- Interactive
>
> Reporting
>
>>Tool for open source databases. Create drag-&-drop reports. Save time
>>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>>_______________________________________________
>>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: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> 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
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
> _______________________________________________
> 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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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