LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-27-2013, 04:02 AM   #1
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Rep: Reputation: Disabled
error executing command '/usr/local/icinga/libexec/check_mrtgtraf': Argument list too


Dear Sir or Madam,

I am facing with one nagios problem. It show me the following error message.

[1388127560] idomod: Error writing to data sink! Some output may get lost...
[1388127560] idomod: Please check remote ido2db log, database connection or SSL Parameters
[1388127560] error executing command '/usr/local/icinga/libexec/check_mrtgtraf': Argument list too long. Make sure that the file actually exists (in PATH, if set) and is executable!

could any body please help me?

Thanks in advance.

Regards,
Vannath

Last edited by vannathlab; 12-27-2013 at 04:03 AM.
 
Old 12-27-2013, 04:35 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by vannathlab View Post
I am facing with one nagios problem. It show me the following error message.

[1388127560] idomod: Error writing to data sink! Some output may get lost...
[1388127560] idomod: Please check remote ido2db log, database connection or SSL Parameters
[1388127560] error executing command '/usr/local/icinga/libexec/check_mrtgtraf': Argument list too long. Make sure that the file actually exists (in PATH, if set) and is executable!
The bold part tells you what the problems is.

Here are some links that explain this error message and some possible solutions:
- "Argument list too long": Beyond Arguments and Limitations
- Argument list too long error for rm, cp, mv commands
- Linux / UNIX : Argument list too long error in shell and solution
 
Old 12-27-2013, 05:22 AM   #3
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hi,

Thank you so much for you reply.

I have this problem with Icinga.

Here is my defined command
Quote:
define command{
command_name check_mrtgtraf
#command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$
command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$
}
Here is my defined service.

Quote:
define service {
host_name Switch-Name
service_description Broadcast-Port28
check_command check_mrtgtraf!/var/www/sinet/zyxel/broadcast/Switch-IP_28.log!AVG!170,170!200,200
use bro-services
}
And I try to run command manually

Quote:
# ./check_mrtgtraf -F /var/www/sinet/zyxel/broadcast/Switch-IP_26.log -a AVG -w 170,170 -c 200,200
Traffic OK - Avg. In = 0.0 B/s, Avg. Out = 89.0 B/s|in=0.000000B/s;170.000000;200.000000;0.000000 out=89.000000B/s;170.000000;200.000000;0.000000
I have add many switches already and there is no problem. But when i try to add more i got the following error in icinga.log file.
Quote:
[1388127560] idomod: Error writing to data sink! Some output may get lost...
[1388127560] idomod: Please check remote ido2db log, database connection or SSL Parameters
[1388127560] error executing command '/usr/local/icinga/libexec/check_mrtgtraf': Argument list too long. Make sure that the file actually exists (in PATH, if set) and is executable!
If i disable the new added file it is OK. But if i enable it back all the switch broadcast services on all switches become Unknown.

Any solution or suggestion ?

Reagars,

Vannath
 
Old 12-27-2013, 06:18 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
This might be a configuration issue.

A search came up with this thread: Re: [Nagios-users] Non obvious 127 plugin error (the earlier posts aren't too informative, read from this point on).

I'm not able to give you a working solution, it depends on the overall setup/configuration that is being used.
 
Old 12-27-2013, 06:28 AM   #5
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hi,

I am running with Debian Wheezy. Icinga 1.9.3. with MySQL. I i also have some plugin such ash Nagvis and PNP4Nagios.

When i run command to verify the configuration very thing seem fine.

Quote:
# /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg

[..]

Running pre-flight check on configuration data...

Checking services...
Checked 7005 services.
Checking hosts...
Checked 248 hosts.
Checking host groups...
Checked 22 host groups.
Checking service groups...
Checked 4 service groups.
Checking contacts...
Checked 7 contacts.
Checking contact groups...
Checked 5 contact groups.
Checking service escalations...
Checked 4121 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 580 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 53 commands.
Checking time periods...
Checked 5 time periods.
Checking modules...
Checked 1 modules.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
Any more suggestion?


Regards,
Vannath
 
Old 12-27-2013, 06:37 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You already read the mails I linked to and tried/investigated what's suggested? I seriously doubt that.....

BTW: The verify command might not pick this up.
 
Old 12-29-2013, 09:09 PM   #7
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
I have read through it for many time and what i understand is we have to run command as user apache. i had tried with www-data user but it is still not work.

Any more advice ??

Thanks,
 
Old 12-30-2013, 02:31 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by vannathlab View Post
I have read through it for many time and what i understand is we have to run command as user apache. i had tried with www-data user but it is still not work.
One specific check is (wrongly) run as user apache in the article. What about selinux, ulimit, bash vs dash and enable_environment_macros that are discussed?

Anyway, besides the hints in the article I don't have anything else that might be of help.
 
Old 12-30-2013, 02:35 AM   #9
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Yes thank you so much!!

I am using Debian Wheezy so it don't have SELinux as CentOS or RHEL.

Thanks with Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/lib vs /usr/libexec gmartin Slackware 5 04-27-2017 02:35 AM
error: subsystem: cannot stat /usr/libexec/openssh/sftp-server earwaxntoast Red Hat 6 10-25-2013 05:15 AM
reset permissions on /usr/local/nagios/libexec linuxcoa Linux - General 2 11-19-2012 02:43 PM
/usr/local/libexec/dovecot/dovecot-lda - IS MISSING ?!? snowweb Linux - Server 1 08-14-2012 07:05 AM
CUPS printing error: ="/usr/local/libexec/cups/filter/rastertosamsungspl failed ted_chou12 Linux - Software 0 08-04-2012 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration