Search found 22 matches

by shekharalle
Wed Dec 26, 2018 11:20 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

I have set the log_external_commands=1 and debug_level=2 in the nagios.cfg file.
But there is no debug option in the nagios.cfg file and if I try to set debug=-1 it gives me an error.
by shekharalle
Wed Dec 26, 2018 1:37 am
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

So can anyone help with the above problem?
by shekharalle
Fri Dec 21, 2018 1:52 am
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

npolovenko So below is my service.config with register set to 0. define service{ use generic-service name passive_service active_checks_enabled 0 passive_checks_enabled 1 # We want only passive checking flap_detection_enabled 0 register 0 # This is a template, not a real service is_volatile 0 check...
by shekharalle
Wed Dec 12, 2018 1:21 am
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

Now I am not getting any service not found error and I am able to see it on dashboard but the following error is still there. [12-12-2018 06:13:40] External command error: Malformed command Informational Message[12-12-2018 06:13:40] External command error: Malformed command Informational Message[12-...
by shekharalle
Tue Dec 11, 2018 11:02 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

And I changed the hostname from localhost to jumphost as of now and have service defined as well.
Do I need to define a command as well.
by shekharalle
Tue Dec 11, 2018 9:05 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

It is giving output with FQDN and I'm doing this on the same machine so host and service definitions are already configured/defined. So do I need to create another host definition jumphost.cfg and service definition for this FQDN? Also do I need to add a command in commands.cfg for it as it is not a...
by shekharalle
Tue Dec 11, 2018 1:12 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

And this is my services.cfg file: [cloud-user@jumphost ~]$ cat /usr/local/nagios/etc/objects/services.cfg define service{ use generic-service name passive_service active_checks_enabled 0 passive_checks_enabled 1 # We want only passive checking flap_detection_enabled 0 register 1 # This is a template...
by shekharalle
Tue Dec 11, 2018 1:05 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

This is my localhost.cfg file which was there by default after installing Nagios core: [cloud-user@jumphost ~]$ cat /usr/local/nagios/etc/objects/localhost.cfg ############################################################################### # LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING T...
by shekharalle
Tue Dec 11, 2018 12:10 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

I am using localhost so Nagios core and NSCA is on the same machine and so the host definition was already there.
by shekharalle
Mon Dec 10, 2018 11:56 pm
Forum: Open Source Nagios Projects
Topic: External Command: Malformed Command
Replies: 36
Views: 14392

Re: External Command: Malformed Command

So this is what I am getting in the logs: External command error: Command failed Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;jumphost;cpu;0;11.75% user+nice+system Warning: Passive check result was received for service 'cpu' on host 'jumphost, but the service could not be found! E...