On Friday 27 January 2017 at 20:31:04, Stephane Bortzmeyer wrote:

> I have a debugging problem with a command, and I'm looking for a way
> to get the actual command line that Icinga executes. I do not find it
> on the IcingaWeb2 interface, nor in the log files. Is it available
> somwhere?

https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/troubleshooting

17.5.1 suggests that if you enable the debuglog feature, you can see the 
commands which are executed in icinga's log file.

I've just tried it on one of my machines, and I now see things like:

[2017-01-27 20:55:07 +0100] notice/Process: Running command 
'/usr/lib/nagios/plugins/check_ping' '-6' '-H' 'ser.ver.to.be.check.ed' '-c' 
'250,15%' '-w' '200,5%': PID 22141

[2017-01-27 20:55:07 +0100] notice/Process: Running command 
'/usr/lib/nagios/plugins/check_http' '-I' 'ser.ver.to.be.check.ed' '-S' '-s' 
'Latest update:': PID 22152

[2017-01-27 20:56:02 +0100] notice/Process: Running command 
'/usr/lib/nagios/plugins/check_disk' '-c' '5%' '-w' '10%' '-L' '-X' 'none' '-
X' 'tmpfs' '-X' 'sysfs' '-X' 'proc' '-X' 'devtmpfs' '-X' 'devfs' '-X' 'mtmfs' 
'-X' 'tracefs' '-X' 'cgroup' '-X' 'fuse.gvfsd-fuse' '-f' '-m' '-u' 'GB': PID 
22210

in /var/log/icinga2/debug.log

Note that turning on this feature is local to the specific machine only - it 
doesn't get propagated down to any satellite or client servers, so be sure to 
enable it on the machine which is really running the check command :)


Hope that helps,


Antony.

-- 
I have an excellent memory.
I can't think of a single thing I've forgotten.

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to