Page 1 of 1

Quick action audit logs

Posted: Mon Jan 07, 2019 6:34 am
by WillemDH
Hello,

Is it logged somewhere when a user executes a quick action? Imho it would be a nice addition to add the quick actions usage to the Nagios XI audit logs?

Grtz

Willem

Re: Quick action audit logs

Posted: Mon Jan 07, 2019 12:42 pm
by cdienger
Tested on 5.5.8, the option to disable/enable host notifications make entries to the audit log:

cmdsubsys: User submitted a command to Nagios Core: ENABLE_HOST_NOTIFICATIONS;localhost
cmdsubsys: User submitted a command to Nagios Core: DISABLE_HOST_NOTIFICATIONS;localhost


as is the force check:

cmdsubsys: User submitted a command to Nagios Core: SCHEDULE_FORCED_HOST_CHECK;localhost;1546882000

The ping, connect, and traceroute actions(found on the host) don't make entries to the audit log but, being web requests, they would appear in the apache logs(/var/log/httpd):

access_log:1.2.3.4 - - [07/Jan/2019:11:33:35 -0600] "GET /nagiosxi/includes/components/rdp/gordp.php?confirm=1&hostid=146&address=127.0.0.1 HTTP/1.1" 200 ...

access_log:1.2.3.4 - - [07/Jan/2019:11:33:36 -0600] "GET /nagiosxi/includes/components/tracerouteaction/traceroute.php?host=127.0.0.1&cmd=go HTTP/1.1" 200 ...

access_log:1.2.3.4 - - [07/Jan/2019:11:38:37 -0600] "GET /nagiosxi/includes/components/pingaction/ping.php?host=127.0.0.1&cmd=go HTTP/1.1" 200 ...

Re: Quick action audit logs

Posted: Tue Jan 08, 2019 2:44 am
by WillemDH
Thanks for the info. I was actually referring to custom command quick actions not the builtin ones.

I found that custom actions access url's start with:
/nagiosxi/includes/components/actions/runcmd.php?action=20&uid=70As7r&host=servername&service=servicename
What is missing in the apache logs is the user executing the quick action. Only the ip address is available. Any chance this could be added to the audit logs including the user executing the quick action?

Grtz

Willem

Re: Quick action audit logs

Posted: Tue Jan 08, 2019 2:09 pm
by npolovenko
@WillemDH , You are referring to custom actions created in the Custom Actions Component, right?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

We're planning on adding more XI GUI/Backend CCM integrations in XI 6. This would be a good idea for a feature request.
I can submit it on your behalf if you'd like. Please keep in mind that the final decision to implement the enhancement is at the discretion development team.

Re: Quick action audit logs

Posted: Wed Jan 16, 2019 5:55 pm
by WillemDH
Yes I'm indeed referring to custom actions created in the actions component. Please submit the feature request, adn you can close this thread then. :)

Re: Quick action audit logs

Posted: Thu Jan 17, 2019 3:36 pm
by lmiltchev
The feature request has been submitted. I am locking this topic. Thanks!