* godmode/agentes/planned_downtime.php: fixed to avoid create or update
"Planned downtimes" with empty names or all white spaces or identical name
to others. And disabled the button to add agent in the "Planned downtimes"
when in the list of agents in group is none.
Fixes: #3371256
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
operation/agentes/ver_agente.php: Added group recursion feature,
it allows to search agents in child groups. These three changes
are contributed by Yusuke Arai. Thanks!
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: Fixed function
agents_get_modules() where modules are retrieve.
Esta línea y las que están debajo serán ignoradas--
M ChangeLog
M include/functions_agents.php
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4893 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: set by default the mysql connection type
because in older isntallations update to 4 have not this token in
config.php.
Fixes: #3395947
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent: Now module_condition and module_precondition
accept numeric parameter without fractional part.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_delete_action_alerts.php: Added group recursion
feature, it allows to search agents in child groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4888 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/incidents/incident_detail.php: fixed the entities in the name
of file in the action to upload and delete.
Fixes: #3397447
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4885 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: added the other part of logical expression
in the patch of strstr.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4883 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_users.php: added the function "users_get_first_group"
another parameter, $all_group, to return all group or not, by default is
true.
Fixes: #3401582
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_nc_groups.php: fixed the javascript to promt to
confirm the delete. And fixed the link to delete that in some browsers
crash.
Fixes: #3402336
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/SNMPServer.pm: Kill snmptrapd if it's already running
when the SNMP Console starts and launch it again. Fixes bug #3402392.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_groups.php: fixed when the group haven't a icon.
* operation/menu.php: applied the safe_out before the print a piece the
name of map in submenu.
* operation/gis_maps/render_view.php: fixed the name of agents with white
spaces.
Fixes: #3398436
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4874 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/plugins/grep_log,
shellscript/linux/plugins/grep_log: Restored previous code because
it needs to start searching on the last position known. First time
plugin starts, seek to the final position to avoid fire old events
detected in the log. Plugin only gives new events once starts to work
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/jquery.pandora.controls.js: Filter keycount variable
in pandoraSelectGroupAgent javascript function.
* godmode/massive/massive_add_action_alerts.php: Added 'Any' label to
agents combo in this view and correct a typo.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/ver_agente.php: fixed the massive deletion alerts with
modules with white spaces.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php: changed function strstr() for
substr() in agents_get_modules function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added delete_pending
cleaning in the modules table to avoid possible past modules with
wrong name
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Improve the delete modules
function to do the same actions of the console
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_alerts.php: Fixed alerts_get_agents_with_alert_template
function in order to not retrieve delete modules.
Fixes: #3401666
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4862 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/update_manager/lib/libupdate_manager_client.php,
extensions/update_manager/main.php: fixed when the file is corrupted or
empty.
Fixes: #3400237
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions.php: fixed in function "string2image" when generate a
image in other location, now have one more parameter, $homeurl, by default
empty string.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* unix/plugins/grep_log
shellscript/linux/plugins/grep_log: Changed parse_log
function in order to retrieve token correctly.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f