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
Quick action audit logs
Quick action audit logs
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Quick action audit logs
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 ...
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 ...
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Quick action audit logs
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:
Grtz
Willem
I found that custom actions access url's start with:
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?/nagiosxi/includes/components/actions/runcmd.php?action=20&uid=70As7r&host=servername&service=servicename
Grtz
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Quick action audit logs
@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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Quick action audit logs
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. 
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Quick action audit logs
The feature request has been submitted. I am locking this topic. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!