First,
While I am posting this question, I am still searching through the forums with regard to see if anyone has ever attempted similar issue.
Here is my situation. While creation of maintenance 'tasks' is fine from the GUI I/we would like to kick off the creation of a maintenance 'task' via a script from a machine/server in question if we need to take one down without setting off triggers/actions and email notifications being sent. For instance if one of our techs is onsite at a client's location and needs to shutdown a machine, he can kick off the script and then shut down the machine without worrying about emails being sent to various admins with regard to services not being available on that machine. (Very large distributed network)
I can put maintenance entries into the maintenance table, but feel that without mapping out the entire schema, I am missing important factors.
#1 The maintenance does not show up in the GUI after inserted via mysql statements manually.
#2 The manual insertion is only into the maintenance table so far and is not linked to a device/machine (need to fix that just not sure which table I should be looking at)
#3 Since #1 and #2 are an issue, if a maintenance 'task' is created via the GUI after a manual insertion into DB is made, it gives a duplicate maintenance id error and fails to create new maintenance 'tasks'
Surely I am not the first person that ever tried managing the zabbix database(s) via scripts outside the beautiful web GUI?
While I am posting this question, I am still searching through the forums with regard to see if anyone has ever attempted similar issue.
Here is my situation. While creation of maintenance 'tasks' is fine from the GUI I/we would like to kick off the creation of a maintenance 'task' via a script from a machine/server in question if we need to take one down without setting off triggers/actions and email notifications being sent. For instance if one of our techs is onsite at a client's location and needs to shutdown a machine, he can kick off the script and then shut down the machine without worrying about emails being sent to various admins with regard to services not being available on that machine. (Very large distributed network)
I can put maintenance entries into the maintenance table, but feel that without mapping out the entire schema, I am missing important factors.
#1 The maintenance does not show up in the GUI after inserted via mysql statements manually.
#2 The manual insertion is only into the maintenance table so far and is not linked to a device/machine (need to fix that just not sure which table I should be looking at)
#3 Since #1 and #2 are an issue, if a maintenance 'task' is created via the GUI after a manual insertion into DB is made, it gives a duplicate maintenance id error and fails to create new maintenance 'tasks'
Surely I am not the first person that ever tried managing the zabbix database(s) via scripts outside the beautiful web GUI?
Comment