Monitoring apparatus and control method thereof
A monitoring apparatus obtains a device list from a device management server, determines a monitoring method for monitoring a device included in the device list, and executes first registration processing in order to register a first device that is monitored using a first monitoring method, to an authorization server, and executes second registration processing different from the first registration processing in order to register, to the authorization server, a second device that is monitored using a second monitoring method different from the first monitoring method. The first registration processing includes instructing the first device to use a designated proxy server, and instructing the first device to transmit, to the authorization server, a request to register the first device to the authorization server, after the first device has started to use the designated proxy server.
1 . A monitoring apparatus for monitoring a device, the monitoring apparatus comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
obtain a device list from a device management server;
determine a monitoring method for monitoring a device included in the device list and connected to a same local network as the monitoring apparatus;
transmit an inquiry to a first device, which is included in the device list and monitored using a first monitoring method, about a registration state of the first device with an authorization server that is accessible through the Internet;
execute a registration instruction processing a for the first device in a case where the registration state of the first device indicates that the first device is not registered with the authorization server
wherein the registration instruction processing includes:
instructing the first device to use a designated proxy server; and
instructing the first device to transmit, to the authorization server, a request to register the first device with the authorization server, after the first device has started to use the designated proxy server; and
execute a substitute registration processing to register, with the authorization server, a second device included in the device list and monitored using a second monitoring method different from the first monitoring method, wherein the substitute registration processing does not include instructing the second device to use the predetermined proxy server.
2 . The monitoring apparatus according to claim 1 , wherein the substitute registration processing includes transmitting, to the authorization server, a request to register the second device with the authorization server.
3 . The monitoring apparatus according to claim 1 , wherein:
the processor is further configured to execute the instructions to cause the monitoring apparatus to further operate as a proxy server, and
the registration instruction processing includes instructing the first device to use the proxy server operated on the monitoring apparatus as the designated proxy server.
4 . The monitoring apparatus according to claim 1 , wherein the processor determines the monitoring method for the device based on whether the device has a function that is requested for the monitoring apparatus to monitor the device using the first monitoring method.
5 . The monitoring apparatus according to claim 4 , wherein the requested function includes a function of transmitting, to the authorization server, a request to register the device with the authorization server.
6 . The monitoring apparatus according to claim 1 , wherein the processor is further configured to execute the instructions to:
execute a registration processing that includes transmitting, to the authorization server, a request to register the monitoring apparatus with the authorization server; and
obtain the device list from the device management server after the registration processing is executed.
7 . The monitoring apparatus according to claim 1 , wherein the processor is further configured to execute the instructions to cause the monitoring apparatus to, in a case where the registration state of the first device indicates that the first device is already registered with the authorization server, instruct the first device to transmit, to the authorization server, a request to cancel registration of the first device before executing the registration instruction processing.
8 . The monitoring apparatus according to claim 1 , wherein:
the first monitoring method monitors communication data transmitted or received by the first device via the designated proxy server, and
the second monitoring method monitors information obtained from the second device by performing polling.
9 . A method of controlling a monitoring apparatus that monitors a device, the method comprising:
obtaining a device list from a device management server;
determining a monitoring method for monitoring a device included in the device list and connected to a same local network as the monitoring apparatus;
transmitting an inquiry to a first device, which is included in the device list and monitored using a first monitoring method, about a registration state of the first device with an authorization server that is accessible through the Internet;
executing a registration instruction processing for the first device in a case where the registration state of the first device indicates that the first device is not registered with the authorization server,
wherein the registration instruction processing includes:
instructing the first device to use a designated proxy server; and
instructing the first device to transmit, to the authorization server, a request to register the first device with the authorization server, after the first device has started to use the designated proxy server; and
executing a substitute registration processing to register, with the authorization server, a second device included in the device list and monitored using a second monitoring method different from the first monitoring method, wherein the substitute registration processing does not include instructing the second device to use the predetermined proxy server.
10 . A non-transitory computer readable storage medium storing a program executable by a computer to execute a method of controlling a monitoring apparatus, the method comprising:
obtaining a device list from a device management server;
determining a monitoring method for monitoring a device included in the device list and connected to a same local network as the monitoring apparatus;
transmitting an inquiry to a first device, which is included in the device list and monitored using a first monitoring method, about a registration state of the first device with an authorization server that is accessible through the Internet;
executing a registration instruction processing for the first device in a case where the registration state of the first device indicates that the first device is not registered with the authorization server
wherein the registration instruction processing includes:
instructing the first device to use a designated proxy server; and
instructing the first device to transmit, to the authorization server, a request to register the first device with the authorization server, after the first device has started to use the designated proxy server; and
executing a substitute registration processing to register, with the authorization server, a second device included in the device list and monitored using a second monitoring method different from the first monitoring method, wherein the substitute registration processing does not include instructing the second device to use the predetermined proxy server.