I want to Monitor the Zabbix Dashboard Itself. As i am using a zabbix setup with 1000 hosts many triggers, templates. So now i want to monitor that if a trigger or template is disabled , enabled , if any new trigger is created and vice versa for any hosts then which user has made these changes.
You can see, and filter, all events through the Audit Report. There is not (yet) an API call to read the Audit logs.
I'm not sure about details but I remember my colleague used to login to the Zabbix's MySQL database and select desired things. You could try selecting "disabled" from the particular table but the more detailed research you'd need to do on your own.
Related
I am trying to setup ejabberd as IM solution for my project, which will be mobile app + backend. I am using SQL auth (and SQL store for all modules also), using MSSQL via ODBC. I have some questions I didnt find answered in docs.
Do I understand correctly, that ejabberd is multi-tenant (since it can support multiple domains). If so, how are users assigned to particular tenant (domain)? In users table in DB, there is only username (without domain part). Can I have two different users john#jabber.myproject.com and john#jabber.myotherproject.net ?
I want to create XMPP accounts on ejabberd automatically (user doesnt need to know anything about underlaying service) - do I need to register users via API, or can I insert rows directly into DB table users and ejabberd will be OK with it?
In users table in DB, there is only username (without domain part). Can I have two different users john#jabber.myproject.com and john#jabber.myotherproject.net ?
Create a new database for each vhost, and use the host_config option in ejabberd.yml to tell which database to use for each vhost:
https://docs.ejabberd.im/admin/configuration/#database-and-ldap-configuration
Or you can enable the new SQL schema, see https://blog.process-one.net/ejabberd-18-03/
do I need to register users via API, or can I insert rows directly into DB table users and ejabberd will be OK with it?
Both are acceptable. In the second case, there are chances that some task performed at account registration is missing in your server, but I don't remember any module that performs any task at account registration. So, it looks OK.
I have a cross platform app built that uses Amazon AWS to manage the backend. I have a MySQL database created that sends and receives data to and from.the app via API calls.
This is working perfect.
On the app I have a from that users can fill in. One of the questions relates to the severity of an action e.g. high, medium and low. Once the user completes and submits the form, the data is sent to MySQL database - again, working 100%.
However, based on the answer of the question re. severity, I need to automate an email to a relevant person. E.g. if the answer was high, an email should automatically be triggered to a person.
Using the mobile OS's built in email functionality (I.e. using sendto: function) is not an option as users might not have this configured and it's not user friendly for my user base.
Is there a way I can trigger generic emails automatically from Amazon AWS if the relevant field on MySQL database is updated with a specified value?
I have no idea where to start with this or if there is a better/easier way.
As mentioned in commends you can send that email in layer between your front end and db.. Other option is migrating from MySQL to Aurora.
Third Option is that create a cronjob on some Unix server like every minute which queries this table to see if any new record in last one minute and send an email using sendmail or mutt.
I am using oracle DB which shares multiple application, I am using spring-batch-admin-manager:1.3.1.RELEASE to monitor the jobs which we have created.
How to filter or hide other application batches that appears in our admin application?
If you have different jobs(that of another application too) sharing the same batch meta data tables, you could override jobs.ftl and execution.ftl to make sure that you only show the list of jobs that you intend to. Hope this helps.
We have a service broker dashboard that monitors queues on our database.
Its a simple interface that shows the queues, whats still processing/unprocessed (quantity) and the jobs that the queues are linked to.
The issue here is that different people in the company have different levels of access in SQL, hence when lower level users need to view this app, it crashes citing Authentication issues.
I am thinking of creating a Web Interface to display the queues and quantities processing/unprocessed and status of jobs and the queues with buttons to restart them and view the log.
What would be the best way to do this?
First I'll answer the question you did not ask, namely how to address the problem of an application that performs a certain task requiring privileges (eg. VIEW SERVER STATE required to query the sys.dm_broker_activated_tasks) but without giving the privilege to the user using the application. The best solution is module signing: your application is querying the privileged DMV via a stored procedure and you sign the procedure and grant the required privilege to the signature. Read a full example at Signing an activated procedure (the example is pertinent to activation, but it applies just as well to your monitoring app). Of course, you would have to modify the application to interact with the database using stored procedures so you have something to sign.
Now your actual question, which is basically 'how to do a web app'. Is really too broad. Start by following an ASP.Net MVC tutorial for example to get you started. http://www.asp.net/mvc is a great starting point.
I'm new in this forum and this is my first question.
I've made a database in access for process control and I want to have the this database separated in local applications, linked with the tables, on the server.
Once this database is a process controller, it has a control pannel, designed in a form, with buttons that indicate different states during the process. This control pannel is opened in several computers and must be updated every time the tables are updated. How do I spread the trigger for all the database users? I've tried already, but only the active app, this means, the app who changed the table, is modified.
Pleasem, help! I don't know whatelse to do.
The backend database (access) you use is simply a data storage. It cannot run VBA itself or raise events. So you have to rely on your frontends to detect data-changes. And strangely access detecs no datachanges in open forms that do not originate from the respective client.
So you will have to check for changes yourself. The best bet would probably be with a timer and a routine that checks either for datachanges in a remote table or for some other trigger (like file change time etc..)
If you have any kind of server you could also create a small service where each of your access-instances can register. Then you could create triggers (afterChange or whatever you need) in your frontends that call that service, which then calls teh respective routines in each of the registered instances. This would be preferable, if you have many frontend running or if network load is of concern.