feature: Added app_state support for applications #5068 (#6061)

* feature: Added app_state support for applications #5068

* moved schema file 173 -> 174

* Re-arrange code

* added device_id to dbUpdate call

* updated function + missing apps

* Rename 174.sql to 176.sql

* Remove $device, it is unneeded when updating.  Rename update_applications() -> update_application()

* Some apps can return simply 0
This commit is contained in:
Neil Lathwood
2017-03-11 14:39:32 +00:00
committed by Tony Murray
parent af752afb18
commit 66d1006d91
37 changed files with 73 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ if (!empty($agent_data['app'][$name])) {
$options = '-O qv';
$oid = 'nsExtendOutputFull.6.97.112.97.99.104.101';
$apache = snmp_get($device, $oid, $options);
update_application($app, $apache);
}
echo ' apache';