It is possible to create a new plugin with minimal effort using the developments of the plugin "hardware::devices::hikvision::nvr::isapi::plugin"
We have several HiWatch DS-I114W IP cameras in production.
These cameras have microcode similar to Hikvision. They do not have SNMP support, but do have basic ISAPI support.
Can you please make a new plugin "hardware::devices::hiwatch::camera::isapi::plugin" similar to the plugin "hardware::devices::hikvision::nvr::isapi::plugin"?
Only for the new plugin there are some nuances and I will explain them below.
That is, you can similarly create '--mode=time' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
But in order for this mode to work, you need to make a request to ISAPI not at /ISAPI/System/time/capabilities , but at /ISAPI/System/time
Here is an example of the returned data:
# ./centreon_plugins.pl' '--plugin=hardware::devices::hikvision::nvr::isapi::plugin' '--mode=protocols'
'--api-password' 'mypass' '--api-username' 'myuser' '--hostname' 'cam004'
'--proto' 'https' '--ssl-opt' 'SSL_verify_mode => SSL_VERIFY_NONE'
'--warning-status' '(%{name} eq "RTSP" and %{enabled} eq "true") or (%{name} eq "HTTPS" and %{enabled} ne "true")'
--debug --verbose
UNKNOWN: 400 Bad Request
======> request send
..
======> response done
HTTP/1.1 400 Bad Request
...
<?xml version="1.0" encoding="UTF-8"?>
<ResponseStatus version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<requestURL>/ISAPI/Security/adminAccesses/capabilities</requestURL>
<statusCode>6</statusCode>
<statusString>Invalid XML Content</statusString>
<subStatusCode>badXmlContent</subStatusCode>
</ResponseStatus>
That is, you can similarly create '--mode=protocols' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
But in order for this mode to work, you need to make a request to ISAPI not at /ISAPI/Security/adminAccesses/capabilities , but at /ISAPI/Security/adminAccesses
Here is an example of the returned data:
Hello
We have a good plugin "hardware::devices::hikvision::nvr::isapi::plugin", which we made based on the case https://github.com/centreon/centreon-plugins/issues/3211
It is possible to create a new plugin with minimal effort using the developments of the plugin "hardware::devices::hikvision::nvr::isapi::plugin"
We have several HiWatch DS-I114W IP cameras in production. These cameras have microcode similar to Hikvision. They do not have SNMP support, but do have basic ISAPI support.
Can you please make a new plugin "hardware::devices::hiwatch::camera::isapi::plugin" similar to the plugin "hardware::devices::hikvision::nvr::isapi::plugin"? Only for the new plugin there are some nuances and I will explain them below.
------- Device Inventory --------
That is, you can similarly create '--mode=device' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
------- Device Uptime --------
That is, you can similarly create '--mode=uptime' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
------- Memory Usage -------
That is, you can, by analogy, create '--mode=memory' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
------- CPU Usage -------
That is, you can similarly create '--mode=cpu' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin"
------- Device Time -------
That is, you can similarly create '--mode=time' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin" But in order for this mode to work, you need to make a request to ISAPI not at /ISAPI/System/time/capabilities , but at /ISAPI/System/time Here is an example of the returned data:
------- Device Protocols -------
That is, you can similarly create '--mode=protocols' for the plugin "hardware::devices::hiwatch::camera::isapi::plugin" But in order for this mode to work, you need to make a request to ISAPI not at /ISAPI/Security/adminAccesses/capabilities , but at /ISAPI/Security/adminAccesses Here is an example of the returned data:
If necessary, I am ready to provide additional information. Thank you.